merlimat commented on a change in pull request #6560: Fix: topic with one
partition cannot be updated
URL: https://github.com/apache/pulsar/pull/6560#discussion_r395116513
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -2162,11 +2162,6 @@ private PersistentReplicator
getReplicatorReference(String replName, PersistentT
String path = path(PARTITIONED_TOPIC_PATH_ZNODE,
topicName.getPersistenceNamingEncoding());
CompletableFuture<Void> result = new CompletableFuture<>();
pulsar().getBrokerService().fetchPartitionedTopicMetadataAsync(topicName).thenAccept(partitionMetadata
-> {
- if (partitionMetadata.partitions <= 1) {
Review comment:
Shouldn't this be changed into `< 1` ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services