You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "liangyepianzhou (via GitHub)" <gi...@apache.org> on 2023/08/04 16:18:16 UTC

[GitHub] [pulsar] liangyepianzhou commented on a diff in pull request #20927: [fix][txn]Remove subscription after transaction pending ack init failed.

liangyepianzhou commented on code in PR #20927:
URL: https://github.com/apache/pulsar/pull/20927#discussion_r1284618728


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/pendingack/impl/PendingAckHandleImpl.java:
##########
@@ -946,6 +946,7 @@ public void completeHandleFuture() {
 
     public void exceptionHandleFuture(Throwable t) {
         final boolean completedNow = this.pendingAckHandleCompletableFuture.completeExceptionally(t);
+        persistentSubscription.getTopic().getSubscriptions().remove(subName);

Review Comment:
   How about to unload the subscription.
   ```java
   ((PersistentTopic)persistentSubscription.getTopic()).unloadSubscription(subName);
   ```



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