Skip to content

Commit f17a57f

Browse files
committed
HADOOP-18906. Increase default batch size of ZKDTSM token seqnum to reduce overflow speed of zonde dataVersion.
1 parent 9e489b9 commit f17a57f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ public abstract class ZKDelegationTokenSecretManager<TokenIdent extends Abstract
110110
public static final int ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT = 10000;
111111
public static final int ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT = 10000;
112112
public static final String ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT = "zkdtsm";
113-
// by default it is still incrementing seq number by 1 each time
114-
public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 1;
113+
// By default, increase seq number by 100 each time to reduce overflow
114+
// speed of znode dataVersion which is 32-integer now.
115+
public static final int ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT = 100;
115116

116117
private static final Logger LOG = LoggerFactory
117118
.getLogger(ZKDelegationTokenSecretManager.class);

0 commit comments

Comments
 (0)