Skip to content

fix(cleanup): Do not close cache before compaction#1464

Merged
jarifibrahim merged 2 commits intomasterfrom
ibrahim/cache-close
Aug 19, 2020
Merged

fix(cleanup): Do not close cache before compaction#1464
jarifibrahim merged 2 commits intomasterfrom
ibrahim/cache-close

Conversation

@jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Aug 18, 2020

This PR fixes a panic that could happen in case vlog.Open returns an error.
The db.Cleanup would close the cache before compaction would finish and as a result of that we will end up with send of closed channel panic.


This change is Reviewable

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami)

@jarifibrahim jarifibrahim merged commit edbc380 into master Aug 19, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/cache-close branch August 19, 2020 11:37
jarifibrahim pushed a commit that referenced this pull request Aug 27, 2020
This PR fixes a panic that could happen in case `vlog.Open` returns an error.
The `db.Cleanup` would close the cache before compaction would finish and
as a result of that we will end up with `send of closed channel panic` in ristretto.

(cherry picked from commit edbc380)
jarifibrahim pushed a commit that referenced this pull request Aug 27, 2020
This PR fixes a panic that could happen in case `vlog.Open` returns an error.
The `db.Cleanup` would close the cache before compaction would finish and
as a result of that we will end up with `send of closed channel panic` in ristretto.

(cherry picked from commit edbc380)
jarifibrahim pushed a commit that referenced this pull request Oct 2, 2020
This PR fixes a panic that could happen in case `vlog.Open` returns an error.
The `db.Cleanup` would close the cache before compaction would finish and
as a result of that we will end up with `send of closed channel panic` in ristretto.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants