Skip to content

Let a copy survive recovery that unwinds no commit - #6476

Open
markhannum wants to merge 2 commits into
bloomberg:mainfrom
markhannum:copy-survive-recovery
Open

markhannum wants to merge 2 commits into
bloomberg:mainfrom
markhannum:copy-survive-recovery

Conversation

@markhannum

Copy link
Copy Markdown
Contributor

logdelete4 failed a copy whenever recovery or a node upgrade/downgrade waited on its locks, even when the recovery took the skip-recovery path and unwound no committed work.

Now the copy yields its locks to the exclusive operation, re-takes them afterwards, and copy_complete reports "aborted" only if a full recovery (__rep_dorecovery) ran since the copy took its locks; full recovery bumps a new destructive-recovery generation. Physical replicants may also take skip-recovery (a physrep master bumps rep->gen so its replicants re-verify), and rep_skip_recovery now defaults on.

Tests: abort_copy_on_recovery adds a copy that survives a master downgrade, and the new physrep_skip_recovery forces commit-anchored physrep rewinds mid-transaction and checks each takes skip-recovery, stays consistent, survives kill -9, and that a copy across rewinds restores.

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
RoboMark testing: pending.
Regression testing: 3/793 tests failed; harness exit 0 ⚠.

The first 10 failing tests are:
incoherent_slow **quarantined**
nowritetimeout
snapshot_during_truncate **quarantined**
disttxn [timeout]
prepare [timeout]

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
RoboMark testing: query_error.
Regression testing: 3/793 tests failed; harness exit 0 ⚠.

The first 10 failing tests are:
incoherent_slow **quarantined**
nowritetimeout
snapshot_during_truncate **quarantined**
disttxn [timeout]
prepare [timeout]

@markhannum
markhannum force-pushed the copy-survive-recovery branch from 97596d3 to e4daaa6 Compare November 16, 2026 15:57

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Error ⚠.
RoboMark testing: submission_error.
Regression testing: 1/793 tests failed ⚠.

The first 10 failing tests are:
reorder_inserts

logdelete4 yields its locks to recovery or an upgrade/downgrade and
re-takes them; it aborts a copy only if recovery ran meanwhile.
Physreps may take skip-recovery; unresolved prepared txns force recovery.
rep_skip_recovery defaults on.

Signed-off-by: Mark Hannum <mhannum@bloomberg.net>
Signed-off-by: Mark Hannum <mhannum@bloomberg.net>
@markhannum
markhannum force-pushed the copy-survive-recovery branch from e4daaa6 to b2d703e Compare November 25, 2026 13:11

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
RoboMark testing: failed.
Regression testing: Success ✓.

This branch has not been deployed

No deployments
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.

2 participants