-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release old bundle from ownership cache when operator split bundle #13678
Conversation
@Nicklee007:Thanks for your contribution. For this PR, do we need to update docs? |
@Nicklee007 Could you please add unit tests for this case ? :) |
You delete the backticks (``) so that Bot can not recognize the info and then labels the PR with Instructions of doc labels: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz |
@Shoothzj ok, I have add unit test for the case. |
} | ||
Awaitility.await().untilAsserted(() | ||
-> assertNull(namespaceService.getOwnershipCache().getOwnedBundles().get(splitBundle2))); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unneeded space line
TopicName topicName = TopicName.get("persistent://pulsar/global/ns1/topic-1"); | ||
NamespaceBundles bundles = namespaceService.getNamespaceBundleFactory().getBundles(nsname); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest one space line instead of two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest one space line instead of two
@Shoothzj Thank you for your correction,update it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
8d40421
to
7f8969c
Compare
Fixes #13677
Modifications
release the old bundle from ownership and temporary znode cache when we split the old bundle;
Modifications
remove the old bundle when we split the bundle successed, and async release the temporary znode
Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?