zhouyifan279 opened a new issue, #24792: URL: https://github.com/apache/pulsar/issues/24792
### Search before reporting - [x] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Read release policy - [x] I understand that [unsupported versions](https://pulsar.apache.org/contribute/release-policy/#supported-versions) don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker. ### User environment Broker version: 4.1.0 ### Issue Description 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. ### Error messages ```text ``` ### Reproducing the issue Run [AbstractTopicTest#testOverwriteOldProducerAfterTopicClosed](https://github.com/apache/pulsar/blob/8c6eb0c5d1541d49451cecfa2af43cef71def416/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/AbstractTopicTest.java#L120) ### Additional information _No response_ ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
