-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix crash loop on missing manifest tables #2198
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
fix crash loop on missing manifest tables #2198
Conversation
@mangalaman93 the test error seems related to the use of t.Cleanup, can you advise? |
it seems that defer cleaned up the directory and db.Close is not happy about it. I think we should use either |
I went back to defer for now to have control over their order, lets see if the tests now pass |
and again, with the remove explicitly in the same defer as close db (since they are coupled anyway) |
Thank you for the PR @RJKeevil |
Thanks for the help @mangalaman93 ! |
Please see https://discuss.hypermode.com/t/manifest-removes-non-existing-table/19882
W are experiencing an error where dgraph tries to remove a table that is missing. I assume that given it has already been removed, it should not trigger a crash loop in compaction. Instead i sense check that the table is indeed removed from all levels, and return without an error code. Please advise if you think this is safe or not.
Checklist