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 e642a32 ZOOKEEPER-3961: Improve error message for
zookeeper.intBufferStarting…
e642a32 is described below
commit e642a325b91ab829aefa47708c7b4b45811d2d23
Author: Renan Tomazoni Pinzon <[email protected]>
AuthorDate: Sun Jul 11 20:01:09 2021 +0800
ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStarting…
…SizeBytes config
Author: Renan Tomazoni Pinzon <[email protected]>
Reviewers: Beluga Behr <[email protected]>, maoling <[email protected]>
Closes #1714 from rpinzon/master and squashes the following commits:
1b2c47469 [Renan Tomazoni Pinzon] ZOOKEEPER-3961: Improve error message for
zookeeper.intBufferStartingSizeBytes config
f3c5a746b [Renan Tomazoni Pinzon] ZOOKEEPER-3961: Improve error message for
zookeeper.intBufferStartingSizeBytes config
---
.../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 aeeebb9..51d5db6 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
@@ -253,7 +253,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 or equal
to 32."
+ String msg = "Buffer starting size (" + intBufferStartingSizeBytes
+ ") must be greater than or equal to 32. "
+ "Configure with
\"-Dzookeeper.intBufferStartingSizeBytes=<size>\" ";
LOG.error(msg);
throw new IllegalArgumentException(msg);