Repository navigation
Let a copy survive recovery that unwinds no commit - #6476
markhannum wants to merge 2 commits into
Conversation
roborivers
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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]
97596d3 to
e4daaa6
Compare
roborivers
left a comment
There was a problem hiding this comment.
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>
e4daaa6 to
b2d703e
Compare
roborivers
left a comment
There was a problem hiding this comment.
Cbuild submission: Success ✓.
RoboMark testing: failed.
Regression testing: Success ✓.
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_completereports "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 bumpsrep->genso its replicants re-verify), andrep_skip_recoverynow defaults on.Tests:
abort_copy_on_recoveryadds a copy that survives a master downgrade, and the newphysrep_skip_recoveryforces commit-anchored physrep rewinds mid-transaction and checks each takes skip-recovery, stays consistent, surviveskill -9, and that a copy across rewinds restores.