Skip to content

[GC] GC29a: oracle published check by default, rollback from N>1, docs and refusal text, N=8 spread, txn test cleanup - #31

Closed
JustinGaoF wants to merge 1 commit into
pwal/gc28-joinfrom
pwal/gc29a-claude
Closed

JustinGaoF wants to merge 1 commit into
pwal/gc28-joinfrom
pwal/gc29a-claude

Conversation

@JustinGaoF

Copy link
Copy Markdown
Owner

[GC] GC29a: the oracle checks published-but-lost by default, the rollback works from N>1, docs and refusal text match the code, N=8 consumer legs spread, transaction tests clean up

Does the oracle check published-but-lost by default and prove it can fail, does the rollback procedure work as written from N>1, do the tool help, the stripping refusal and the recovery comments match the code, do the N=8 consumer legs drive more than one partition, and do the partitioned transaction tests clean up on every exit?

Base: pwal/gc28-join @ 266205c (41 commits on d6a7847, tree 32485b54e49a). One commit. Production edits: comments, help text, option docs, release notes, and one NotSupported message (Q3 (b)); no behaviour change at N=1 or N>1. No file or test reserved for GC30 is touched apart from the two owner-set exceptions (T7, Q6).

Q1: the published-but-lost check is on by default and proven able to fail (FU2; gap-close2 M1, L2; E-audit M-1; D-GC29a (i))

  • Property: after a process crash, no sequence a reader could observe through GetLatestSequenceNumber() is missing. kCheckPublished is now true (db/db_wal_oracle_test.cc). ROCKSDB_WAL_ORACLE_CHECK_PUBLISHED stays as an override (=0 turns it off for a diagnosis). The header, the run summary and the comment above kCheckPublished now state the property and why it holds: publication never passes the WAL-written prefix (the debug assertion in DBImpl::PublishAppliedFrontier, which GC28 renamed from PublishAppliedFrontierLocked), and a process crash drops nothing written. The GC07, G-10 and N-2-1 references are gone.
  • New self-test DBWalOracleTest.CatchesPublishedButLost (D-GC29a (i), test only). It runs 4 process-crash cycles that crash at quiescence (trigger ack, crash_at = max). Once the writers finish, one disableWAL=true Put goes to a covered column family. It is published and reaches no WAL, so the crash loses it. The test asserts exactly one violation, starting with published sequence and containing is above the recovered prefix, so a hole or an "acknowledged ... lost" line also fails it. It then asserts that the same 4 cycles without the injection pass.
  • error_handler.cc: the parked-gate comment now says what the code does. Every background error wakes parked gates to recheck; a gate fails only on a fence covering its range or at shutdown, otherwise it parks again. It also names the lock the wake takes at this base: wal_durability_wait_mutex_, not sequence_wal_index_mutex_.
  • Evidence: RecoveredStateIsPrefixOfHistory passes at the default 40 cycles with the check on (37/40 crashed mid-run). See the test plan for the long runs.
  • Neuter: kCheckPublished = false with the variable unset. CatchesPublishedButLost fails at :923: the first cycle reports 0 violations, where 1 is expected.

Q2: the documented rollback works from N>1, with archive, crash midway and outstanding prepare (FU4; gap-close2 M4 / C-M-1; D-GC29d (i))

  • R1, docs: In the PartitionWALUsage comment (include/rocksdb/options.h) and unreleased_history/new_features/partition_wal_usage.md:
    • Step 1 now sets wal_partitions = 1 in the same reopen as kNone (Open() refuses kNone with N>1).
    • Step 3 now says to commit or roll back every prepared transaction first: a WAL holding an unresolved prepare keeps every WAL written before step 1 live. If any prepare was outstanding, step 3 says to flush again, after at least one write if no memtable holds data. A rollback leaves the memtables empty, and a flush with nothing to write records no MANIFEST progress, so the WALs stay pinned. The new test found this; it is upstream 2PC behaviour and also happens at N=1.
    • A new closing paragraph says not to set the option back to non-kNone until step 7 holds. If a prepare still keeps a pre-step-1 WAL live, the open after re-enabling fails in every recovery mode (GC26TrueAlternationFailsClosed).
    • The wal_partitions option doc and wal_partitions.md now point to the procedure. The option-doc pointer is on its own lines.
  • R2-R4: new parameterized fixture DBWALIndexRollbackTest (N in {1,4}) in a new block in db/db_wal_test.cc, directly after RollbackProcedureLeavesNoIndexedWAL, which is unchanged. RollbackProcedureLeavesNoIndexedWALAtAnyPartitionCount runs four legs: archive (WAL_ttl_seconds=1000) on/off x crash on/off.
    • Setup: writes synced to column families covering every partition, leaving an unflushed indexed tail on each. At N=4 it asserts all 4 partitions appended.
    • Neuter leg (N>1): step 1 without wal_partitions = 1 returns NotSupported containing "wal_partitions > 1 requires partition_wal_usage other than kNone", and the WAL set is unchanged.
    • The documented steps then run one by one. The guard is still set after step 1 at N=1. At N=4 it is already clear: a kNone open of a partitioned set flushes it at open, which is step 5's "may already be step 1's".
    • Crash leg: a FaultInjectionTestEnv instance drops unsynced data after step 1's reopen, before the guard clears. The DB reopens with kNone at N=1 with every key, and the procedure resumes from step 1.
    • After steps 2 and 3, every pre-step-1 WAL is deleted or archived. In the archive legs, check_wal_index names each archived indexed WAL until step 4 purges archive/.
    • Steps 5-7: check_wal_index exits 0 and prints "No WAL index records and no WAL index guard"; the MANIFEST guard is clear; a kNone N=1 open accepts the DB with every key.
  • R5: sibling test RollbackProcedureWaitsForPreparedTransaction (N in {1,4}; commit and rollback variants), a WriteCommitted TransactionDB with a prepare outstanding at step 1.
    • After the flush and a forced full obsolete-file scan, the lowest indexed WAL is still live, check_wal_index exits non-zero naming it, and the guard is set.
    • After the prepare commits (or rolls back), one write and a flush, every pre-step-1 WAL is gone, check_wal_index exits 0 and the guard is clear.
    • On reopen the transaction is gone and its key is "v" (commit) or NotFound (rollback).
    • It cites GC26TrueAlternationFailsClosed and does not duplicate it.
  • Neuters, each run:
    • (a) drop none.wal_partitions = 1: at N=4 the step 1 reopen fails with the NotSupported above (the main leg aborts at db_test_util.cc:647).
    • (b) skip step 5's reopen: at N=1 the check reports "WAL index guard: set, WALs up to [GC] GC19: Point-in-time prefix and openability fixes for N>1 recovery #10" and exits non-zero in all 4 legs. At N=4 it passes, because the guard already cleared at step 1 (above).
    • (c) skip the archive purge: the check exits non-zero and names every archived indexed WAL, in both archive legs at both N.
    • (d) skip the commit/rollback in R5: the indexed WALs stay live, the check exits non-zero and the guard stays set.
  • make check-sources and make check-format are clean.

