-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Can't auto resume after no space error #8217
Comments
Do you use 2PC ( |
options.allow_2pc is default false if EventListener::OnBackgroundError has any other no space error ( kMemtable , kCompact, kFlush) , the db is able to auto resume. When can't auto resume scenario happens, EventListener::OnBackgroundError has only no space error (kWriteCallback) |
when the bug is triggered,the following loop is runnning in db_impl_write.cc
|
I can't think of why no space error with reason |
when step through the code using gdb, the only clue is in my last comment above, the code can't run into new setbgerror(io_status), the old setbgerror(status) will only trigger auto resume at first time when error level is the same (in the test run, when the first time kHardError is triggered, the disk is full, so auto resume failed , the second time kHardError is triggered, setbgerror directly return error without trying to auto resume) |
This issue might be fixed in #8376. Please try with it and reopen this if not resolved. |
Can't auto resume after no space error when the no space error is only trigger by db_->Write without any other background action (compact/flush)
Expected behavior
Auto resume after the disk has space
Actual behavior
Can't Auto resume
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: