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 chunks flushing bugs #2778
Fix chunks flushing bugs #2778
Conversation
I wonder if it would be possible to fix #2287 at the same time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job, LGTM. I just left a couple of questions.
I will take a look at it before merging. |
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
- if there are no unflushed chunks, shouldFlushSeries in immediate mode returns noFlush - flushUserSeries works with a copy of chunk descriptors slice (not copy of descriptors themselves, since slice has a pointers to them). This helps to prevent panic in issue 2743 - Don't remove entire series from memory on immediate flush. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
…tion test. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
I will merge this tomorrow, if there are no objections. |
What this PR does: There were few bugs in chunks flushing code that this PR tries to fix:
In addition to that, this PR also:
cortex_ingester_flush_series_in_progress
(needed to fix integration test)Which issue(s) this PR fixes:
Fixes #2743
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
(Notify @gouthamve @bboreham as chunk experts)