-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fail fast LeaderCheck on CoordinationStateRejectedException #17400
base: main
Are you sure you want to change the base?
fail fast LeaderCheck on CoordinationStateRejectedException #17400
Conversation
cb70223
to
c60fc77
Compare
❌ Gradle check result for c60fc77: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Anurag Rai <anurag.rai@uber.com>
Signed-off-by: Anurag Rai <anurag.rai@uber.com>
72452c7
to
9292aa3
Compare
❌ Gradle check result for 9292aa3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 9292aa3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
} else if (exp.getCause() instanceof CoordinationStateRejectedException) { | ||
logger.debug(new ParameterizedMessage("leader [{}] rejected coordination state", leader), exp); | ||
leaderFailed(new CoordinationStateRejectedException("node [" + leader + "] rejected coordination state", exp)); | ||
return; |
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.
It's quite possible this check might succeed on the next liveness check interval, failing fast might turn out to be disruptive?
Description
This PR adds a provision to fail-fast the leaderCheck quickly if a
CoordinationStateRejectedException
exception is received. Please see the related issue for more details.Related Issues
Resolves #17155
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.