Browse Source

MINOR: more details in error message descriptions (#3267)

Reviewers: Guozhang Wang <wangguoz@gmail.com>
pull/3648/merge
Magnus Reftel 7 years ago committed by Guozhang Wang
parent
commit
234b54c2c4
  1. 4
      clients/src/main/java/org/apache/kafka/common/protocol/Errors.java

4
clients/src/main/java/org/apache/kafka/common/protocol/Errors.java

@ -378,14 +378,14 @@ public enum Errors { @@ -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) {

Loading…
Cancel
Save