-
Notifications
You must be signed in to change notification settings - Fork 0
[improve][admin,broker] Add option to unloadNamespaceBundle with bundle Affinity broker url #7
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
base: master
Are you sure you want to change the base?
Changes from all commits
10a866b
0a7b068
e43fc50
1d2a971
94def53
ef8013a
ab7130b
d660951
a75ff44
09d4f76
f2b5759
fc9be0a
e86bdb1
6f94be4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -710,8 +710,8 @@ public CompletableFuture<Void> validateBundleOwnershipAsync(NamespaceBundle bund | |
| // Replace the host and port of the current request and redirect | ||
| URI redirect = UriBuilder.fromUri(uri.getRequestUri()).host(webUrl.get().getHost()) | ||
| .port(webUrl.get().getPort()).replaceQueryParam("authoritative", | ||
| newAuthoritative).build(); | ||
|
|
||
| newAuthoritative).replaceQueryParam("destinationBroker", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are replacing the param with null because if destination broker is not null in the input request, it will again try to call leader broker to add the input to bundle affinity map which is already done before this step. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it. |
||
| null).build(); | ||
| log.debug("{} is not a service unit owned", bundle); | ||
| // Redirect | ||
| log.debug("Redirecting the rest call to {}", redirect); | ||
|
|
||
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.
we need to update the doc in
admin-api-topics.mdfileThere 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.
done