Repository navigation
Remove -force from retry-failed - #22
Merged
Merged
Conversation
retry-failed -all -force selected every row in the job and moved it to READY with no state check. That included IMPORTED, SUPERSEDED, COMPACTING and generated compact rows, and it left superseded_by and compact_ready_at on the row, so a job that had reached compaction or import could end up with the same data rewritten and attached twice. Both legitimate uses are already covered by guarded commands: set-part-state re-runs a single part, and reset-job re-runs a whole job after validating compaction lineage and refusing once import has started. retry-failed now only touches FAILED parts, plus IN_PROGRESS parts with -include-in-progress or -stale. The "forced" field is gone from its text and JSON output. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Problem
retry-failed -all -forceselected every row in the job and moved it toREADYwith no state check.IMPORTED,SUPERSEDED,COMPACTINGand generated compact rows.superseded_byandcompact_ready_aton the row.READYinstead ofFINISHED.On a job that had reached compaction or import, this could rewrite and attach the same data twice.
Change
-forceflag fromretry-failed.Store.ForceRetryPart.forcedfield from the text and JSON output ofretry-failed.docs/operations.md.retry-failednow only touchesFAILEDparts, plusIN_PROGRESSparts with-include-in-progressor-stale.Replacements
set-part-state -part-id=X -to-status=READY -forcereset-jobBreaking
-forcetoretry-failednow fail with an unknown flag error.retry-failed -jsonno longer get theforcedkey.Verification
go mod tidy: no changesgo test ./...: pass./e2e/run.sh: pass🤖 Generated with Claude Code