Skip to content

Commit

Permalink
[fix] [broker] Fix typo in PersistentTopicsBase (apache#22904)
Browse files Browse the repository at this point in the history
  • Loading branch information
richiefanfan authored and hanmz committed Feb 12, 2025
1 parent 3512968 commit a464617
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4480,11 +4480,11 @@ private CompletableFuture<Void> validateNonPartitionTopicNameAsync(String topicN
// Partition topic index is 0 to (number of partition - 1)
if (metadata.partitions > 0 && suffix >= (long) metadata.partitions) {
log.warn("[{}] Can't create topic {} with \"-partition-\" followed by"
+ " a number smaller then number of partition of partitioned topic {}.",
+ " a number smaller than number of partition of partitioned topic {}.",
clientAppId(), topicName, partitionTopicName.getLocalName());
throw new RestException(Status.PRECONDITION_FAILED,
"Can't create topic " + topicName + " with \"-partition-\" followed by"
+ " a number smaller then number of partition of partitioned topic "
+ " a number smaller than number of partition of partitioned topic "
+ partitionTopicName.getLocalName());
} else if (metadata.partitions == 0) {
log.warn("[{}] Can't create topic {} with \"-partition-\" followed by"
Expand Down

0 comments on commit a464617

Please # to comment.