fix crash loop on missing manifest tables#2198
Merged
mangalaman93 merged 2 commits intodgraph-io:mainfrom May 14, 2025
knights-analytics:manifest-fix
Merged
fix crash loop on missing manifest tables#2198mangalaman93 merged 2 commits intodgraph-io:mainfrom knights-analytics:manifest-fix
mangalaman93 merged 2 commits intodgraph-io:mainfrom
knights-analytics:manifest-fix
Conversation
Contributor
Author
|
@mangalaman93 the test error seems related to the use of t.Cleanup, can you advise? |
Contributor
it seems that defer cleaned up the directory and db.Close is not happy about it. I think we should use either |
Contributor
Author
|
I went back to defer for now to have control over their order, lets see if the tests now pass |
Contributor
Author
|
and again, with the remove explicitly in the same defer as close db (since they are coupled anyway) |
mangalaman93
approved these changes
May 14, 2025
Contributor
|
Thank you for the PR @RJKeevil |
Contributor
Author
|
Thanks for the help @mangalaman93 ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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