Skip to content

Conversation

@yuruguo
Copy link
Contributor

@yuruguo yuruguo commented Aug 29, 2022

Motivation

This pr comes from #17238 (comment) and its purpose is to remove the specified key of properties on the topic.

Modifications

  • Add cmd to remove topic properties

Documentation

  • doc-not-needed

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 29, 2022
@yuruguo yuruguo self-assigned this Aug 29, 2022
@yuruguo yuruguo added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/admin labels Aug 30, 2022
@yuruguo yuruguo added this to the 2.12.0 milestone Aug 30, 2022
Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yuruguo yuruguo merged commit 7075a5c into apache:master Sep 1, 2022
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
@liangyepianzhou
Copy link
Contributor

liangyepianzhou commented Dec 7, 2022

@yuruguo Why does this PR need to release to 2.10.3?

This pr comes from #17238 (comment), and adding release/2.10.3 also refers to it.
However, this is not a correct behavior.
image

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants