forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in concurrent schema deletion (apache#11606)
This PR fixes apache#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`.
- Loading branch information
1 parent
1d1f633
commit 43ded59
Showing
3 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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