Skip to content

Conversation

@macneale4
Copy link
Contributor

@macneale4 macneale4 commented Dec 10, 2025

While attempting to test fsck I found the need to delete targeted roots from a journal file. This should help.

$ dolt admin journal-inspect -r /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
INFO[0000] Read 4675 bytes with sha256 sum: d5e60c8a35a816d246b8b851a9b98576da4baeff2cad6f1f442eb8746b629834
INFO[0000] --------------- Beginning Journal Scan ----------------
INFO[0000] Resumed healthy reads at offset 0
INFO[0000] First Chunk Record Found vt5n73lho7q40t91ucetlr9qv4eqhasl (144 bytes)
INFO[0000] Root Record Found bm0k1ib86h9h7b0a06ca8g0tqtpo6ndd (40 bytes)
INFO[0000] Root Record Found m22928n6vhl0gk33r5qodeer53bqf6g5 (40 bytes)
INFO[0000] Root Record Found hvbqu04utg6u7c7rap6eeq7joauvkdus (40 bytes)
INFO[0000] Root Record Found hvbqu04utg6u7c7rap6eeq7joauvkdus (40 bytes)
INFO[0000] Root Record Found tus528mpp7c56ilqmcp39ltlsacn5i4s (40 bytes)
INFO[0000] Root Record Found 6l8vihq0qffut8bme2a4ffod80c3fak5 (40 bytes)
INFO[0000] Successfully read 29 records (4675 bytes)
INFO[0000] ----- Journal Inspection Report -----
INFO[0000] Healthy End State           : true
INFO[0000] 0 len records               : 0
INFO[0000] 5mb or larger records       : 0
INFO[0000] Failed Attempts to validate : 0
INFO[0000] Read Error Count            : 0
INFO[0000] Successfully read records   : 29
INFO[0000] Successfully read chunks    : 24
INFO[0000] Successfully read roots     : 7
INFO[0000] Maximum Consecutive Records : 29
$ dolt admin journal-inspect --filter-roots=tus528mpp7c56ilqmcp39ltlsacn5i4s /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
INFO[0000] Filtering out root record with hash: tus528mpp7c56ilqmcp39ltlsacn5i4s
INFO[0000]
INFO[0000] Filtered file: /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv.filtered
INFO[0000]
INFO[0000] To replace the original journal file, run these commands:
INFO[0000] cp /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv_saved_2025_12_10_222752
INFO[0000] mv /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv.filtered /workspace/d/.dolt/noms/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
INFO[0000] rm /workspace/d/.dolt/noms/journal.idx

@macneale4 macneale4 changed the title journal filter [no-release-notes] journal filter Dec 10, 2025
@coffeegoddd
Copy link
Contributor

@macneale4 DOLT

comparing_percentages
100.000000 to 100.000000
version result total
e986d1d ok 5937471
version total_tests
e986d1d 5937471
correctness_percentage
100.0

@macneale4 macneale4 force-pushed the macneale4-claude/journal-find branch from e986d1d to 80804f5 Compare December 11, 2025 01:03
@coffeegoddd
Copy link
Contributor

@macneale4 DOLT

comparing_percentages
100.000000 to 100.000000
version result total
80804f5 ok 5937471
version total_tests
80804f5 5937471
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
7e566b5 ok 5937471
version total_tests
7e566b5 5937471
correctness_percentage
100.0

@macneale4 macneale4 requested a review from reltuk December 12, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants