Skip to content

[fix][broker] fix MessageDeduplication throw NPE when enable broker dedup and set namespace disable deduplication.#20905

Merged
Technoboy- merged 1 commit intoapache:masterfrom
lifepuzzlefun:fix_npe_when_disable_namespace_deduplication_and_broker_deduplication_is_enabled
Aug 1, 2023
Merged

[fix][broker] fix MessageDeduplication throw NPE when enable broker dedup and set namespace disable deduplication.#20905
Technoboy- merged 1 commit intoapache:masterfrom
lifepuzzlefun:fix_npe_when_disable_namespace_deduplication_and_broker_deduplication_is_enabled

Conversation

@lifepuzzlefun
Copy link
Copy Markdown
Contributor

@lifepuzzlefun lifepuzzlefun commented Jul 30, 2023

Fixes #20904

Motivation

when enable broker level deduplication and disable namespace level deduplication.
the brokerService checkSnapshotTask will throw npe.

Modifications

if the topic disable deduplication. skip take snapshot of deduplication.

Verifying this change

add unit test in this patch.

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:

@lifepuzzlefun lifepuzzlefun changed the title [fix] [broker] fix MessageDeduplication throw NPE when enable broker dedup and set namespace disable deduplication. [fix][broker] fix MessageDeduplication throw NPE when enable broker dedup and set namespace disable deduplication. Jul 30, 2023
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jul 30, 2023
@Technoboy- Technoboy- modified the milestones: 3.1.0, 3.2.0 Jul 31, 2023
@Technoboy- Technoboy- modified the milestones: 3.2.0, 3.1.0 Aug 1, 2023
@Technoboy- Technoboy- merged commit 4349e9f into apache:master Aug 1, 2023
Technoboy- pushed a commit that referenced this pull request Aug 1, 2023
Technoboy- pushed a commit that referenced this pull request Aug 17, 2023
Technoboy- pushed a commit that referenced this pull request Aug 17, 2023
Technoboy- pushed a commit that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] MessageDeduplication throw NPE when enable broker dedup and set namespace disable deduplication.

4 participants