wuzhanpeng opened a new pull request #11606: URL: https://github.com/apache/pulsar/pull/11606
This PR may fixed #11605 ### Motivation Concurrently deleting topics with the same schema may cause race condition in broker side. If we do not handle these scenarios correctly we will get unexpected exceptions in broker logs. ### Modifications 1. Add existence checks before schema deletion in `AbstractTopic#deleteSchema`. 2. Add existence checks before actually performing schema storage deletion in `BookkeeperSchemaStorage#deleteSchema`. 3. Ignore `NoNodeException` in `BookkeeperSchemaStorage#deleteSchema`. ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): no - The public API: no - The schema: no - The default values of configurations: no - The wire protocol: no - The rest endpoints: no - The admin cli options: no - Anything that affects deployment: no ### Documentation This PR does not need to update the docs. -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org