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

Introduces per stream chunks mutex #3000

Merged
merged 63 commits into from
Nov 27, 2020
Merged

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Nov 27, 2020

Followup to #2981

Introduces a chunks mutex for synchronization of access to stream chunks across appends, transfers, flushes, reads, and checkpointing.

Although there have been slight modifications due to PR feedback on 2981, this variant has been running for ~3 days without issue.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

May be a defer would be better, but you need another function for this, you can't defer in a for loop.

@owen-d
Copy link
Member Author

owen-d commented Nov 27, 2020

Yeah I was also thinking about a sync.Once for releasing 🤔

@owen-d owen-d merged commit 8c1fe88 into grafana:master Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants