Skip to content

Conversation

zhouyifan279
Copy link
Contributor

@zhouyifan279 zhouyifan279 commented Sep 27, 2025

Fixes #24792

Motivation

After unloading a bundle with many non-persistent topics from Broker, we found some producers in ProducerAccessMode.Shared mode were still publishing messages to the broker. Even thought the topic was not loaded by the broker any more.

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

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: zhouyifan279#3

@zhouyifan279 zhouyifan279 marked this pull request as draft September 27, 2025 08:03
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 27, 2025
@zhouyifan279 zhouyifan279 marked this pull request as ready for review September 29, 2025 01:03
Copy link
Contributor

@Technoboy- Technoboy- left a comment

Choose a reason for hiding this comment

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

what's the root cause of this issue ? race condition or ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][broker] Producer still publishes messages to Broker after Topic was unloaded.
2 participants