Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.0
Description
HDDS-5359 shows that the bytes used and block count metadata of a container is tracked incorrectly. Empty containers with negative values in these fields will not be deleted per HDDS-4023 and will remain tracked by SCM unnecessarily.
This Jira aims to add a config flag that when enabled will repair the metadata information in the datanodes on restart. Datanodes already iterate all their containers on startup, but the process is kept light to not slow down startup too much. Repairing these values will slow down datanode startup, since it requires writing to RocksDB (currently opened in readonly mode on startup) and iterating the block keys stored there. For this reason the plan is to put this behind a config flag.
I have set the affected versions to 1.2.0 since it is after this release that HDDS-5359 was reported, but it is possible earlier releases are affected.
Attachments
Issue Links
- depends upon
-
HDDS-5359 Incorrect BLOCKCOUNT and BYTESUSED in container DB
- Resolved
- links to