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

Fix cache not deduplicating points in some cases #5751

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Fix cache not deduplicating points in some cases #5751

merged 1 commit into from
Feb 22, 2016

Conversation

jwilder
Copy link
Contributor

@jwilder jwilder commented Feb 19, 2016

The cache had some incorrect logic for determine when a series needed
to be deduplicated. The logic was checking for unsorted points and
not considering duplicate points. This would manifest itself as many
duplicate points being returned from the cache and after a
snapshot compaction ran, the points would disappear because snapshot
compaction always deduplicates and sorts the points.

Added a test that reproduces the issue.

Fixes #5719

@e-dard
Copy link
Contributor

e-dard commented Feb 22, 2016

Needs a rebase but LGTM 👍

The cache had some incorrect logic for determine when a series needed
to be deduplicated.  The logic was checking for unsorted points and
not considering duplicate points.  This would manifest itself as many
points (duplicate) points being returned from the cache and after a
snapshot compaction run, the points would disappear because snapshot
compaction always deduplicates and sorts the points.

Added a test that reproduces the issue.

Fixes #5719
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.

2 participants