-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[broker][admin] Add cmd to remove topic properties #17337
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
Merged
yuruguo
merged 3 commits into
apache:master
from
yuruguo:add_cmd_to_remove_topic_properties
Sep 1, 2022
Merged
[broker][admin] Add cmd to remove topic properties #17337
yuruguo
merged 3 commits into
apache:master
from
yuruguo:add_cmd_to_remove_topic_properties
Sep 1, 2022
Conversation
This file contains hidden or 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
Jason918
reviewed
Aug 30, 2022
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
AnonHxy
reviewed
Aug 30, 2022
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Show resolved
Hide resolved
AnonHxy
reviewed
Aug 31, 2022
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java
Outdated
Show resolved
Hide resolved
AnonHxy
approved these changes
Sep 1, 2022
Jason918
approved these changes
Sep 1, 2022
Contributor
Jason918
left a comment
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
nodece
pushed a commit
to nodece/pulsar
that referenced
this pull request
Sep 8, 2022
* [broker][admin] Add cmd to remove topic properties * address comment * address comment
Contributor
|
@yuruguo Why does this PR need to release to 2.10.3? This pr comes from #17238 (comment), and adding |
liangyepianzhou
pushed a commit
to streamnative/pulsar-archived
that referenced
this pull request
Mar 1, 2023
* [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c)
yaalsn
pushed a commit
to streamnative/pulsar-archived
that referenced
this pull request
Mar 1, 2023
* [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c)
liangyepianzhou
pushed a commit
to streamnative/pulsar-archived
that referenced
this pull request
May 10, 2023
* [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
that referenced
this pull request
Sep 27, 2023
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) (cherry picked from commit 6f8dbc7) * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) (cherry picked from commit 723ad75) * [fix][broker] Fix NPE when update topic properties. ### Motivation In Pulsar 2.10, when creating a producer/consumer that auto-creates a topic and then attempts to update its properties, a NullPointerException (NPE) occurs. The reason is that Pulsar 2.10 does not correctly handle the case when the properties are `null`. ### Modifications Add an NPE check. (cherry picked from commit 0b02321) * remove release profile * import * Revert "remove release profile" This reverts commit 6bec650. --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
liangyepianzhou
added a commit
to streamnative/pulsar-archived
that referenced
this pull request
Sep 27, 2023
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) (cherry picked from commit 6f8dbc7) * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) (cherry picked from commit 723ad75) * [fix][broker] Fix NPE when update topic properties. ### Motivation In Pulsar 2.10, when creating a producer/consumer that auto-creates a topic and then attempts to update its properties, a NullPointerException (NPE) occurs. The reason is that Pulsar 2.10 does not correctly handle the case when the properties are `null`. ### Modifications Add an NPE check. (cherry picked from commit 0b02321) * remove release profile * import * Revert "remove release profile" This reverts commit 6bec650. --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
nodece
pushed a commit
to nodece/pulsar
that referenced
this pull request
Nov 24, 2023
* [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) Signed-off-by: Zixuan Liu <[email protected]>
nodece
added a commit
to ascentstream/pulsar
that referenced
this pull request
Nov 27, 2023
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) Signed-off-by: Zixuan Liu <[email protected]> * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) Signed-off-by: Zixuan Liu <[email protected]> * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
nodece
added a commit
to ascentstream/pulsar
that referenced
this pull request
Mar 15, 2024
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) Signed-off-by: Zixuan Liu <[email protected]> * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) Signed-off-by: Zixuan Liu <[email protected]> * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
nodece
added a commit
to ascentstream/pulsar
that referenced
this pull request
Mar 15, 2024
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) Signed-off-by: Zixuan Liu <[email protected]> * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) Signed-off-by: Zixuan Liu <[email protected]> * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
nodece
added a commit
to nodece/pulsar
that referenced
this pull request
May 11, 2024
* [broker][admin]Add api for update topic properties (apache#17238) (cherry picked from commit b21f728) Signed-off-by: Zixuan Liu <[email protected]> * [broker][admin] Add cmd to remove topic properties (apache#17337) * [broker][admin] Add cmd to remove topic properties * address comment * address comment (cherry picked from commit 7075a5c) Signed-off-by: Zixuan Liu <[email protected]> * [fix][broker] Fix NPE when updating topic's properties (apache#17352) Co-authored-by: bjhuxiaohua <[email protected]> (cherry picked from commit f1d1158) --------- Co-authored-by: Xiaoyu Hou <[email protected]> Co-authored-by: Ruguo Yu <[email protected]> Co-authored-by: Flowermin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/admin
doc-not-needed
Your PR changes do not impact docs
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
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
This pr comes from #17238 (comment) and its purpose is to remove the specified key of properties on the topic.
Modifications
Documentation
doc-not-needed