|Constructor and Description|
Creates a new instance of
|Modifier and Type||Method and Description|
Allocates a block from the given block store location under a given view.
public GreedyAllocator(alluxio.worker.block.BlockMetadataView view)
BlockMetadataViewto pass to the allocator
public alluxio.worker.block.meta.StorageDirView allocateBlockWithView(long blockSize, alluxio.worker.block.BlockStoreLocation location, alluxio.worker.block.BlockMetadataView metadataView, boolean skipReview)
BlockStoreLocation.anyDirInTier(String). TODO(jiacheng): Refactor Allocator interface to decouple Reviewer logic from Allocator. The proposed allocation will be reviewed by a
Reviewer. The reviewer will check certain aspects of the allocation and may reject the allocation if it does not meet certain criteria. The parameter skipReview specifies whether the review should be skipped. The review should be skipped when we want the behavior of the allocator to be deterministic and do not want it to be affected by the reviewer. E.g. We just freed up some space in Alluxio and want the allocation to use the freed space.
blockSize- the size of block in bytes
location- the location in block store
metadataView- of the block metadata
skipReview- whether the review should be skipped
StorageDirViewin which to create the temp block meta if success, null otherwise
Copyright © 2023. All Rights Reserved.