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

Perform a linear search in ES buffer #357

Merged
merged 1 commit into from
Dec 5, 2017
Merged

Conversation

blt
Copy link
Collaborator

@blt blt commented Dec 5, 2017

We don't keep the internal ES buffer in sorted order. The binary
search performed by UUID is inappropriate and will fail to find
the item to remove from buffer. This is... bad for everyone.

Signed-off-by: Brian L. Troutwine blt@postmates.com

We don't keep the internal ES buffer in sorted order. The binary
search performed by UUID is inappropriate and will fail to find
the item to remove from buffer. This is... bad for everyone.

Signed-off-by: Brian L. Troutwine <blt@postmates.com>
@blt blt merged commit 071328c into master Dec 5, 2017
@blt blt deleted the es_timeout_catastrophic_failure branch December 5, 2017 23:42
blt pushed a commit that referenced this pull request Dec 6, 2017
This release adjusts the Elasticsearch sink to better handle timeouts
and clear its internal buffer. Also, we now keep a long-lived sum/count
for Prometheus sink Summaries, even despite the windowing.

  * 859ca8a :: Avoid catastrophic failure when an ES request times out (#356)
  * 071328c :: Perform a linear search in ES buffer (#357)
  * 86f753c :: Introduce Telemetry override for 'count' and 'sample_sum' (#354)

Signed-off-by: Brian L. Troutwine <blt@postmates.com>
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.

1 participant