-
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
Fix KafkaRebalanceAssemblyOperator
to not ignore exception coming from Cruise Control
#10701
Conversation
Signed-off-by: ShubhamRwt <[email protected]>
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'm not sure I follow the changes, that is probably more something for @ppatierno. But should there be some unit tests to check what you describe? You just changed some unit tests where reconciliation was failing to succeeding. It is not clear to me why. But none seems to test the situation I had where the reconciliation was stuck.
@scholzj I had an offline conversation with @ShubhamRwt about this and right now this is the best solution to fix that issue. Right now errors coming from CC are not handled pretty well. Some of them are "translated" into actual responses (i.e. the not enough data in window) to avoid showing errors to users and putting the KR in a "NotReady" state but showing a "PendingProposal" (because that's what the error means). |
@scholzj update :-) ... we'll try to have something better on handling errors from CC for this use case as well, because it seems we do already something this way when getting user tasks status but not when rebalancing requests (as in this scenario). So ... stay tuned ;-) |
TBH, I do bot understand the code here very well. So my main issue was that
it does not look anything like what the PR name/description suggests.
So, maybe the PR is good and the explanation of what it does needs to be
better? I don't know, you should be better placed to decide that.
…On Mon, Oct 14, 2024, 12:01 Paolo Patierno ***@***.***> wrote:
@scholzj <https://github.com/scholzj> update :-) ... we'll try to have
something better on handling errors from CC for this use case as well,
because it seems we do already something this way when getting user tasks
status but not when rebalancing requests (as in this scenario). So ... stay
tuned ;-)
—
Reply to this email directly, view it on GitHub
<#10701 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFOR5Q3YSDBXHLDRUPN53Z3OI7RAVCNFSM6AAAAABPYTKHJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJQGY3DQMJXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I went deeper in debugging the issue and I found the related problem which is about a "never ending" reconciliation keeping the |
If #10717 replaces this you should probably close it right away to avoid any confusions? |
Type of change
This PR fixes #10631. Now the KafkaRebalanceAssemblyOperator doesn't ignore the Illegal argument excepts which comes from Cruise Control and move the KafkaRebalance to
NotReady
in case any IllegalArgumentExceptions occursDescription
Please describe your pull request
Checklist
Please go through this checklist and make sure all applicable tasks have been done