Q3: tool help, stripping refusal and recovery comments match the code (FU10: L6, G3-C-4, G3-B-5; L5 check; D-GC29c (i))

  • (a) --partition_wal_usage help in db_bench and db_stress: "WAL record format. 'none' for the vanilla WAL format; 'partition_by_column_family' turns on WAL indexing, tagging each WAL record with an ordering number. --wal_partitions sets how many WAL files writes spread across." Text only; both --help outputs are in the test plan.
  • (b) New branch in ColumnFamilyData::ValidateOptions, ahead of the upstream user-defined-timestamp checks. When wal_partitions > 1, allow_concurrent_memtable_write, a timestamp comparator and persist_user_defined_timestamps = false are all set, it returns NotSupported("wal_partitions > 1 is not supported with persist_user_defined_timestamps = false").
    • Same status code, same trigger: upstream refused exactly this combination with "...not supported in combination with concurrent memtable write". The branch also requires concurrent writes, so the trigger is identical and the allow_concurrent_memtable_write = false leg keeps its Open-time message. See Assumptions.
    • N=1 is unchanged (the branch requires wal_partitions > 1).
    • The wal_partitions per-column-family refusal list gains the combination, on its own line.
    • The fragments in GC26ColumnFamilyRefusalsHoldAfterOpen (CreateColumnFamily) and the concurrent leg of StrippingFlushNeverMeetsAMask (DB::Open) now expect the new message.
    • Neuter: remove the branch. Both tests fail on the upstream message.
  • (c) The four recovery-mode texts (WALRecoveryMode, the wal_partitions doc, the partition_wal_usage field doc, partition_wal_recovery_modes.md) agree with the gap mapping in ProcessLogFilesMerged at this base, including GC27's supersession of voids above a cut:
    • tolerate and absolute fail on a tail gap with records above it;
    • point-in-time stops at the first hole and cuts;
    • skip skips the hole.
    • No mismatch found. The notes-only id R3.2 in the tolerate/absolute refusal comment (db_impl_open.cc) is replaced by the documented behaviour: WALRecoveryMode and the partitioned-WAL recovery modes release note.
  • (d) WriteWALIndexSupersessions comment: the declaration itself needs no flush. Recovery flushes anyway, whatever avoid_flush_during_recovery says, in two cases:
    • when the merge skipped an unexplained discard (GC23);
    • when a kNone opener merges an indexed set (GC26).
    • The second was narrowed to a merged set (one written with more than one partition, or declaring supersessions): a one-partition indexed set replays sequentially and is not flushed. Q2's N=1 legs show this; their guard is still set after step 1.
  • (e) StrippingFlushNeverMeetsAMask comment: it no longer argues from read masks (removed by GC25). It says what the test pins: the refusal, with the message per leg. The name is kept.
  • (f) Nothing else stale found in the listed passages.
  • (a), (c)-(f) are argued, not tested.

Q4: Review-M3 T1, T2, T6, T7 (G3-A-4, G3-E-2; D-GC29b (i)); tests only

  • T1, fixed. Still true at the base: N=8 legs of default-column-family suites append to one partition.
    • New helper WalPartitionsAppendedTo(DB*) in db/db_test_util.{h,cc}, beside ColumnFamilyIdsCoveringWalPartitions. It counts partitions whose durability tracker completed an append since open (TEST_WalDurabilityDurableUpto(p) > 0), and is 0 at N=1.
    • The existing every-partition tests now assert all N partitions appended: BackupIncludesEveryPartitionCurrentWal, CheckpointIncludesEveryPartitionCurrentWal, and IngestionConcurrentWritesAtWalPartitions (external_sst_file_test already had a multi-partition case).
    • New: ExternalSSTFileBasicTestN.IngestBesideWritesOnEveryPartition (writes on every partition, ingest into each family, reopen) and OptimisticTransactionTest.CommitsOnEveryWalPartition (commits on every partition, a cross-partition conflict still Busy, reopen). Both assert >= 2 partitions appended at N=8.
    • One-line comments on the WalManagerTest (synthetic WAL files, no write path) and RepairWalPartitionsTest (RepairDB refuses partitioned WALs) instantiations.
    • The kTestWalPartitions comment in testharness.h says what the N=8 legs cover. Secondary, ldb and the transaction suites already have multi-partition cases.
    • Neuter: write only the default column family. Both new tests fail at N=8 with "WalPartitionsAppendedTo(...) >= 2u, actual: 1 vs 2".
  • T2, fixed. Each cycle records crashed_mid_run. The run summary prints "crashed mid-run in X cycles (ack a/b, append c/d, gate_sync e/f, park g/h)". RecoveredStateIsPrefixOfHistory fails when at least 10 cycles ran and none crashed mid-run.
    • Neuter: set every cycle's crash_at past its events. The run reports "crashed mid-run in 0 cycles (ack 0/9, append 0/6, gate_sync 0/13, park 0/12)" and fails "no cycle crashed mid-run".
  • T6, closed by GC26 (GC26TrueAlternationFailsClosed, db_write_test.cc). Recorded only.
  • T7, fixed (assertions added; no existing step or assertion changed).
    • FenceHidesFailedWriteFromWalIterator: asserts failed reads NotFound while writes are stopped. It then calls Resume(), which at this base returns NotSupported for a file-scoped WAL error with MANIFEST WAL tracking (which N>1 requires), so it asserts that and failed still NotFound. After a reopen without a successful Resume(), D-1 allows a whole landed record to come back; the base recovers it, so the test asserts failed == "value" there and says why. k0..k2 are checked in both states.
    • ChangeStreamStopsBelowHeldLowerWrite: after the crash and reopen, neither key_a (never landed) nor key_b (above it) is recovered.
    • Neuters: none in production for either. The spec's neuter for the first ("skip the recovery flush's drop at the fence") does not apply here, because Resume() refuses this error and no recovery flush runs; argued, not tested. For the second, a hole above a lost record is what the assertion catches; argued.

