poorbarcode opened a new pull request, #18043: URL: https://github.com/apache/pulsar/pull/18043
Fixes #18029 - #18029 ### Motivation When the `AdminApi2Test` is executed, there have many test methods. When the next method is run, there may be an ongoing but unfinished `NamespaceService.onNamespaceBundleOwned()`, which will create system topic `__change_event`, if the instruction `namespace.delete()` is executed at the same time, the problem occurs. ### Modifications Create a new class `CanPausedNamespaceService.java` witch can stop the subsequent execution of `NamespaceService.onNamespaceBundleOwned()`. Then, if we want to do `namespace.delete()`, we will do `pause` first. ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: - 1 -- 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]
