Skip to content
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

Add an assert to detect double decrementing of ingest metrics #81450

Merged
merged 5 commits into from
Dec 7, 2021

Conversation

joegallo
Copy link
Contributor

@joegallo joegallo commented Dec 7, 2021

Related to #77973

This doesn't change the underlying cause of #77973 (something is double decrementing, or so the theory goes), nor does it paper over that bug at the serialization layer. However, if we ever have a test that triggers double decrementing, it will now fail loudly rather than requiring a subsequent cluster stats call in order to call attention to the issue.

It's not ideal, but it's not nothing, either.

@joegallo joegallo added WIP :Data Management/Stats Statistics tracking and retrieval APIs v8.0.0 Team:Data Management Meta label for data/management team v7.16.1 v8.1.0 labels Dec 7, 2021
If we trigger this during a test, we'll fail loudly at test time
(rather than requiring a subsequent cluster stats call to see that
there's an issue).
@joegallo joegallo marked this pull request as ready for review December 7, 2021 18:44
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@joegallo joegallo changed the title Ingest metric double decrement Add an assert to detect double decrementing of ingest metrics Dec 7, 2021
@joegallo joegallo added >non-issue and removed WIP labels Dec 7, 2021
@joegallo

This comment has been minimized.

Copy link
Contributor

@danhermann danhermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Stats Statistics tracking and retrieval APIs >non-issue Team:Data Management Meta label for data/management team v7.16.1 v8.0.0-rc2 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants