Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Currently BlockManager calls Namesystem#getBlockCollection in order to:
1. check if the block has already been abandoned
2. identify the storage policy of the block
3. meta save
For #1 we can use BlockInfo's internal state instead of checking if the corresponding file still exists.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-12638 Delete copy-on-truncate block along with the original block, when deleting a file being truncated
- Resolved
- is related to
-
HDFS-13999 Bogus missing block warning if the file is under construction when NN starts
- Resolved
-
HDFS-12880 Disallow abandoned blocks in the BlocksMap
- Open