Shuo Huang created HDDS-17948:
---------------------------------
Summary: Avoid directory scans when deleting unreferenced blocks
in FILE_PER_BLOCK containers
Key: HDDS-17948
URL: https://issues.apache.org/jira/browse/HDDS-17948
Project: Apache Ozone
Issue Type: Bug
Reporter: Shuo Huang
Assignee: Shuo Huang
When block metadata is missing, KeyValueHandler.deleteUnreferenced() lists the
chunks directory to find the block's files. It repeats this for each block,
even when the file does not exist.
FILE_PER_BLOCK containers use a known filename for each block: <localID>.block.
Scanning the directory adds unnecessary work when cleaning up multiple blocks,
especially in containers with many files.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]