-
Notifications
You must be signed in to change notification settings - Fork 808
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
Fail ingestion when a flush is going on #3422
Conversation
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
5a9f1b0
to
68126ab
Compare
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.
Thanks @codesome about this! We had an offline discussion about a race condition. Ganesh mentioned he will work on this tomorrow. Thanks!
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
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.
LGTM, but with a little fix, thanks!
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
@pstibrany Me and @codesome are discussion a potentially better way to handle this. Please don't merge it you approve it. |
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.
LGTM, thanks Ganesh!
@pstibrany Ignore this. After further discussion, Ganesh has no bandwidth to experiment alternative solutions (eg. disable blocks compaction at all in TSDB and enable overlapping blocks in TSB, making sure query performances don't degrade significantly on overlapping blocks), so I think we can get this PR in and then we may reconsider this approach if/when Ganesh will have bandwidth. So we can merge if you approve, but let's wait for Ganesh adding the test suggested by Richard first. |
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
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.
Very good job. LGTM, modulo a couple of nits. Thanks!
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
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.
Thanks. I think there may be race errors in the test, but otherwise LGTM.
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
What this PR does:
Fails a push request with a 5xx when there is an ongoing flush. This is according to the idea proposed in this comment #3282 (comment)
Which issue(s) this PR fixes:
Fixes #3282 #3348
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]