chihsuan opened a new pull request, #11317: URL: https://github.com/apache/ozone/pull/11317
## What changes were proposed? `RDBStore.close()` closes the shared RocksDB `Checkpoint` before the DB. A checkpoint created in that window, e.g. by quota repair during OM shutdown, uses the freed native handle and crashes the JVM. This PR creates the `Checkpoint` per call inside `acquire()`, the same way `flush()` does, so it can never outlive the DB. It also fixes `TestOzoneRepairShell#testQuotaRepair` to wait until the repair finishes. ## JIRA https://issues.apache.org/jira/browse/HDDS-16590 ## How was this patch tested? Added tests in `TestRDBStore`: - before: `testCheckpointAfterManagerClose` crashes the JVM (SIGSEGV) - after: all pass Also fixed the wait in `TestOzoneRepairShell#testQuotaRepair`. CI: https://github.com/chihsuan/ozone/actions/runs/36025681668 Generated-by: Claude Code (Claude Opus 5.5) -- 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]