Q5: Review-M3 Lows classified at this base (G3-A-7); no hunk

  • L-d, still present. The D-1 listener override in error_handler.cc (:359-367) covers kWriteCallback only. A listener that suppresses a kMemTable error leaves bg_error OK, and HandleMemTableInsertFailure (db_impl_write.cc :2777-2792) still installs a fence with released_by_recovery=false. Argued, not tested.
  • L-f, still present. WriteRecoverableState seeds from versions_->LastSequence() without two write queues (db_impl_write.cc ~:4542-4551), which is every N>1 DB. Argued, not tested.
  • L-h, closed at this base by GC28.
    • The gate sync's fsync (SyncClaimedWalPartition, db_impl_write.cc :4366-4413) holds the partition's WAL mutex across the fsync of a current WAL that is not IsSyncThreadSafe, instead of refusing.
    • The second-round SyncWAL() in RunCompletionGate (:3762-3776) is reached only with sync=true, i.e. from WriteImplWALOnly (two write queues, refused at N>1).
    • Only an explicit DB::SyncWAL() still refuses (db_impl.cc :2588), as at N=1.
    • Scratch probe (not committed): N=2, WAL files whose IsSyncThreadSafe() is false, 4 threads x 200 writes with half sync=true across both partitions. 0 failed writes, bg_error OK; SyncWAL() returns "Not implemented: SyncWAL() is not supported for this implementation of WAL file".
  • L-i, still present. A parked gate returns ShutdownInProgress("parked write") once shutting_down_ is set (db_impl_write.cc :3378-3381), after the write's insert and append. Argued, not tested.
  • GC30 may change the L-d, L-h and L-i code; the owner re-checks after the join. All four go to the owner.

Q6: partitioned transaction tests clean up on every exit (Review-M3 test Low)

  • Every TEST(TransactionPartitionedWalTest, ...) that owns a DB now releases its transactions, column family handles and DB, and disables and clears SyncPoint state, on every exit. They use the existing Defer (util/defer.h): pointers are declared before the first assertion, and each normal-path delete now also nulls its pointer. Where callbacks capture locals, a second Defer declared after those locals clears the callbacks first.
  • FU14SnapshotRace gets a destructor calling an idempotent Close(). RunRace and RunWithCommitHeldAtGate clear their callbacks (which capture locals) on any exit.
  • No step or assertion changed; the ASSERT_OK on DestroyColumnFamilyHandle in Close() stays.
  • Evidence (ASan+UBSan, TransactionPartitionedWalTest.*, --gtest_repeat=2, with a scratch ASSERT_TRUE(false) injected into FailedSyncPrepareLeavesNoStaleFence between EnableProcessing and DisableProcessing):
    • Before (base test bodies): LeakSanitizer reports 482308 bytes leaked in 707 allocations, and the repeat fails on the leaked DB's LOCK ("lock hold by current process").
    • After: only the injected failure; no sanitizer report.
    • Neuter: drop the guards (the base bodies). The report comes back.

Q7: GC27 carry-overs, not done

Not done: all six items (GC27RecordCutAtSeedSupersedesFromSeed, db_tailing_iter_test at N=8, ImportWaitsForPendingSyncGroup, GC27PerRecordInsertFailureBelowPendingReportStopsPIT, the explanation-void-then-crash oracle mode, and the release-build control-record writer neuter). Q7 is not in the doc's order of work, and the time went to Q1-Q6 and their verification. Nothing here blocks them.

