Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
HDFS-7240
-
None
-
None
-
None
-
Reviewed
Description
The signature of the APIs are listed below. This allows SCM to
1) allocateBlock for client and maintain the key->container mapping in level DB in addition to the existing container to pipeline mapping in level DB.
2) return the pipeline of a block based on the key.
3) remove the block based on the key of the block.
<Pipeline,key> allocateBlock(long size)
<Pipeline> getBlock(key);
void deleteBlock(key);