-
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
[fix] [broker] print non log when delete partitioned topic failed #22153
[fix] [broker] print non log when delete partitioned topic failed #22153
Conversation
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.
I think this impacts more than printing the log message. Switching from thenApply
to thenComplete
will also change when the resulting CompetableFuture completes?
If this is the case, please reflect this in the PR title and the description.
UPDATE: it seems that before, the log "Topic deleted successfully due to inactivity" could get printed before the operation had completed since thenApply
was used.
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.
Good work @Technoboy-
Merging |
…ache#22153) (cherry picked from commit 72cedb7) (cherry picked from commit bbbd1ef)
…ache#22153) (cherry picked from commit 72cedb7) (cherry picked from commit bbbd1ef)
Motivation
https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L2968-L2983
The line
thenApply((res) -> tryToDeletePartitionedMetadata())
lost the error throws by "tryToDeletePartitionedMetadata", makes these two issues:future
ofdelete the topic and delete partitioned topic metadata if needed
only indicatesdelete topic partition
, notdelete topic and metadata
. BTW, thisfuture
was not used anywhere.Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x