-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future completed twice in the method of impl.MLPendingAckStore#closeAsync #12362
Future completed twice in the method of impl.MLPendingAckStore#closeAsync #12362
Conversation
@congbobo184 As you mentioned in #12113 (comment), I fixed it here |
@lordcheng10 could you please change |
Ok, will fix! |
please review again. thanks. @congbobo184 |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/pulsarbot run-failure-checks |
2 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
...er/src/main/java/org/apache/pulsar/broker/transaction/pendingack/impl/MLPendingAckStore.java
Outdated
Show resolved
Hide resolved
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
@lordcheng10 Thanks for your contribution. For this PR, do we need to update docs? (The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks) |
I think there is no need to modify the document, this PR did not change the original logic. |
@merlimat PTAL,thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Good work @lordcheng10 . It seems that this fix also has a performance improvement aspect since it replaces a blocking close method with closeAsync. Nice. |
CompletableFuture is completed twice in this code:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/pendingack/impl/MLPendingAckStore.java
Lines 120 to 135 in 0460472