-
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] Fix uncompleted future when getting the topic policies of a deleted topic #18824
Merged
liangyepianzhou
merged 1 commit into
apache:master
from
liangyepianzhou:xiangying/fix/topic/fix_uncompleteFuture_of_get_topic_policy
Dec 9, 2022
Merged
[fix][broker] Fix uncompleted future when getting the topic policies of a deleted topic #18824
liangyepianzhou
merged 1 commit into
apache:master
from
liangyepianzhou:xiangying/fix/topic/fix_uncompleteFuture_of_get_topic_policy
Dec 9, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… deleted topic ### Motivation Fix uncompleted future when get the topic policies of a deleted topic. ### Modification `future.complete(null);` when `msg.getValue() != null`.
liangyepianzhou
requested review from
codelipenghui,
Jason918,
congbobo184 and
Technoboy-
and removed request for
codelipenghui
December 8, 2022 13:35
AnonHxy
approved these changes
Dec 9, 2022
LGTM. It seems that this method will only be called from UT test case now |
Technoboy-
approved these changes
Dec 9, 2022
Codecov Report
@@ Coverage Diff @@
## master #18824 +/- ##
============================================
+ Coverage 47.39% 48.12% +0.72%
- Complexity 10479 10730 +251
============================================
Files 698 703 +5
Lines 68070 68819 +749
Branches 7279 7376 +97
============================================
+ Hits 32264 33118 +854
+ Misses 32228 32003 -225
- Partials 3578 3698 +120
Flags with carried forward coverage won't be shown. Click here to find out more.
|
coderzc
approved these changes
Dec 9, 2022
congbobo184
approved these changes
Dec 9, 2022
congbobo184
pushed a commit
that referenced
this pull request
Dec 9, 2022
… deleted topic (#18824) Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 `future.complete(null);` when `msg.getValue() == null`. (cherry picked from commit b311961)
liangyepianzhou
added a commit
that referenced
this pull request
Dec 9, 2022
… deleted topic (#18824) Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 `future.complete(null);` when `msg.getValue() == null`. (cherry picked from commit b311961)
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 26, 2022
… deleted topic (apache#18824) ### Motivation Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 ### Modification `future.complete(null);` when `msg.getValue() == null`.
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 29, 2022
… deleted topic (apache#18824) ### Motivation Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 ### Modification `future.complete(null);` when `msg.getValue() == null`.
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 10, 2023
… deleted topic (apache#18824) Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 `future.complete(null);` when `msg.getValue() == null`. (cherry picked from commit b311961) (cherry picked from commit 1d98196)
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
… deleted topic (apache#18824) ### Motivation Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 ### Modification `future.complete(null);` when `msg.getValue() == null`.
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 11, 2023
… deleted topic (apache#18824) Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 `future.complete(null);` when `msg.getValue() == null`. (cherry picked from commit b311961) (cherry picked from commit 1d98196)
Technoboy-
pushed a commit
that referenced
this pull request
Feb 8, 2023
… deleted topic (#18824) Fix the uncompleted future when getting the topic policies of a deleted topic. https://github.com/apache/pulsar/blob/30b52a1ac11b4be485258140a167b5e635586a36/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java#L513-L535 `future.complete(null);` when `msg.getValue() == null`.
liangyepianzhou
deleted the
xiangying/fix/topic/fix_uncompleteFuture_of_get_topic_policy
branch
February 27, 2023 03:27
momo-jun
changed the title
[fix][broker] Fix uncompleted future when get the topic policies of a deleted topic
[fix][broker] Fix uncompleted future when getting the topic policies of a deleted topic
Apr 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/broker
cherry-picked/branch-2.9
Archived: 2.9 is end of life
cherry-picked/branch-2.10
cherry-picked/branch-2.11
doc-not-needed
Your PR changes do not impact docs
ready-to-test
release/2.9.4
release/2.10.3
release/2.11.1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Fix the uncompleted future when getting the topic policies of a deleted topic.
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Lines 513 to 535 in 30b52a1
Modification
future.complete(null);
whenmsg.getValue() == null
.Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: liangyepianzhou#17