Preventing serialization errors in the nodes stats API#90319
Merged
masseyke merged 5 commits intoelastic:mainfrom Sep 27, 2022
Merged
Preventing serialization errors in the nodes stats API#90319masseyke merged 5 commits intoelastic:mainfrom
masseyke merged 5 commits intoelastic:mainfrom
Conversation
Collaborator
|
Pinging @elastic/es-data-management (Team:Data Management) |
Collaborator
|
Hi @masseyke, I've created a changelog YAML for you. |
Collaborator
|
Hi @masseyke, I've updated the changelog YAML for you. |
Member
Author
|
@elasticmachine run elasticsearch-ci/part-1 |
DaveCTurner
reviewed
Sep 24, 2022
Member
Author
|
@elasticmachine run elasticsearch-ci/bwc |
Member
Author
|
@elasticmachine update branch |
Contributor
|
Anything else you'd like to see here @DaveCTurner? It LGTM, but I don't want to front run your ✅ if there's something else you'd like to see. |
DaveCTurner
approved these changes
Sep 27, 2022
Member
DaveCTurner
left a comment
There was a problem hiding this comment.
No, nothing more from me, I was just passing through 😁
masseyke
added a commit
to masseyke/elasticsearch
that referenced
this pull request
Sep 27, 2022
Preventing serialization errors in the nodes stats API, and adding logging to the ingest counter code so that we can find the root cause of the problem in the future.
Collaborator
💔 Backport failed
You can use sqren/backport to manually backport by running |
masseyke
added a commit
to masseyke/elasticsearch
that referenced
this pull request
Sep 27, 2022
Preventing serialization errors in the nodes stats API, and adding logging to the ingest counter code so that we can find the root cause of the problem in the future.
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 27, 2022
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 28, 2022
Preventing serialization errors in the nodes stats API, and adding logging to the ingest counter code so that we can find the root cause of the problem in the future. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
masseyke
added a commit
to masseyke/elasticsearch
that referenced
this pull request
Sep 28, 2022
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 28, 2022
slobodanadamovic
added a commit
to slobodanadamovic/elasticsearch
that referenced
this pull request
Sep 29, 2022
lockewritesdocs
pushed a commit
that referenced
this pull request
Sep 29, 2022
* Update docs for v8.4.3 release * Update release highlights for 8.4.3 version. * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Make link external type * Update release notes to include #90319 PR after creating BC2. * Remove release note for #90302 * Minor grammar fix Co-authored-by: Adam Locke <adam.locke@elastic.co>
lockewritesdocs
pushed a commit
to lockewritesdocs/elasticsearch
that referenced
this pull request
Sep 29, 2022
* Update docs for v8.4.3 release * Update release highlights for 8.4.3 version. * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Make link external type * Update release notes to include elastic#90319 PR after creating BC2. * Remove release note for elastic#90302 * Minor grammar fix Co-authored-by: Adam Locke <adam.locke@elastic.co> (cherry picked from commit 25a196f) # Conflicts: # docs/reference/release-notes.asciidoc # docs/reference/release-notes/highlights.asciidoc
lockewritesdocs
pushed a commit
to lockewritesdocs/elasticsearch
that referenced
this pull request
Sep 29, 2022
* Update docs for v8.4.3 release * Update release highlights for 8.4.3 version. * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Make link external type * Update release notes to include elastic#90319 PR after creating BC2. * Remove release note for elastic#90302 * Minor grammar fix Co-authored-by: Adam Locke <adam.locke@elastic.co> (cherry picked from commit 25a196f) # Conflicts: # docs/reference/release-notes.asciidoc # docs/reference/release-notes/highlights.asciidoc
lockewritesdocs
pushed a commit
that referenced
this pull request
Sep 30, 2022
* Update docs for v8.4.3 release * Update release highlights for 8.4.3 version. * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Make link external type * Update release notes to include #90319 PR after creating BC2. * Remove release note for #90302 * Minor grammar fix Co-authored-by: Adam Locke <adam.locke@elastic.co> (cherry picked from commit 25a196f) # Conflicts: # docs/reference/release-notes.asciidoc # docs/reference/release-notes/highlights.asciidoc Co-authored-by: Slobodan Adamović <slobodanadamovic@users.noreply.github.com>
lockewritesdocs
pushed a commit
that referenced
this pull request
Sep 30, 2022
* Update docs for v8.4.3 release * Update release highlights for 8.4.3 version. * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/8.4.3.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: Adam Locke <adam.locke@elastic.co> * Make link external type * Update release notes to include #90319 PR after creating BC2. * Remove release note for #90302 * Minor grammar fix Co-authored-by: Adam Locke <adam.locke@elastic.co> (cherry picked from commit 25a196f) # Conflicts: # docs/reference/release-notes.asciidoc # docs/reference/release-notes/highlights.asciidoc Co-authored-by: Slobodan Adamović <slobodanadamovic@users.noreply.github.com>
justincr-elastic
pushed a commit
to justincr-elastic/elasticsearch
that referenced
this pull request
Oct 8, 2022
Preventing serialization errors in the nodes stats API, and adding logging to the ingest counter code so that we can find the root cause of the problem in the future.
This was referenced Nov 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a few occasions we have seen the nodes stats API fail with this (this stack is from 7.14.0, but we have also seen it on higher 7.x versions and 8.x):
The cause is that the
ingestCurrentcounter has gone below 0, andwriteVLongcannot handle negative numbers. TheingestCurrentcounter ought to never be below 0. I have not been able to reproduce this despite trying a lot of things. I believe that the only way that this could happen (before 7.17.2 anyway) is if a processor's listener is called more than once, since the counter is always incremented before the processor is run, and then decremented once in the processor's listener. Unfortunately I have not been able to find any place where a listener is called more than once, and there are hundreds of listener uses we would need to go through. Since I have not found the root cause, this PR is meant to detect and prevent the serialization problem, and to log the stack trace when it is found (so that we can potentially find the root cause(s)).Closes #77973
Related #84838