Repository navigation
Fix LevelDB descriptor exhaustion and keep error logging recoverable - #1658
Merged
Merged
Conversation
Validate tables without retaining their descriptors, reopen one reader per iteration, and close active readers on exit or construction failure. Keep EMFILE/ENFILE from turning error logging into a fatal report failure. Add regression coverage for decoding, repeated passes, ordering, cleanup, ignored backup files, and actual descriptor exhaustion. Co-Authored-By: OpenAI Codex (GPT-6) <[email protected]>
This was referenced Oct 7, 2026
This was referenced Oct 7, 2026
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.
What this changes
Prevents large LevelDB stores from exhausting file descriptors by opening data files per iteration and closing readers on failure. Error logging falls back to the console for EMFILE/ENFILE. Record ordering, repeated passes, and decoding stay unchanged. Refs #1646.
Anything reviewers should know
Regression coverage includes a 64-descriptor limit and failed constructors. The current-main suite passed 1,076 tests (10 skipped), with no new lint warnings. Four real corpus runs preserved all 118,361 exported rows and matched SQLite, TSV, KML, and raw-record comparisons.
Tested on macOS. The reporter's exact Manjaro/F2FS image and native GUI self-check were not tested. An existing invalid table remains unreadable.