Repository navigation
Make interrupted tar builds resumable - #43
Open
wshlavacek wants to merge 34 commits into
Open
wshlavacek wants to merge 34 commits into
wshlavacek wants to merge 34 commits into
Conversation
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
… starts Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…ter scripts Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…vector Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…nting Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…hard handoff Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…ous revisions Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…ckpoints Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…er resume Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
… paths Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…a batch Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…t copies Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…node recovery Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…tions Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…ation Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…s and rebuilds Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…and vectors together Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…t passages Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…ision Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…m main Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
…dent shards Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
… converge Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Keep this branch's batch publication in ingest_loop.py and port what #44 added on top of per-member commits: - Writers turn off cache_spill while a batch is open, so readers are not locked out while the batch is embedded. - When SQLite has rolled back the whole batch (disk full, I/O error), the member's error handler re-raises instead of skipping the member. #44's tests now check this branch's publication: a writer killed after its commit, before or after the index files move into place, finishes that batch on restart; other connections see papers only after their batch commits. The two #13 CHANGELOG entries are now one. Also sort the local imports ruff flags and run black on the test files that were clean on main.
make_id_selector() now builds an IDSelectorBatch (#14) and still keeps the IDs as _litkit_ids. The IVF removal path reads them back; given only the selector it would call is_member() from Python for every stored ID, about 0.11 s per dedup at 1M vectors even when nothing is removed. A test now fails if the IDs are missing.
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.
PR #41 fixed pending-file discovery (#4), tar-boundary checkpoints (#3), and the ten-shard merge limit (#1). This PR closes the remaining restart gap documented in #41. A normal incremental rerun now recovers both paper and passage vectors after a mid-tar failure.
What changed
*_pending.npzsegments #4).Verification
Recovery notes
.unverifiedsuffix and applies the verifiable rows.Closes #13
Closes #6