This is an automated email from the ASF dual-hosted git repository. guozhang pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push: new 234b54c MINOR: more details in error message descriptions (#3267) 234b54c is described below commit 234b54c2c46fb7e7e60b3cedd5be642925f1da19 Author: Magnus Reftel <magnus.ref...@gmail.com> AuthorDate: Wed Feb 14 03:36:35 2018 +0100 MINOR: more details in error message descriptions (#3267) Reviewers: Guozhang Wang <wangg...@gmail.com> --- clients/src/main/java/org/apache/kafka/common/protocol/Errors.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java b/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java index 4b44c18..941ce0b 100644 --- a/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java +++ b/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java @@ -378,14 +378,14 @@ public enum Errors { return new TopicExistsException(message); } }), - INVALID_PARTITIONS(37, "Number of partitions is invalid.", + INVALID_PARTITIONS(37, "Number of partitions is below 1.", new ApiExceptionBuilder() { @Override public ApiException build(String message) { return new InvalidPartitionsException(message); } }), - INVALID_REPLICATION_FACTOR(38, "Replication-factor is invalid.", + INVALID_REPLICATION_FACTOR(38, "Replication factor is below 1 or larger than the number of available brokers.", new ApiExceptionBuilder() { @Override public ApiException build(String message) { -- To stop receiving notification emails like this one, please contact guozh...@apache.org.