Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Add filtering on ref of samples and tombstones in checkpoint.go #568

Closed
wants to merge 2 commits into from

Conversation

naivewong
Copy link
Contributor

https://github.com/prometheus/tsdb/blob/db9177de0cc7fec169bda0ede005ffd6d6fd1d80/checkpoint.go#L102
As title, I think keep function should also be applied on samples and tombstones.

@krasi-georgiev
Copy link
Contributor

this will decrease performance, but it is the correct behaviour.

LGTM

ping @gouthamve , @codesome , @bwplotka

@krasi-georgiev
Copy link
Contributor

btw @naivewong don't forget that tomorrow (the 9th) is the last day for the GSOC proposal submissions. Feel free to ping me on IRC with yours so I can give some feedback before submitting.

@brian-brazil
Copy link
Contributor

This will lead to data being silently missing for the wal watcher, this change should not be accepted.

@krasi-georgiev
Copy link
Contributor

krasi-georgiev commented Apr 9, 2019

after some IRC discussions the correct behaviour is to keep all series references until the last segment has samples referencing these.

closing this PR in favour of the correct fix in #577

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants