This is an automated email from the ASF dual-hosted git repository. hexiaoqiao pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push: new 7251a3d5f550 HADOOP-18906. Increase default batch size of ZKDTSM token seqnum to reduce overflow speed of zonde dataVersion. (#6097) 7251a3d5f550 is described below commit 7251a3d5f550cd5d7d7f5792c47628f13d6c0981 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) (cherry picked from commit 23c22b282319a407a2b37a6ebbd4f85873351d36) --- .../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 a7c637b8ddd0..2731adbf05e2 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 @@ -109,8 +109,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