-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Elasticsearch index behavior in case of missing settings #42426
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
@consulthys I'm unsure how to approach the missing setting case: theoretically a race condition can cause tis any time, and with enough iterations it is bound to happen on every cluster. Indeed, a measure from MB is 3 API calls:
If something changes between these calls, it can be impossible for Metricbeat to reconciliate the data structures. Now the positive thing is that the errors are neither unrecoverable nor blocking, I would expect Metricbeat to continue shipping while reporting errors. We could silently ignore these issues, keep the current behavior, or refine when/how we want to raise these problems. What do you think? |
@3kt Good question! I think the main purpose of this metric set is to report |
@consulthys I agree, but how would this differ from the current behavior? AFAICT the |
I would not add the error to |
what is the best way to fix this at the moment I am getting 4 errors in regards to "key not found" for the elasticsearch integration module? Thank you. |
Is this on master nodes only or the kibana node? |
is there a way to fix the issue with "key not found" within elastic without messing with the code it is causing my stack to pop up as degrading because the indexes in question are throwing back that error. |
i do not know where these files are located |
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.
LGT Stack Monitoring
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.
Lots of reformatting of Python code that does not relate to the fix but all in all looks good to me.
Yea, for some reason the |
This pull request is now in conflicts. Could you fix it? 🙏
|
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.
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.
packetbeat changes LGTM
* Unskip test * Bold move: assumes we can drop test coverage for unsupported versions * Added test case: index with no cluster state entry or settings * Added comment about "race situation" * Logged index settings error as debug, fixed test case * Handling for multi version tests * Added changelog entry --------- Co-authored-by: Valentin Crettaz <[email protected]> Co-authored-by: Valentin Crettaz <[email protected]> (cherry picked from commit 074a201)
* Unskip test * Bold move: assumes we can drop test coverage for unsupported versions * Added test case: index with no cluster state entry or settings * Added comment about "race situation" * Logged index settings error as debug, fixed test case * Handling for multi version tests * Added changelog entry --------- Co-authored-by: Valentin Crettaz <[email protected]> Co-authored-by: Valentin Crettaz <[email protected]> (cherry picked from commit 074a201)
…#42474) * Unskip test * Bold move: assumes we can drop test coverage for unsupported versions * Added test case: index with no cluster state entry or settings * Added comment about "race situation" * Logged index settings error as debug, fixed test case * Handling for multi version tests * Added changelog entry --------- Co-authored-by: Valentin Crettaz <[email protected]> Co-authored-by: Valentin Crettaz <[email protected]> (cherry picked from commit 074a201) Co-authored-by: Alexis Charveriat <[email protected]>
…#42475) * Unskip test * Bold move: assumes we can drop test coverage for unsupported versions * Added test case: index with no cluster state entry or settings * Added comment about "race situation" * Logged index settings error as debug, fixed test case * Handling for multi version tests * Added changelog entry --------- Co-authored-by: Valentin Crettaz <[email protected]> Co-authored-by: Valentin Crettaz <[email protected]> (cherry picked from commit 074a201) Co-authored-by: Alexis Charveriat <[email protected]>
Proposed commit message
Fixes #42424
In more details:
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
Check in Elasticsearch source code what settings can be missing, and when this happens (Irrelevant, we decided to tolerate index setting failurecreation_date
andtier_preference
)How to test this PR locally
Related issues