Skip to content

Commit

Permalink
ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStarting…
Browse files Browse the repository at this point in the history
…SizeBytes config

Author: Renan Tomazoni Pinzon <rpinzon@gmail.com>

Reviewers: Beluga Behr <dam6923@gmail.com>, maoling <maoling@apache.org>

Closes apache#1714 from rpinzon/master and squashes the following commits:

1b2c474 [Renan Tomazoni Pinzon] ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStartingSizeBytes config
f3c5a74 [Renan Tomazoni Pinzon] ZOOKEEPER-3961: Improve error message for zookeeper.intBufferStartingSizeBytes config
  • Loading branch information
rpinzon authored and anurag-harness committed Nov 2, 2022
1 parent 819a33f commit 36a3f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected enum State {
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);
Expand Down

0 comments on commit 36a3f28

Please sign in to comment.