Skip to content

fix events_count to return total - #10564

Closed
yaauie wants to merge 1 commit into
elastic:masterfrom
yaauie:total-queued-events
Closed

yaauie wants to merge 1 commit into
elastic:masterfrom
yaauie:total-queued-events

Conversation

@yaauie

@yaauie yaauie commented Mar 15, 2019 •

Copy link
Copy Markdown
Member

A bug in the StatsEventFactory prevents it from reporting the total queued items across multiple pipelines.

When iterating over the list of stats, we need to sum up matching items instead of setting the total to the last one seen.

All of the testing infrastructure for this code relies on injecting a single pipeline directly into the logstash.yml, so I don't have an adequate way to improve coverage without significant effort.

@danhermann danhermann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@elasticsearch-bot

Copy link
Copy Markdown

Ry Biesemeyer merged this into the following branches!

Branch Commits
master 67b8d43
7.x 9eb2949
7.0 3eef329
6.7 9b8077e

elasticsearch-bot pushed a commit that referenced this pull request Mar 16, 2019
elasticsearch-bot pushed a commit that referenced this pull request Mar 16, 2019
elasticsearch-bot pushed a commit that referenced this pull request Mar 16, 2019
@yaauie
yaauie deleted the total-queued-events branch March 22, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants