use of alluxio.grpc.CommitBlockInUfsPRequest in project alluxio by Alluxio.
the class BlockMasterClient method commitBlockInUfs.
/**
* Commits a block in Ufs.
*
* @param blockId the block id being committed
* @param length the length of the block being committed
*/
public void commitBlockInUfs(final long blockId, final long length) throws IOException {
retryRPC(() -> {
CommitBlockInUfsPRequest request = CommitBlockInUfsPRequest.newBuilder().setBlockId(blockId).setLength(length).build();
mClient.commitBlockInUfs(request);
return null;
}, LOG, "CommitBlockInUfs", "blockId=%d,length=%d", blockId, length);
}
Aggregations