8000 fix(storage): add checksum verification to v5 migration by adityamukho · Pull Request #60 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

fix(storage): add checksum verification to v5 migration - #60

Merged
adityamukho merged 1 commit into
mainfrom
fix/issue-47-v5-checksum
Apr 3, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/issue-47-v5-checksum

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Summary

  • Verify index checksum before trusting old v5 indexes during migration to v6
  • If checksum is missing or invalid, rebuild indexes from fact data instead
  • Recompute checksum for new indexes after migration to ensure integrity

Fixes #47 - v5 migration had no checksum verification, allowing corrupt index data to be copied into new B+trees.

- Verify index checksum before trusting old v5 indexes during migration
- If checksum is missing or invalid, rebuild indexes from fact data
- Recompute checksum for new indexes after migration to ensure integrity
- Fixes potential data corruption from corrupt index data during migration

Closes #47
@adityamukho
adityamukho merged commit bd6234e into main Apr 3, 2026
10 checks passed
@adityamukho
adityamukho deleted the fix/issue-47-v5-checksum branch April 3, 2026 02:35
@codecov
codecov Bot commented Apr 3, 2026
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.07692% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.19%. Comparing base (0c93347) to head (01b31bc).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/storage/persistent_facts.rs 23.07% 40 Missing ⚠️

❌ Your patch status has failed because the patch coverage (23.07%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   86.19%   85.19%   -1.00%     
==========================================
  Files          25       25              
  Lines        4260     4310      +50     
==========================================
  Hits         3672     3672              
- Misses        588      638      +50     
Files with missing lines Coverage Δ
src/storage/persistent_facts.rs 77.88% <23.07%> (-8.29%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v5 migration has no checksum verification

1 participant

0