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

jojochuang 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 a5814528cdc HDDS-17376. Scale repeated-defrag footprint tolerance with 
the number of OM tables (#11708)
a5814528cdc is described below

commit a5814528cdc8d3c1b27f259e0db2256b585cb825
Author: Symious <[email protected]>
AuthorDate: Sun Oct 25 14:42:57 2026 +0800

    HDDS-17376. Scale repeated-defrag footprint tolerance with the number of OM 
tables (#11708)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../hadoop/ozone/om/snapshot/TestOmSnapshotDefragSpaceSavings.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotDefragSpaceSavings.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotDefragSpaceSavings.java
index ce0ce827c2c..ba814db584c 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotDefragSpaceSavings.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotDefragSpaceSavings.java
@@ -61,6 +61,7 @@
 import org.apache.hadoop.ozone.om.OmSnapshotInternalMetrics;
 import org.apache.hadoop.ozone.om.OmSnapshotManager;
 import org.apache.hadoop.ozone.om.OzoneManager;
+import org.apache.hadoop.ozone.om.codec.OMDBDefinition;
 import org.apache.hadoop.ozone.om.helpers.BucketLayout;
 import org.apache.hadoop.ozone.om.helpers.SnapshotInfo;
 import org.apache.ozone.test.GenericTestUtils;
@@ -105,7 +106,10 @@ public class TestOmSnapshotDefragSpaceSavings {
   private static final int DEFRAG_WAIT_MS = 600_000;
   private static final int KEY_DELETE_WAIT_MS = 60_000;
   private static final long FOOTPRINT_TOLERANCE_BYTES = 8192;
-  private static final long REPEATED_DEFRAG_FOOTPRINT_TOLERANCE_BYTES = 16_384;
+  // Re-triggering defrag reopens each snapshot checkpoint, and RocksDB 
rewrites per-table metadata
+  // (OPTIONS, MANIFEST, LOG) on open, so the allowed growth scales with the 
number of OM tables.
+  private static final long REPEATED_DEFRAG_FOOTPRINT_TOLERANCE_BYTES =
+      1024L * OMDBDefinition.get().getColumnFamilyNames().size();
   private static final DefaultReplicationConfig REPLICATION_CONFIG_ONE =
       new DefaultReplicationConfig(
           ReplicationConfig.fromTypeAndFactor(RATIS, ONE));


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

Reply via email to