You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ma...@apache.org on 2021/04/04 06:39:37 UTC
[zookeeper] branch master updated: ZOOKEEPER-3961: Improve error
message for zookeeper.intBufferStartingSizeBytes config
This is an automated email from the ASF dual-hosted git repository.
maoling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 061438e ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStartingSizeBytes config
061438e is described below
commit 061438e83e61692fc9e06e057a739db5327d42b9
Author: Ghatage <gh...@gmail.com>
AuthorDate: Sun Apr 4 14:39:26 2021 +0800
ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStartingSizeBytes config
… verification.
Author: Ghatage <gh...@gmail.com>
Reviewers: Damien Diederen <dd...@apache.org>, Andor Molnar <an...@apache.org>,Enrico Olivelli <eo...@apache.org>, Mate Szalay-Beko <sy...@apache.org>, maoling <ma...@apache.org>
Closes #1495 from Ghatage/ZOOKEEPER-3961
---
.../src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
index f0e3c82..72e5577 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
@@ -251,7 +251,7 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
intBufferStartingSizeBytes = Integer.getInteger(INT_BUFFER_STARTING_SIZE_BYTES, DEFAULT_STARTING_BUFFER_SIZE);
if (intBufferStartingSizeBytes < 32) {
- String msg = "Buffer starting size must be greater than 0."
+ String msg = "Buffer starting size must be greater than or equal to 32."
+ "Configure with \"-Dzookeeper.intBufferStartingSizeBytes=<size>\" ";
LOG.error(msg);
throw new IllegalArgumentException(msg);