Existing tests changed

  • GC26ColumnFamilyRefusalsHoldAfterOpen, StrippingFlushNeverMeetsAMask (db_write_test.cc): only the expected fragment of the stripping case changes (Q3 (b); the doc's Invariant 3 exceptions), plus the latter's comment (Q3 (e)).
  • FenceHidesFailedWriteFromWalIterator (GC30's list; owner-set T7 exception): assertions added after the existing ones. Resume() and a reopen are new steps after the last existing assertion; no existing step or assertion changed.
  • ChangeStreamStopsBelowHeldLowerWrite: two assertions added at the end (T7).
  • All 12 TransactionPartitionedWalTest tests and FU14SnapshotRace (several on GC30's list; owner-set Q6 exception): ownership and cleanup only.
  • BackupIncludesEveryPartitionCurrentWal, CheckpointIncludesEveryPartitionCurrentWal, IngestionConcurrentWritesAtWalPartitions: one N>1 assertion added each (T1).
  • RecoveredStateIsPrefixOfHistory: one assertion added (T2).

Fold-back split (blame at 266205c)

  • db/db_wal_oracle_test.cc (Q1, T2): D126533193.
  • db/error_handler.cc comment (Q1): D123701876.
  • include/rocksdb/options.h, PartitionWALUsage rollback steps (Q2): the comment lines blame to D118367634; the procedure is D126533192's.
  • include/rocksdb/options.h, wal_partitions doc pointer and per-CF refusal list line (Q2, Q3 (b)): GC18 flip standalone (7a31be3, no Differential Revision); the paragraph is D117251769's.
  • unreleased_history/new_features/partition_wal_usage.md (Q2): D126533192 (last touched by GC27).
  • unreleased_history/new_features/wal_partitions.md (Q2): GC18 flip standalone (7a31be3).
  • db/db_wal_test.cc, new DBWALIndexRollbackTest block and the transaction_db.h include (Q2): new code, D126533192.
  • tools/db_bench_tool.cc, db_stress_tool/db_stress_gflags.cc (Q3 (a)): D118371518.
  • db/column_family.cc (Q3 (b)): D117251769.
  • db/db_impl/db_impl_open.cc: R3.2 comment D120649665 (Q3 (c)); flush comment D120415420 (Q3 (d)).
  • db/db_write_test.cc, two fragments, the stripping test comment and both T7 tests: D123928339.
  • db/db_test_util.{h,cc} helper, backup/checkpoint/external_sst_file assertions, the external_sst_file_basic and optimistic transaction tests, the wal_manager and repair comments, test_util/testharness.h (T1): D127275775.
  • utilities/transactions/transaction_test.cc (Q6), by test:
    • SwitchWALFindsOldestWalAcrossPartitions: D123971668.
    • PreparedUnindexedWalSurvivesPartitioning, SyncPrepareAfterSyncCommitSurvivesCrash: D123928339.
    • SnapshotCommitPublishesAboveHeldLowerWrite, FailedSyncPrepareLeavesNoStaleFence, EmptyDisableWalCommitSnapshotIsPublished: D123701876.
    • FU14SnapshotRace, the two FU14 tests, RunWithCommitHeldAtGate, the two GC22 tests and GC23SnapshotReservationInProperties: D123551605.
    • GC23TimestampedSnapshotsSurviveFlushStress: D127275775.
    • The util/defer.h include: with the first of these.

Assumptions

  • D-GC29a, D-GC29b, D-GC29c and D-GC29d were blank: Recommended (i) taken for each.
  • Q3 (b): the new branch also requires allow_concurrent_memtable_write, so its trigger is exactly upstream's. The doc's "same trigger" holds literally, and the non-concurrent leg of StrippingFlushNeverMeetsAMask keeps its allow_concurrent_memtable_write message. Only the concurrent fragments change, as the doc expected.
  • Q2 step 3 wording: the doc's D-GC29d (i) text plus "flush again, after at least one write if no memtable holds data". Without it the procedure fails after a rollback; the R5 rollback variant fails without that write.
  • Q2: db/db_wal_test.cc did not include rocksdb/utilities/transaction_db.h at this base, contrary to the doc; I added the include.
  • Q2: the N=1/N=4 difference in where the guard clears (step 1 vs step 5) is base behaviour (GC26's kNone-opener flush of a merged set). The test asserts each.
  • Q2 R4 uses a FaultInjectionTestEnv instance only from step 1's reopen on, so it tracks only that instance's files. Tracking from DB creation trips its bookkeeping of WALs later moved to the archive.
  • Q1: the self-test calls RunCycle directly (4 cycles), not RunCycles, so it can assert the violation text.
  • T1: the helper lives in db/db_test_util beside the existing coverage helpers, not testharness. It needs DBImpl, and every T1 suite already includes db_test_util.h.
  • T7: Resume() refuses a file-scoped WAL error at N>1 at this base, so the "after Resume()" assertion runs with writes still stopped, and the reopen assertion pins the base outcome (the landed record is recovered).
  • GC28 renamed PublishAppliedFrontierLocked to PublishAppliedFrontier and moved the wake to wal_durability_wait_mutex_; the Q1 comments name the base's.
  • My status lines before 08:26 carried guessed timestamps; the clock times from 08:26 on are real.

Not done

  • Q7, all six items (see Q7).
  • GC23TimestampedSnapshotsSurviveFlushStress was not repeated 100x under TSan (no SyncPoint, ~586 s per TSan run under load); it ran once under TSan and 100x was not attempted in debug either.

Test plan

All runs on this host (166 cores, shared with GC30 and this round's other model), -j/-w at most 41. TEST_TMPDIR=~/pwal-3p/gc-29a-claude-tmp throughout. Host load was high for much of the session (load average 25-225), which mostly slowed the TSan and oracle runs.

  • Base checks: HEAD 266205c, clean tree, git rev-list --count d6a7847d3748..HEAD = 41, tree 32485b54e49a. Pass.
  • Debug, all Verification suites (gtest-parallel -w 41): db_write_test, db_wal_test, db_wal_oracle_test, transaction_test, optimistic_transaction_test, backup_engine_test, checkpoint_test, external_sst_file_test, external_sst_file_basic_test, wal_manager_test, repair_test, ldb_cmd_test, db_options_test, column_family_test, db_with_timestamp_basic_test. 8196/8196 tests pass (exit 0).
  • db_bench and db_stress (debug) built. --help for -partition_wal_usage shows, in both: "WAL record format. 'none' for the vanilla WAL format; 'partition_by_column_family' turns on WAL indexing, tagging each WAL record with an ordering number. --wal_partitions sets how many WAL files writes spread across."
  • Oracle, published check on by default:
    • Default RecoveredStateIsPrefixOfHistory (40 cycles): pass, 37/40 crashed mid-run (ack 9/9, append 5/6, gate_sync 11/13, park 12/12).
    • Long run: 2000 cycles in 4 shards of 500 (seeds 20261019, 20261519, 20262019, 20262519; debug). 0 violations; published-but-lost in 0 process-crash cycles (check on). N=2 in 1007 and N=8 in 993 cycles, so N=8 got 993, not quite 1000. Power-loss cycles 1034, 627 of them lost an acknowledged write; 213 recoveries stopped at a cross-partition hole. Crashed mid-run (T2) in 1849/2000: ack 514/514, append 443/503, gate_sync 444/515, park 448/468.
  • Neuters (scratch, not committed; each patched build checked by source vs binary mtime), each failing as described above:
    • Q1: kCheckPublished=false.
    • T2: crash_at past all events.
    • Q2: (a), (b), (c), (d).
    • Q3 (b): branch removed.
    • T1: default-family writes only.
    • Q6: base test bodies under ASan.
  • ASan+UBSan (Q6): TransactionPartitionedWalTest.*, --gtest_repeat=2, scratch injected failure. With the guards, only the injected failure. Without them (base bodies), LeakSanitizer 482308 bytes leaked in 707 allocations, and the repeat fails on the leaked DB's LOCK.
  • TSan (clang, USE_CLANG=1 COMPILE_WITH_TSAN=1), no ThreadSanitizer warnings anywhere:
    • Single runs of every new or changed test (oracle CatchesPublishedButLost and RecoveredStateIsPrefixOfHistory; CommitsOnEveryWalPartition; IngestBesideWritesOnEveryPartition; IngestionConcurrentWritesAtWalPartitions; BackupIncludesEveryPartitionCurrentWal; CheckpointIncludesEveryPartitionCurrentWal; StrippingFlushNeverMeetsAMask; GC26ColumnFamilyRefusalsHoldAfterOpen): pass.
    • 100x: T7's two tests (300/300), the 11 SyncPoint-driven TransactionPartitionedWalTest tests (1100/1100), the Q2 rollback tests including the crash leg (400/400).
    • GC23TimestampedSnapshotsSurviveFlushStress (no SyncPoint): one TSan run, passed (586 s under load). Not repeated 100x.
  • Debug 100x: T7 (300/300), the 11 TransactionPartitionedWalTest tests (1100/1100), the Q2 tests (400/400). All pass.
  • N=1 byte identity (DEBUG_LEVEL=0 db_bench, fillseq --threads=1 --num=10000 --seed=20260928 --disable_auto_compactions=1), SHA-256 of the DB's *.log, identical at base and commit:
    • --partition_wal_usage=none: 6d1351117a289a2784449a68d5421b1aa385ab0b383273c2c5918befa9181b09 (000004.log), base and commit.
    • --partition_wal_usage=partition_by_column_family: 9a69a3fc66777fadce05e8a999479a5f57364aca27cd6d22aa00e4631adfc796 (000004.log), base and commit.
  • make check-format: "Nothing needs to be reformatted!" (clang-format 21.1.2). make check-sources: clean.
  • Scratch probe for Q5 L-h: see Q5.
  • Not run: db_stress and crash tests (the owner deferred them, 2026-10-27); Q7's checks (not done).

…s and refusal text, N=8 spread, txn test cleanup

[GC] GC29a: the oracle checks published-but-lost by default, the rollback works from N>1, docs and refusal text match the code, N=8 consumer legs spread, transaction tests clean up

Does the oracle check published-but-lost by default and prove it can fail, does the rollback procedure work as written from N>1, do the tool help, the stripping refusal and the recovery comments match the code, do the N=8 consumer legs drive more than one partition, and do the partitioned transaction tests clean up on every exit?

Base: pwal/gc28-join @ 266205c (41 commits on d6a7847, tree 32485b5). One commit. Production edits: comments, help text, option docs, release notes, and one NotSupported message (Q3 (b)); no behaviour change at N=1 or N>1. No file or test reserved for GC30 is touched apart from the two owner-set exceptions (T7, Q6).

## Q1: the published-but-lost check is on by default and proven able to fail (FU2; gap-close2 M1, L2; E-audit M-1; D-GC29a (i))

- Property: after a process crash, no sequence a reader could observe through GetLatestSequenceNumber() is missing. `kCheckPublished` is now `true` (db/db_wal_oracle_test.cc). `ROCKSDB_WAL_ORACLE_CHECK_PUBLISHED` stays as an override (`=0` turns it off for a diagnosis). The header, the run summary and the comment above `kCheckPublished` now state the property and why it holds: publication never passes the WAL-written prefix (the debug assertion in `DBImpl::PublishAppliedFrontier`, which GC28 renamed from `PublishAppliedFrontierLocked`), and a process crash drops nothing written. The GC07, G-10 and N-2-1 references are gone.
- New self-test `DBWalOracleTest.CatchesPublishedButLost` (D-GC29a (i), test only). It runs 4 process-crash cycles that crash at quiescence (trigger ack, `crash_at` = max). Once the writers finish, one `disableWAL=true` Put goes to a covered column family. It is published and reaches no WAL, so the crash loses it. The test asserts exactly one violation, starting with `published sequence ` and containing `is above the recovered prefix`, so a hole or an "acknowledged ... lost" line also fails it. It then asserts that the same 4 cycles without the injection pass.
- error_handler.cc: the parked-gate comment now says what the code does. Every background error wakes parked gates to recheck; a gate fails only on a fence covering its range or at shutdown, otherwise it parks again. It also names the lock the wake takes at this base: `wal_durability_wait_mutex_`, not `sequence_wal_index_mutex_`.
- Evidence: `RecoveredStateIsPrefixOfHistory` passes at the default 40 cycles with the check on (37/40 crashed mid-run). See the test plan for the long runs.
- Neuter: `kCheckPublished = false` with the variable unset. `CatchesPublishedButLost` fails at :923: the first cycle reports 0 violations, where 1 is expected.

## Q2: the documented rollback works from N>1, with archive, crash midway and outstanding prepare (FU4; gap-close2 M4 / C-M-1; D-GC29d (i))

- R1, docs: In the `PartitionWALUsage` comment (include/rocksdb/options.h) and `unreleased_history/new_features/partition_wal_usage.md`:
  - Step 1 now sets `wal_partitions = 1` in the same reopen as `kNone` (Open() refuses kNone with N>1).
  - Step 3 now says to commit or roll back every prepared transaction first: a WAL holding an unresolved prepare keeps every WAL written before step 1 live. If any prepare was outstanding, step 3 says to flush again, after at least one write if no memtable holds data. A rollback leaves the memtables empty, and a flush with nothing to write records no MANIFEST progress, so the WALs stay pinned. The new test found this; it is upstream 2PC behaviour and also happens at N=1.
  - A new closing paragraph says not to set the option back to non-kNone until step 7 holds. If a prepare still keeps a pre-step-1 WAL live, the open after re-enabling fails in every recovery mode (GC26TrueAlternationFailsClosed).
  - The `wal_partitions` option doc and `wal_partitions.md` now point to the procedure. The option-doc pointer is on its own lines.
- R2-R4: new parameterized fixture `DBWALIndexRollbackTest` (N in {1,4}) in a new block in db/db_wal_test.cc, directly after `RollbackProcedureLeavesNoIndexedWAL`, which is unchanged. `RollbackProcedureLeavesNoIndexedWALAtAnyPartitionCount` runs four legs: archive (`WAL_ttl_seconds=1000`) on/off x crash on/off.
  - Setup: writes synced to column families covering every partition, leaving an unflushed indexed tail on each. At N=4 it asserts all 4 partitions appended.
  - Neuter leg (N>1): step 1 without `wal_partitions = 1` returns NotSupported containing "wal_partitions > 1 requires partition_wal_usage other than kNone", and the WAL set is unchanged.
  - The documented steps then run one by one. The guard is still set after step 1 at N=1. At N=4 it is already clear: a kNone open of a partitioned set flushes it at open, which is step 5's "may already be step 1's".
  - Crash leg: a FaultInjectionTestEnv instance drops unsynced data after step 1's reopen, before the guard clears. The DB reopens with kNone at N=1 with every key, and the procedure resumes from step 1.
  - After steps 2 and 3, every pre-step-1 WAL is deleted or archived. In the archive legs, `check_wal_index` names each archived indexed WAL until step 4 purges `archive/`.
  - Steps 5-7: `check_wal_index` exits 0 and prints "No WAL index records and no WAL index guard"; the MANIFEST guard is clear; a kNone N=1 open accepts the DB with every key.
- R5: sibling test `RollbackProcedureWaitsForPreparedTransaction` (N in {1,4}; commit and rollback variants), a WriteCommitted TransactionDB with a prepare outstanding at step 1.
  - After the flush and a forced full obsolete-file scan, the lowest indexed WAL is still live, `check_wal_index` exits non-zero naming it, and the guard is set.
  - After the prepare commits (or rolls back), one write and a flush, every pre-step-1 WAL is gone, `check_wal_index` exits 0 and the guard is clear.
  - On reopen the transaction is gone and its key is "v" (commit) or NotFound (rollback).
  - It cites GC26TrueAlternationFailsClosed and does not duplicate it.
- Neuters, each run:
  - (a) drop `none.wal_partitions = 1`: at N=4 the step 1 reopen fails with the NotSupported above (the main leg aborts at db_test_util.cc:647).
  - (b) skip step 5's reopen: at N=1 the check reports "WAL index guard: set, WALs up to #10" and exits non-zero in all 4 legs. At N=4 it passes, because the guard already cleared at step 1 (above).
  - (c) skip the archive purge: the check exits non-zero and names every archived indexed WAL, in both archive legs at both N.
  - (d) skip the commit/rollback in R5: the indexed WALs stay live, the check exits non-zero and the guard stays set.
- `make check-sources` and `make check-format` are clean.

## Q3: tool help, stripping refusal and recovery comments match the code (FU10: L6, G3-C-4, G3-B-5; L5 check; D-GC29c (i))

- (a) `--partition_wal_usage` help in db_bench and db_stress: "WAL record format. 'none' for the vanilla WAL format; 'partition_by_column_family' turns on WAL indexing, tagging each WAL record with an ordering number. --wal_partitions sets how many WAL files writes spread across." Text only; both `--help` outputs are in the test plan.
- (b) New branch in `ColumnFamilyData::ValidateOptions`, ahead of the upstream user-defined-timestamp checks. When `wal_partitions > 1`, `allow_concurrent_memtable_write`, a timestamp comparator and `persist_user_defined_timestamps = false` are all set, it returns NotSupported("wal_partitions > 1 is not supported with persist_user_defined_timestamps = false").
  - Same status code, same trigger: upstream refused exactly this combination with "...not supported in combination with concurrent memtable write". The branch also requires concurrent writes, so the trigger is identical and the `allow_concurrent_memtable_write = false` leg keeps its Open-time message. See Assumptions.
  - N=1 is unchanged (the branch requires `wal_partitions > 1`).
  - The `wal_partitions` per-column-family refusal list gains the combination, on its own line.
  - The fragments in `GC26ColumnFamilyRefusalsHoldAfterOpen` (CreateColumnFamily) and the concurrent leg of `StrippingFlushNeverMeetsAMask` (DB::Open) now expect the new message.
  - Neuter: remove the branch. Both tests fail on the upstream message.
- (c) The four recovery-mode texts (`WALRecoveryMode`, the `wal_partitions` doc, the `partition_wal_usage` field doc, `partition_wal_recovery_modes.md`) agree with the gap mapping in `ProcessLogFilesMerged` at this base, including GC27's supersession of voids above a cut:
  - tolerate and absolute fail on a tail gap with records above it;
  - point-in-time stops at the first hole and cuts;
  - skip skips the hole.
  - No mismatch found. The notes-only id `R3.2` in the tolerate/absolute refusal comment (db_impl_open.cc) is replaced by the documented behaviour: WALRecoveryMode and the partitioned-WAL recovery modes release note.
- (d) `WriteWALIndexSupersessions` comment: the declaration itself needs no flush. Recovery flushes anyway, whatever avoid_flush_during_recovery says, in two cases:
  - when the merge skipped an unexplained discard (GC23);
  - when a kNone opener merges an indexed set (GC26).
  - The second was narrowed to a merged set (one written with more than one partition, or declaring supersessions): a one-partition indexed set replays sequentially and is not flushed. Q2's N=1 legs show this; their guard is still set after step 1.
- (e) `StrippingFlushNeverMeetsAMask` comment: it no longer argues from read masks (removed by GC25). It says what the test pins: the refusal, with the message per leg. The name is kept.
- (f) Nothing else stale found in the listed passages.
- (a), (c)-(f) are argued, not tested.

## Q4: Review-M3 T1, T2, T6, T7 (G3-A-4, G3-E-2; D-GC29b (i)); tests only

- T1, fixed. Still true at the base: N=8 legs of default-column-family suites append to one partition.
  - New helper `WalPartitionsAppendedTo(DB*)` in db/db_test_util.{h,cc}, beside `ColumnFamilyIdsCoveringWalPartitions`. It counts partitions whose durability tracker completed an append since open (`TEST_WalDurabilityDurableUpto(p) > 0`), and is 0 at N=1.
  - The existing every-partition tests now assert all N partitions appended: `BackupIncludesEveryPartitionCurrentWal`, `CheckpointIncludesEveryPartitionCurrentWal`, and `IngestionConcurrentWritesAtWalPartitions` (external_sst_file_test already had a multi-partition case).
  - New: `ExternalSSTFileBasicTestN.IngestBesideWritesOnEveryPartition` (writes on every partition, ingest into each family, reopen) and `OptimisticTransactionTest.CommitsOnEveryWalPartition` (commits on every partition, a cross-partition conflict still Busy, reopen). Both assert >= 2 partitions appended at N=8.
  - One-line comments on the `WalManagerTest` (synthetic WAL files, no write path) and `RepairWalPartitionsTest` (RepairDB refuses partitioned WALs) instantiations.
  - The `kTestWalPartitions` comment in testharness.h says what the N=8 legs cover. Secondary, ldb and the transaction suites already have multi-partition cases.
  - Neuter: write only the default column family. Both new tests fail at N=8 with "WalPartitionsAppendedTo(...) >= 2u, actual: 1 vs 2".
- T2, fixed. Each cycle records `crashed_mid_run`. The run summary prints "crashed mid-run in X cycles (ack a/b, append c/d, gate_sync e/f, park g/h)". `RecoveredStateIsPrefixOfHistory` fails when at least 10 cycles ran and none crashed mid-run.
  - Neuter: set every cycle's `crash_at` past its events. The run reports "crashed mid-run in 0 cycles (ack 0/9, append 0/6, gate_sync 0/13, park 0/12)" and fails "no cycle crashed mid-run".
- T6, closed by GC26 (`GC26TrueAlternationFailsClosed`, db_write_test.cc). Recorded only.
- T7, fixed (assertions added; no existing step or assertion changed).
  - `FenceHidesFailedWriteFromWalIterator`: asserts `failed` reads NotFound while writes are stopped. It then calls Resume(), which at this base returns NotSupported for a file-scoped WAL error with MANIFEST WAL tracking (which N>1 requires), so it asserts that and `failed` still NotFound. After a reopen without a successful Resume(), D-1 allows a whole landed record to come back; the base recovers it, so the test asserts `failed` == "value" there and says why. k0..k2 are checked in both states.
  - `ChangeStreamStopsBelowHeldLowerWrite`: after the crash and reopen, neither `key_a` (never landed) nor `key_b` (above it) is recovered.
  - Neuters: none in production for either. The spec's neuter for the first ("skip the recovery flush's drop at the fence") does not apply here, because Resume() refuses this error and no recovery flush runs; argued, not tested. For the second, a hole above a lost record is what the assertion catches; argued.

## Q5: Review-M3 Lows classified at this base (G3-A-7); no hunk

- L-d, still present. The D-1 listener override in error_handler.cc (:359-367) covers `kWriteCallback` only. A listener that suppresses a `kMemTable` error leaves bg_error OK, and `HandleMemTableInsertFailure` (db_impl_write.cc :2777-2792) still installs a fence with `released_by_recovery=false`. Argued, not tested.
- L-f, still present. `WriteRecoverableState` seeds from `versions_->LastSequence()` without two write queues (db_impl_write.cc ~:4542-4551), which is every N>1 DB. Argued, not tested.
- L-h, closed at this base by GC28.
  - The gate sync's fsync (`SyncClaimedWalPartition`, db_impl_write.cc :4366-4413) holds the partition's WAL mutex across the fsync of a current WAL that is not `IsSyncThreadSafe`, instead of refusing.
  - The second-round `SyncWAL()` in `RunCompletionGate` (:3762-3776) is reached only with `sync=true`, i.e. from `WriteImplWALOnly` (two write queues, refused at N>1).
  - Only an explicit `DB::SyncWAL()` still refuses (db_impl.cc :2588), as at N=1.
  - Scratch probe (not committed): N=2, WAL files whose `IsSyncThreadSafe()` is false, 4 threads x 200 writes with half sync=true across both partitions. 0 failed writes, bg_error OK; `SyncWAL()` returns "Not implemented: SyncWAL() is not supported for this implementation of WAL file".
- L-i, still present. A parked gate returns `ShutdownInProgress("parked write")` once `shutting_down_` is set (db_impl_write.cc :3378-3381), after the write's insert and append. Argued, not tested.
- GC30 may change the L-d, L-h and L-i code; the owner re-checks after the join. All four go to the owner.

## Q6: partitioned transaction tests clean up on every exit (Review-M3 test Low)

- Every `TEST(TransactionPartitionedWalTest, ...)` that owns a DB now releases its transactions, column family handles and DB, and disables and clears SyncPoint state, on every exit. They use the existing `Defer` (util/defer.h): pointers are declared before the first assertion, and each normal-path `delete` now also nulls its pointer. Where callbacks capture locals, a second `Defer` declared after those locals clears the callbacks first.
- `FU14SnapshotRace` gets a destructor calling an idempotent `Close()`. `RunRace` and `RunWithCommitHeldAtGate` clear their callbacks (which capture locals) on any exit.
- No step or assertion changed; the ASSERT_OK on DestroyColumnFamilyHandle in `Close()` stays.
- Evidence (ASan+UBSan, `TransactionPartitionedWalTest.*`, `--gtest_repeat=2`, with a scratch `ASSERT_TRUE(false)` injected into `FailedSyncPrepareLeavesNoStaleFence` between EnableProcessing and DisableProcessing):
  - Before (base test bodies): LeakSanitizer reports 482308 bytes leaked in 707 allocations, and the repeat fails on the leaked DB's LOCK ("lock hold by current process").
  - After: only the injected failure; no sanitizer report.
  - Neuter: drop the guards (the base bodies). The report comes back.

## Q7: GC27 carry-overs, not done

Not done: all six items (`GC27RecordCutAtSeedSupersedesFromSeed`, db_tailing_iter_test at N=8, `ImportWaitsForPendingSyncGroup`, `GC27PerRecordInsertFailureBelowPendingReportStopsPIT`, the explanation-void-then-crash oracle mode, and the release-build control-record writer neuter). Q7 is not in the doc's order of work, and the time went to Q1-Q6 and their verification. Nothing here blocks them.

## Existing tests changed

- `GC26ColumnFamilyRefusalsHoldAfterOpen`, `StrippingFlushNeverMeetsAMask` (db_write_test.cc): only the expected fragment of the stripping case changes (Q3 (b); the doc's Invariant 3 exceptions), plus the latter's comment (Q3 (e)).
- `FenceHidesFailedWriteFromWalIterator` (GC30's list; owner-set T7 exception): assertions added after the existing ones. Resume() and a reopen are new steps after the last existing assertion; no existing step or assertion changed.
- `ChangeStreamStopsBelowHeldLowerWrite`: two assertions added at the end (T7).
- All 12 `TransactionPartitionedWalTest` tests and `FU14SnapshotRace` (several on GC30's list; owner-set Q6 exception): ownership and cleanup only.
- `BackupIncludesEveryPartitionCurrentWal`, `CheckpointIncludesEveryPartitionCurrentWal`, `IngestionConcurrentWritesAtWalPartitions`: one N>1 assertion added each (T1).
- `RecoveredStateIsPrefixOfHistory`: one assertion added (T2).

## Fold-back split (blame at 266205c)

- db/db_wal_oracle_test.cc (Q1, T2): D126533193.
- db/error_handler.cc comment (Q1): D123701876.
- include/rocksdb/options.h, PartitionWALUsage rollback steps (Q2): the comment lines blame to D118367634; the procedure is D126533192's.
- include/rocksdb/options.h, `wal_partitions` doc pointer and per-CF refusal list line (Q2, Q3 (b)): GC18 flip standalone (7a31be3, no Differential Revision); the paragraph is D117251769's.
- unreleased_history/new_features/partition_wal_usage.md (Q2): D126533192 (last touched by GC27).
- unreleased_history/new_features/wal_partitions.md (Q2): GC18 flip standalone (7a31be3).
- db/db_wal_test.cc, new `DBWALIndexRollbackTest` block and the transaction_db.h include (Q2): new code, D126533192.
- tools/db_bench_tool.cc, db_stress_tool/db_stress_gflags.cc (Q3 (a)): D118371518.
- db/column_family.cc (Q3 (b)): D117251769.
- db/db_impl/db_impl_open.cc: R3.2 comment D120649665 (Q3 (c)); flush comment D120415420 (Q3 (d)).
- db/db_write_test.cc, two fragments, the stripping test comment and both T7 tests: D123928339.
- db/db_test_util.{h,cc} helper, backup/checkpoint/external_sst_file assertions, the external_sst_file_basic and optimistic transaction tests, the wal_manager and repair comments, test_util/testharness.h (T1): D127275775.
- utilities/transactions/transaction_test.cc (Q6), by test:
  - SwitchWALFindsOldestWalAcrossPartitions: D123971668.
  - PreparedUnindexedWalSurvivesPartitioning, SyncPrepareAfterSyncCommitSurvivesCrash: D123928339.
  - SnapshotCommitPublishesAboveHeldLowerWrite, FailedSyncPrepareLeavesNoStaleFence, EmptyDisableWalCommitSnapshotIsPublished: D123701876.
  - FU14SnapshotRace, the two FU14 tests, RunWithCommitHeldAtGate, the two GC22 tests and GC23SnapshotReservationInProperties: D123551605.
  - GC23TimestampedSnapshotsSurviveFlushStress: D127275775.
  - The util/defer.h include: with the first of these.

## Assumptions

- D-GC29a, D-GC29b, D-GC29c and D-GC29d were blank: Recommended (i) taken for each.
- Q3 (b): the new branch also requires `allow_concurrent_memtable_write`, so its trigger is exactly upstream's. The doc's "same trigger" holds literally, and the non-concurrent leg of `StrippingFlushNeverMeetsAMask` keeps its `allow_concurrent_memtable_write` message. Only the concurrent fragments change, as the doc expected.
- Q2 step 3 wording: the doc's D-GC29d (i) text plus "flush again, after at least one write if no memtable holds data". Without it the procedure fails after a rollback; the R5 rollback variant fails without that write.
- Q2: db/db_wal_test.cc did not include rocksdb/utilities/transaction_db.h at this base, contrary to the doc; I added the include.
- Q2: the N=1/N=4 difference in where the guard clears (step 1 vs step 5) is base behaviour (GC26's kNone-opener flush of a merged set). The test asserts each.
- Q2 R4 uses a FaultInjectionTestEnv instance only from step 1's reopen on, so it tracks only that instance's files. Tracking from DB creation trips its bookkeeping of WALs later moved to the archive.
- Q1: the self-test calls RunCycle directly (4 cycles), not RunCycles, so it can assert the violation text.
- T1: the helper lives in db/db_test_util beside the existing coverage helpers, not testharness. It needs DBImpl, and every T1 suite already includes db_test_util.h.
- T7: Resume() refuses a file-scoped WAL error at N>1 at this base, so the "after Resume()" assertion runs with writes still stopped, and the reopen assertion pins the base outcome (the landed record is recovered).
- GC28 renamed `PublishAppliedFrontierLocked` to `PublishAppliedFrontier` and moved the wake to `wal_durability_wait_mutex_`; the Q1 comments name the base's.
- My status lines before 08:26 carried guessed timestamps; the clock times from 08:26 on are real.

## Not done

- Q7, all six items (see Q7).
- `GC23TimestampedSnapshotsSurviveFlushStress` was not repeated 100x under TSan (no SyncPoint, ~586 s per TSan run under load); it ran once under TSan and 100x was not attempted in debug either.

## Test plan

All runs on this host (166 cores, shared with GC30 and this round's other model), `-j`/`-w` at most 41. TEST_TMPDIR=~/pwal-3p/gc-29a-claude-tmp throughout. Host load was high for much of the session (load average 25-225), which mostly slowed the TSan and oracle runs.

- Base checks: HEAD 266205c, clean tree, `git rev-list --count d6a7847..HEAD` = 41, tree 32485b5. Pass.
- Debug, all Verification suites (gtest-parallel -w 41): db_write_test, db_wal_test, db_wal_oracle_test, transaction_test, optimistic_transaction_test, backup_engine_test, checkpoint_test, external_sst_file_test, external_sst_file_basic_test, wal_manager_test, repair_test, ldb_cmd_test, db_options_test, column_family_test, db_with_timestamp_basic_test. 8196/8196 tests pass (exit 0).
- db_bench and db_stress (debug) built. `--help` for `-partition_wal_usage` shows, in both: "WAL record format. 'none' for the vanilla WAL format; 'partition_by_column_family' turns on WAL indexing, tagging each WAL record with an ordering number. --wal_partitions sets how many WAL files writes spread across."
- Oracle, published check on by default:
  - Default `RecoveredStateIsPrefixOfHistory` (40 cycles): pass, 37/40 crashed mid-run (ack 9/9, append 5/6, gate_sync 11/13, park 12/12).
  - Long run: 2000 cycles in 4 shards of 500 (seeds 20261019, 20261519, 20262019, 20262519; debug). 0 violations; published-but-lost in 0 process-crash cycles (check on). N=2 in 1007 and N=8 in 993 cycles, so N=8 got 993, not quite 1000. Power-loss cycles 1034, 627 of them lost an acknowledged write; 213 recoveries stopped at a cross-partition hole. Crashed mid-run (T2) in 1849/2000: ack 514/514, append 443/503, gate_sync 444/515, park 448/468.
- Neuters (scratch, not committed; each patched build checked by source vs binary mtime), each failing as described above:
  - Q1: `kCheckPublished=false`.
  - T2: `crash_at` past all events.
  - Q2: (a), (b), (c), (d).
  - Q3 (b): branch removed.
  - T1: default-family writes only.
  - Q6: base test bodies under ASan.
- ASan+UBSan (Q6): `TransactionPartitionedWalTest.*`, `--gtest_repeat=2`, scratch injected failure. With the guards, only the injected failure. Without them (base bodies), LeakSanitizer 482308 bytes leaked in 707 allocations, and the repeat fails on the leaked DB's LOCK.
- TSan (clang, USE_CLANG=1 COMPILE_WITH_TSAN=1), no ThreadSanitizer warnings anywhere:
  - Single runs of every new or changed test (oracle `CatchesPublishedButLost` and `RecoveredStateIsPrefixOfHistory`; `CommitsOnEveryWalPartition`; `IngestBesideWritesOnEveryPartition`; `IngestionConcurrentWritesAtWalPartitions`; `BackupIncludesEveryPartitionCurrentWal`; `CheckpointIncludesEveryPartitionCurrentWal`; `StrippingFlushNeverMeetsAMask`; `GC26ColumnFamilyRefusalsHoldAfterOpen`): pass.
  - 100x: T7's two tests (300/300), the 11 SyncPoint-driven `TransactionPartitionedWalTest` tests (1100/1100), the Q2 rollback tests including the crash leg (400/400).
  - `GC23TimestampedSnapshotsSurviveFlushStress` (no SyncPoint): one TSan run, passed (586 s under load). Not repeated 100x.
- Debug 100x: T7 (300/300), the 11 `TransactionPartitionedWalTest` tests (1100/1100), the Q2 tests (400/400). All pass.
- N=1 byte identity (DEBUG_LEVEL=0 db_bench, `fillseq --threads=1 --num=10000 --seed=20260928 --disable_auto_compactions=1`), SHA-256 of the DB's `*.log`, identical at base and commit:
  - `--partition_wal_usage=none`: 6d1351117a289a2784449a68d5421b1aa385ab0b383273c2c5918befa9181b09 (000004.log), base and commit.
  - `--partition_wal_usage=partition_by_column_family`: 9a69a3fc66777fadce05e8a999479a5f57364aca27cd6d22aa00e4631adfc796 (000004.log), base and commit.
- `make check-format`: "Nothing needs to be reformatted!" (clang-format 21.1.2). `make check-sources`: clean.
- Scratch probe for Q5 L-h: see Q5.
- Not run: db_stress and crash tests (the owner deferred them, 2026-10-27); Q7's checks (not done).
@JustinGaoF JustinGaoF changed the title [claude][GC] GC29a: oracle published check by default, rollback from N>1, docs and refusal text, N=8 spread, txn test cleanup [GC] GC29a: oracle published check by default, rollback from N>1, docs and refusal text, N=8 spread, txn test cleanup Nov 2, 2026
@JustinGaoF

Copy link
Copy Markdown
Owner Author

Folded at M5 into pwal/m5 @ a7bc56c (commits D118367634, D118371518, D120415420, D120649665, D126533192, D117251769, D123551605, D123701876, D123928339, D123971668, D126533193, D127093323, D127275775, FLIP); see the M5 PR #43.

@JustinGaoF JustinGaoF closed this Nov 5, 2026
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