kezhuw opened a new pull request #10165:
URL: https://github.com/apache/pulsar/pull/10165
See #7517.
See #7773.
### Motivation
Add assertions for namespace listener in test cases when zookeeper
disconnected.
### Modifications
Add assertions in `TopicOwnerTest` to guard
`NamespaceBundleOwnershipListener` when zookeeper disconnected.
* `testAcquireOwnershipWithZookeeperDisconnectedBeforeOwnershipNodeCreated`
* `testAcquireOwnershipWithZookeeperDisconnectedAfterOwnershipNodeCreated`
* `testReestablishOwnershipAfterInvalidateCache`
* `testReleaseOwnershipWithZookeeperDisconnectedBeforeOwnershipNodeDeleted`
* `testReleaseOwnershipWithZookeeperDisconnectedAfterOwnershipNodeDeleted`
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change is already covered by existing tests:
* `TopicOwnerTest`
### 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
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not applicable)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
### WARNING
**This will breaks #10126.**
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]