Repository navigation
Report move-tables cleanup failures - #1806
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The integration test can block until timeout if MoveTables() returns before onBeforeCutOver runs, masking the underlying migration error.
1 open issue
What changed in this PR
This PR makes move-tables migrations report cleanup failures instead of success, while preserving existing resumed-cutover behavior.
Changes:
- Return contextual cleanup errors for fresh real and noop migrations.
- Add integration coverage for fresh, resumed, and noop cleanup failures, plus CLI failure-hook dispatch.
- Document that failure hooks may run before startup or after target writes have been enabled.
| File | Description |
|---|---|
go/logic/migrator.go |
Propagates fresh move-tables cleanup errors with mode-specific context. |
go/logic/migrator_move_tables_cleanup_integration_test.go |
Tests cleanup error propagation, warnings, and CLI failure hooks. |
doc/hooks.md |
Clarifies failure-hook timing and cautions against blind rollback. |
Review effort: Max (auto)
ericyan
force-pushed
the
move-tables-cleanup-errors
branch
from
November 10, 2026 10:17
910a112 to
c0f0d2b
Compare
Return cleanup failures for fresh moves and noop runs instead of reporting success. Preserve the existing failure-hook contract and distinguish incomplete cleanup from a completed cutover. Cover cleanup failures after fresh and resumed cutovers, noop cleanup, and CLI failure-hook dispatch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ericyan
force-pushed
the
move-tables-cleanup-errors
branch
from
November 10, 2026 10:29
c0f0d2b to
7d5d90a
Compare
danieljoos
previously approved these changes
Nov 12, 2026
ericyan
dismissed
danieljoos’s stale review
November 12, 2026 13:14
The merge-base changed after approval.
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.

Summary
Validation
go test -race -v ./go/logic -run '^TestMoveTablesCleanupErrors$' -count=1go test -short -v ./go/logic -run '^TestMoveTablesCleanupErrors$' -count=1(skipped as intended)golangci-lint run ./go/logic/...Stacked on #1755. The separate completed-transaction frontier issue #1781 remains unresolved.