Galsza opened a new pull request, #8173: URL: https://github.com/apache/ozone/pull/8173
## What changes were proposed in this pull request? https://issues.apache.org/jira/browse/HDDS-12484 Ozone only had a way to change DBOptions from a ini configuration file before, now it's possible to also specify ColumnFamilyOptions. This PR gives the option to fully customize all RocksDB options. It also enables the user to specify a path from which the configuration file will be read and used. There are a few known issues regarding this: 7.x versions of RocksDB have a bug where TableFormatConfigs are not read from a file. This is fixed in later versions, but upgrading Ozone to a newer version requires a bigger effort, see here: https://issues.apache.org/jira/browse/HDDS-12392 . For handling this the Ozone default configs are set, and I've created the following Jira to change these places once 9.x versions of RocksDB are used: https://issues.apache.org/jira/browse/HDDS-12695 Due to RocksDB calls invoking native libraries the resource management has to be carefully observed and some unusual behaviour is created in java. Mainly freeing up resources in a catch block. Snapshots shouldn't be affected as they should remain unchanged even if the user changes cf settings. ## How was this patch tested? Manually firing up a cluster through docker and checking if the cfoptions really did change, and added unit tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
