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 <[email protected]>
AuthorDate: Sun Apr 4 14:39:26 2021 +0800

    ZOOKEEPER-3961: Improve error message for 
zookeeper.intBufferStartingSizeBytes config
    
    … verification.
    
    Author: Ghatage <[email protected]>
    
    Reviewers: Damien Diederen <[email protected]>, Andor Molnar 
<[email protected]>,Enrico Olivelli <[email protected]>, Mate Szalay-Beko 
<[email protected]>, maoling <[email protected]>
    
    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);

Reply via email to