Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Ozone currently uses a block count metadata field for each container replica to determine whether it is empty. This counter can be incorrect in some cases and is difficult to maintain. It is only used to determine whether the container is empty. In this case, it would be simpler to have a an isEmpty boolean for each container that starts as false and is set to true when a delete block is processed and the block table is empty.
Attachments
Issue Links
- is related to
-
HDDS-8141 Exception "Non-force deletion of non-empty container is not allowed" in datanode logs
- Resolved
-
HDDS-9550 Container report shows missing containers when they actually appear empty
- Resolved
- relates to
-
HDDS-8908 Intermittent failure in TestBlockDeletion#testBlockDeletion
- Resolved
- links to