-
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 all web threads will get stuck when deleting the namespace #11596
Conversation
@@ -227,7 +227,8 @@ protected void internalDeleteNamespace(AsyncResponse asyncResponse, boolean auth | |||
boolean isEmpty; | |||
List<String> topics; | |||
try { | |||
topics = pulsar().getNamespaceService().getListOfPersistentTopics(namespaceName).join(); | |||
topics = pulsar().getNamespaceService().getListOfPersistentTopics(namespaceName) |
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.
nice catch!
There are many places which call getListOfPersistentTopics
also use join
to get the CompletableFuture result, would you please fix them? 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.
Ok, I'll start a new PR and fix all the places where join is 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.
Lgtm
2.7.x will also have this problem, do we need to move it to 2.7.x? |
I am not sure that this patch applies to 2.7.x. if no user reported this problem it is better to not cherry pick patches to a "stable" branch. In my opinion we should cherry pick only the strictly needed patches, as far as a branch becomes "old" it is better to port only security related fixes or fixes about consistency or data loss. The more commits we cherry pick the more likely it is that we make the branch less stable |
(cherry picked from commit c4a2572)
Motivation
Since join() does not time out, all threads are blocked here.