Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Topic properties support for update and remove #5911

Merged
merged 6 commits into from
Sep 27, 2023
Merged

Topic properties support for update and remove #5911

merged 6 commits into from
Sep 27, 2023

Conversation

liangyepianzhou
Copy link

@liangyepianzhou liangyepianzhou commented Sep 27, 2023

Motivation

Verifying this change

  • Make sure that the change passes the CI checks.

(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:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

AnonHxy and others added 6 commits September 27, 2023 13:51
* [broker][admin] Add cmd to remove topic properties

* address comment

* address comment

(cherry picked from commit 7075a5c)
(cherry picked from commit 6f8dbc7)
Co-authored-by: bjhuxiaohua <[email protected]>
(cherry picked from commit f1d1158)
(cherry picked from commit 723ad75)
### 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)
@liangyepianzhou
Copy link
Author

@liangyepianzhou liangyepianzhou changed the title Cherry pick for lego Cherry pick Sep 27, 2023
@codelipenghui codelipenghui merged commit 6d7dfcf into streamnative:branch-2.10.5.2-5ce22c Sep 27, 2023
2 checks passed
This was referenced Sep 27, 2023
@liangyepianzhou liangyepianzhou changed the title Cherry pick Topic properties support for update and remove Sep 27, 2023
gaoran10 pushed a commit that referenced this pull request Oct 9, 2023
liangyepianzhou added a commit that referenced this pull request Oct 25, 2023
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
liangyepianzhou added a commit that referenced this pull request Oct 25, 2023
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
liangyepianzhou added a commit that referenced this pull request Oct 25, 2023
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
liangyepianzhou added a commit that referenced this pull request Dec 13, 2023
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
liangyepianzhou added a commit that referenced this pull request Dec 14, 2023
(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)
liangyepianzhou added a commit that referenced this pull request Dec 14, 2023
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
poorbarcode pushed a commit that referenced this pull request Feb 3, 2024
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
(cherry picked from commit 6bed83b)
liangyepianzhou added a commit that referenced this pull request Mar 12, 2024
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
(cherry picked from commit 6bed83b)
liangyepianzhou added a commit that referenced this pull request Mar 12, 2024
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
(cherry picked from commit 6bed83b)
liangyepianzhou added a commit that referenced this pull request Mar 13, 2024
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
(cherry picked from commit 6bed83b)
liangyepianzhou added a commit that referenced this pull request Mar 13, 2024
* Topic properties support for update and remove (#5911)

(cherry picked from commit 6d7dfcf)
(cherry picked from commit 6564e6e)
(cherry picked from commit bc7ee1a)
(cherry picked from commit 403aafe)

* [fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
(cherry picked from commit 8765134)
(cherry picked from commit f6e3643)

* Revert gpg and delete useless file

(cherry picked from commit 2739f2c)
(cherry picked from commit 73b7c06)
(cherry picked from commit 2eb4139)
(cherry picked from commit 6bed83b)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants