This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new e7a02e4c18c HDDS-14719. Opened checkpoint RocksDB for txn info 
verification in read-only mode to prevent unnecessary compaction. (#9827)
e7a02e4c18c is described below

commit e7a02e4c18c6c209f433967ae6d747661ecde8bd
Author: SaketaChalamchala <[email protected]>
AuthorDate: Thu Feb 26 13:49:24 2026 -0800

    HDDS-14719. Opened checkpoint RocksDB for txn info verification in 
read-only mode to prevent unnecessary compaction. (#9827)
    
    Co-authored-by: Copilot <[email protected]>
---
 .../src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java
index 1fce92a111d..844978c44f6 100644
--- 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java
+++ 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java
@@ -259,7 +259,12 @@ private static TransactionInfo getTransactionInfoFromDB(
       DBDefinition definition)
       throws IOException {
 
-    try (DBStore dbStore = DBStoreBuilder.newBuilder(tempConfig, definition, 
dbName, dbDir).build()) {
+    try (DBStore dbStore = DBStoreBuilder
+        .newBuilder(tempConfig, definition, dbName, dbDir)
+        .setOpenReadOnly(true)
+        .setCreateCheckpointDirs(false)
+        .setEnableRocksDbMetrics(false)
+        .build()) {
       // Get the table name with TransactionInfo as the value. The transaction
       // info table name are different in SCM and SCM.
 


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

Reply via email to