You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/08/18 02:13:01 UTC

[GitHub] [pulsar] gaozhangmin commented on a change in pull request #11683: failed update partition of topic

gaozhangmin commented on a change in pull request #11683:
URL: https://github.com/apache/pulsar/pull/11683#discussion_r690847754



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -3636,6 +3638,13 @@ private PersistentReplicator getReplicatorReference(String replName, PersistentT
                         p -> new PartitionedTopicMetadata(numPartitions));
                 updatePartition.complete(null);
             } catch (Exception e) {
+                for(int i = oldPartition; i < numPartitions; i++) {
+                    try {
+                        namespaceResources().getPartitionedTopicResources().delete(ZkAdminPaths.managedLedgerPath(topicName.getPartition(i)));

Review comment:
       `delete` is a asynchronous method




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org