-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[pulsar-broker] add cli/admin api to delete bookie-affinity group #4471
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
Conversation
|
retest this please |
Fix: get correct available-primary bookie count | cli optional fix test
|
rerun integration tests |
sijie
left a comment
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.
@Anonymitaet @jennifer88huang can anyone of you help review the documentation for this api endpoint?
| @ApiOperation(hidden = true, value = "Delete the bookie-affinity-group from namespace-local policy.") | ||
| @ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have admin permission"), | ||
| @ApiResponse(code = 404, message = "Namespace does not exist"), | ||
| @ApiResponse(code = 409, message = "Concurrent modification") }) |
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.
@rdhabalia since you are adding new endpoints, do you mind making sure all the return codes are properly documented? since there are multiple efforts on improving the documentation around this area.
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.
yes, it seems correct to me.
| @DELETE | ||
| @Path("/{property}/{namespace}/persistence/bookieAffinity") | ||
| @ApiOperation(hidden = true, value = "Delete the bookie-affinity-group from namespace-local policy.") | ||
| @ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have admin permission"), |
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.
same comment as above
Jennifer88huang-zz
left a comment
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.
I have checked description, and there is no issue with it.
Approve from language level. Dev can check the methods and other tech issues.
|
@rdhabalia do we need this issue for 2.4.0? or can we move it to 2.5.0? |
|
yes, we need this one for 2.4 and it's ready to merge as well. |
|
@rdhabalia can you check the review comments from @jennifer88huang and @Anonymitaet ? |
Sure, but I replied to comment and it seems things are expected. Can you please let me know if I am missing anything here to address. |
|
rerun java8 tests |
1 similar comment
|
rerun java8 tests |
|
rerun cpp tests |
Motivation
This PR is on top of #4458. It adds support to delete bookie-affinity group using cli/admin api.