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

fengnanli pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 23c22b282319 HADOOP-18906. Increase default batch size of ZKDTSM token 
seqnum to reduce overflow speed of zonde dataVersion. (#6097)
23c22b282319 is described below

commit 23c22b282319a407a2b37a6ebbd4f85873351d36
Author: Hexiaoqiao <hexiaoq...@apache.org>
AuthorDate: Tue Sep 19 01:50:53 2023 +0800

    HADOOP-18906. Increase default batch size of ZKDTSM token seqnum to reduce 
overflow speed of zonde dataVersion. (#6097)
---
 .../security/token/delegation/ZKDelegationTokenSecretManager.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java
index da233c33fa73..2524929853cc 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java
@@ -110,8 +110,9 @@ public abstract class 
ZKDelegationTokenSecretManager<TokenIdent extends Abstract
   public static final int ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT = 10000;
   public static final int ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT = 10000;
   public static final String ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT = "zkdtsm";
-  // by default it is still incrementing seq number by 1 each time
-  public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 1;
+  // By default, increase seq number by 100 each time to reduce overflow
+  // speed of znode dataVersion which is 32-integer now.
+  public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 100;
 
   private static final Logger LOG = LoggerFactory
       .getLogger(ZKDelegationTokenSecretManager.class);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to