Siyao Meng created HDDS-13860:
---------------------------------

             Summary: RocksDatabase#open leaks extra column families when 
failing to read cfOptions from disk
                 Key: HDDS-13860
                 URL: https://issues.apache.org/jira/browse/HDDS-13860
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Siyao Meng
            Assignee: Siyao Meng


(Found this during SnapshotDefragService development, but this bug is not in 
SDS.)

In RocksDatabase#open, when it fails to read column family options from file, 
it will fall back to getting the default column family options:

https://github.com/apache/ozone/blob/f30870f2a229a2a618f3199aa047d3397e77a9cd/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/TableConfig.java#L58-L60

{code:title=Corresponding error messages when failing to read cfOptions from 
file}
2025-10-30 13:06:49,981 [om1-SnapshotDefragService#0] ERROR db.DBStoreBuilder 
(DBStoreBuilder.java:getCfOptionsFromFile(440)) - Error while trying to read 
ColumnFamilyOptions from file: 
/path/to/ozone/hadoop-ozone/integration-test/target/test-dir/MiniOzoneClusterImpl-56d84c7d-ccb4-4e14-b881-7bd22db88684/om/data/db.snapshots/checkpointStateDefragged
2025-10-30 13:06:49,981 [om1-SnapshotDefragService#0] ERROR db.DBStoreBuilder 
(DBStoreBuilder.java:getDefaultDBOptions(397)) - Error trying to use dbOptions 
from file: null
{code}

But those options aren't properly released later, leading to leaks:

{code}

{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to