-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
ILM: Moving full inspection of all indices to MasterFailOver condition #87616
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/es-data-management (Team:Data Management) |
@@ -208,9 +212,9 @@ void onMaster(ClusterState clusterState) { | |||
} catch (Exception e) { | |||
if (logger.isTraceEnabled()) { | |||
logger.warn( | |||
() -> format( | |||
new ParameterizedMessage( |
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.
Thise lambda to ParameterizedMessage
looks like a bad merge to me, please undo it.
@@ -220,9 +224,9 @@ void onMaster(ClusterState clusterState) { | |||
); | |||
} else { | |||
logger.warn( | |||
() -> format( | |||
new ParameterizedMessage( |
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.
@@ -243,6 +247,7 @@ void onMaster(ClusterState clusterState) { | |||
} | |||
} | |||
|
|||
|
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.
Please remove errant whitespace change.
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.
Beyond my other issues, the code associated with this PR doesn't compile. That's a pretty big red flag.
I see. I will try to fix the details you mentioned and make sure it does compile. I'm sorry, I believed it had passed gradle check, but I was mistaken. |
No worries, best of luck. |
The previous version of the PR did not compile due to a variable that was being called on MasterFailOver, but was not set. I fixed this problem, plus the mentioned errant whitespace and bad merge.
Hi @PDTCCLF, thank you for working on this. I see there hasn't been any progress in this PR since July, I hope you do not mind if I give it a try myself. Let me know if you are still actively working on it. Then I will look for something else. |
Not at all. You can work on it. Thanks for asking. |
This is my attempt at solving issue #80407. As per the description of the issue, the costly loop that inspects all indices of a cluster state is no longer being executed by default. A full inspection only happens when an exception occurs to the master, inspired by SnapshotService.