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

Add backoff to avoid infinite compact_mem_table fails #79

Open
Fullstop000 opened this issue Sep 7, 2020 · 0 comments
Open

Add backoff to avoid infinite compact_mem_table fails #79

Fullstop000 opened this issue Sep 7, 2020 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Fullstop000
Copy link
Owner

If compact_mem_table fails, the immutable memtable will be still there. And we re-schedule compaction after a compaction which means compact_mem_table will be called infinitely. To fix this, we can introduce a backoff to prevent the infinite compaction loop.
If compaction fails hits the backoff limit, prevent all writing requests to the wickdb could be a good choice.

@Fullstop000 Fullstop000 added help wanted Extra attention is needed bug Something isn't working labels Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant