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 fe2875c119 HDDS-12948. [Snapshot] Increase 
`ozone.om.fs.snapshot.max.limit` default value to 10k (#8376)
fe2875c119 is described below

commit fe2875c1199a9a54fc0a93da22204bb20ffab18f
Author: Peter Lee <[email protected]>
AuthorDate: Thu May 15 00:34:39 2025 +0800

    HDDS-12948. [Snapshot] Increase `ozone.om.fs.snapshot.max.limit` default 
value to 10k (#8376)
---
 hadoop-hdds/common/src/main/resources/ozone-default.xml                | 3 ++-
 .../common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java  | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml 
b/hadoop-hdds/common/src/main/resources/ozone-default.xml
index dbc02cb4ed..82f6956b08 100644
--- a/hadoop-hdds/common/src/main/resources/ozone-default.xml
+++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml
@@ -2282,10 +2282,11 @@
 
   <property>
     <name>ozone.om.fs.snapshot.max.limit</name>
-    <value>1000</value>
+    <value>10000</value>
     <tag>OZONE, OM, MANAGEMENT</tag>
     <description>
       The maximum number of filesystem snapshot allowed in an Ozone Manager.
+      This limit is set to 65000 because the ext4 filesystem limits the number 
of hard links per file to 65,000.
     </description>
   </property>
 
diff --git 
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
 
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
index 782f21b263..d9b08494f0 100644
--- 
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
+++ 
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
@@ -278,7 +278,7 @@ public final class OMConfigKeys {
 
   public static final String OZONE_OM_FS_SNAPSHOT_MAX_LIMIT =
       "ozone.om.fs.snapshot.max.limit";
-  public static final int OZONE_OM_FS_SNAPSHOT_MAX_LIMIT_DEFAULT = 1000;
+  public static final int OZONE_OM_FS_SNAPSHOT_MAX_LIMIT_DEFAULT = 10000;
 
   public static final String OZONE_OM_KERBEROS_KEYTAB_FILE_KEY = "ozone.om."
       + "kerberos.keytab.file";


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

Reply via email to