-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Refactor the implementation for getting status of rebalance proposal request #10607
Conversation
196290c
to
06aed7a
Compare
60af0b5
to
5d33f2b
Compare
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM assuming the tests pass. Should be reviewed by SMEs (@ppatierno )
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.
@tinaselenge I left one comment and overall it seems to be ok. Anyway before merging I would love if you could rebase against the main (where now the auto-rebalancing is available). I would like to give this PR a go locally together with auto-rebalancing before approving.
.../main/java/io/strimzi/operator/cluster/operator/assembly/KafkaRebalanceAssemblyOperator.java
Show resolved
Hide resolved
5d33f2b
to
bf7827c
Compare
@ppatierno I have rebased it to main :) |
@tinaselenge thanks! Anyway I would like to wait for this PR #10652 to be merged and doing another rebase, because it fixes a subtle bug in auto-rebalancing. So I would like to try your PR against the "final" auto-rebalancing. But in general your PR LGTM, just looking for the confirmation by testing it with the auto-rebalancing. |
@tinaselenge finally #10652 was merged. Can you rebase your PR so I can try it locally? Thanks! |
…request Signed-off-by: Gantigmaa Selenge <tina.selenge@gmail.com>
…onse for both proposal and rebalance request Signed-off-by: Gantigmaa Selenge <tina.selenge@gmail.com>
bf7827c
to
cc78c9c
Compare
Signed-off-by: Gantigmaa Selenge <tina.selenge@gmail.com>
@ppatierno I have rebased again and addressed the review comment. Thanks |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM. Thanks!
Also tested within the auto-rebalancing scenario and it seems to work.
Type of change
Select the type of your PR
Description
Use
/kafkacruisecontrol/user_tasks
endpoint to check the status of proposal request (rebalance request in dry mode) instead of/kafkacruisecontrol/rebalance
endpoint with userTaskId. This makes it more consistent with how we check the status of rebalance request.Updated MockCruiseControl.setupCCRebalanceResponse() to set user task id to the one that matches verbose response, so that the subsequent requests to /user_tasks endpoint can return a verbose response with load optimisation.
Closes #10294
Checklist
Please go through this checklist and make sure all applicable tasks have been done