[fix][broker] managedLedger.getConfig().getProperties().putAll(properties) NPE - #20361
Merged
nodece merged 1 commit intoMay 20, 2023
Merged
Conversation
heesung-sohn
force-pushed
the
managedLedgerConfig-Properties-NPE
branch
from
May 19, 2023 19:41
ed1dfe4 to
581833a
Compare
Contributor
Author
|
@liangyepianzhou PTAL. |
Technoboy-
approved these changes
May 20, 2023
liangyepianzhou
approved these changes
May 20, 2023
nodece
approved these changes
May 20, 2023
Member
|
/pulsarbot rerun-failure-checks |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20361 +/- ##
=============================================
+ Coverage 37.92% 72.89% +34.96%
- Complexity 12694 31857 +19163
=============================================
Files 1691 1864 +173
Lines 129047 138321 +9274
Branches 14070 15173 +1103
=============================================
+ Hits 48942 100828 +51886
+ Misses 73777 29482 -44295
- Partials 6328 8011 +1683
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
liangyepianzhou
pushed a commit
to streamnative/pulsar-archived
that referenced
this pull request
May 24, 2023
…ties) NPE (apache#20361) (cherry picked from commit aa7decc)
liangyepianzhou
pushed a commit
to liangyepianzhou/pulsar
that referenced
this pull request
Oct 19, 2023
…ties) NPE (apache#20361) (cherry picked from commit aa7decc)
15 tasks
liangyepianzhou
added a commit
to streamnative/pulsar-archived
that referenced
this pull request
Oct 19, 2023
…ties) NPE (apache#20361) (#5932) (cherry picked from commit aa7decc) Co-authored-by: Heesung Sohn <103456639+heesung-sn@users.noreply.github.com>
liangyepianzhou
added a commit
to liangyepianzhou/pulsar
that referenced
this pull request
Oct 24, 2023
…ties) NPE (apache#20361) (apache#5932) (cherry picked from commit aa7decc) Co-authored-by: Heesung Sohn <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b) * Revert gpg and delete useless file (cherry picked from commit 2739f2c)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b) * Revert gpg and delete useless file (cherry picked from commit 2739f2c)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b) * Revert gpg and delete useless file (cherry picked from commit 2739f2c)
liangyepianzhou
added a commit
to liangyepianzhou/pulsar
that referenced
this pull request
Dec 13, 2023
…ties) NPE (apache#20361) (apache#5932) (cherry picked from commit aa7decc) Co-authored-by: Heesung Sohn <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b) (cherry picked from commit 8765134)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to liangyepianzhou/pulsar
that referenced
this pull request
Dec 14, 2023
…ties) NPE (apache#20361) (apache#5932) (cherry picked from commit aa7decc) Co-authored-by: Heesung Sohn <103456639+heesung-sn@users.noreply.github.com> (cherry picked from commit 5f6ed1b) (cherry picked from commit 8765134) (cherry picked from commit f6e3643)
liangyepianzhou
added a commit
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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
to streamnative/pulsar-archived
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 <103456639+heesung-sn@users.noreply.github.com> (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)
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Apr 8, 2024
…ties) NPE (apache#20361) (cherry picked from commit aa7decc)
nodece
pushed a commit
to nodece/pulsar
that referenced
this pull request
May 11, 2024
…ties) NPE (apache#20361) (cherry picked from commit aa7decc)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Old topics/ledgers before #17238 can have null ManagedLedgerConfig.properties.
Modifications
Added a null check when adding new properties upon
managedLedger.getConfig().getProperties().putAll(properties)Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: