Repository navigation
fix(cache): preserve disk placement identity across restarts (STO-36) - #626
Conversation
8779b7e to
b590a9f
Compare
- Canonicalize directory identities and persist per-disk node, membership, weight, and epoch history. - Require coherent majority identity and complete member continuity before activation; reset unprovable histories fail-closed. - Durable cleanup precedes publication; malformed records fail validation, and fresh unseen empty members retain ordinary data. - Cover aliases, upgrade/downgrade, foreign authority, lost record evidence, mixed activations, and malformed codec inputs.
- Return the original storage I/O error for failed single-disk writes while keeping publication failures fail-closed. - Validate and carry .dfkv-ring metadata through offline slab-to-LSE migration without promoting temporary writes or accepting foreign files. - Reproduce the original single-disk and migration CI failures and retain both native C++ and exact plugin controls.
- Parse ring identity from the held source descriptor and retain it through publication. - Anchor expected inventory and ring-presence checks to root_fd rather than replaceable pathnames. - Prove a valid replacement root cannot inject a foreign identity after SlabSnapshot::Open. - Run full migration, identity, compatibility and linked-artifact controls.
b590a9f to
1fd75ba
Compare
- Reject a present ring record when its slab epoch differs from the snapshot state epoch - Add a migration regression that fails on the preceding implementation and leaves no destination on rejection
|
Validation on exact head |
Summary
STO-36 only, replayed onto observed current main
2b82c79e4ea4631e98c8844ade06cc7e6483c99f.Canonicalize intra-node disk identity and preserve placement history so semantically identical
--dirspellings, including symlink aliases and trailing slashes, cannot move keys to different disks or resurrect removed/overwritten values when the original spelling returns.DFKV_DISK_RING_CHANGE=pass; only explicitresetis otherwise allowed, with no skip/safety-off or default experimental migration.The change has 18 paths confined to storage/cache sources, cache tests, and related deployment/metrics docs. No transport, MDS-authentication, shared config parser, external-engine, fused/pending/default-enablement, or release change is included.
Exact candidate
1fd75ba4fa5f4424ccdafc03b3e2761fe610eeff4b90a149b1725c05927a54923b77915c1cb0c974764e8fa852725af9507161cadbe9ff35a6f2689f2b82c79e4ea4631e98c8844ade06cc7e6483c99fc4d18e7ffc27489e98c2a88b723950e673775241All three commits retain 1:1 range-diff equivalence with the accepted candidate. The 18-file binary patch remains SHA-256
6b2cc70eada4048f02d4908a5192e8ce7a02331c86f7d3cea8d84486df9e0d69; owned storage/test/docs blobs remain byte-identical to the prior approved implementation. Current main's additional replay-trace Python/tests/docs changes are outside this patch.The raw head is not asserted to be the eventual merge-queue commit.
Fresh focused verification
ldd -rreports no unresolved symbols and SONAME remainslibdfkv.so.2A disposable unfixed baseline reproduced
DirectoryAliasesDoNotResurrectARemovedValue: remove-through-alias misses, then returning to the original spelling exposes the removed value. The baseline production cache sources are identical across the replay-only235d8676…→2b82c79e…Python/docs update; only the temporary test fixture was added. The candidate passes the same case.Earlier
8779/a253full andb590/235source/CI evidence is preserved separately and is not substituted for this head's acceptance. Final independent source/evidence review remains pending after this head's full gate.Remaining gates
Fresh public CI at https://github.com/dingodb/DingoCache/actions/runs/46201390984 has completed 13/13 jobs successfully on exact head
1fd75ba4fa5f4424ccdafc03b3e2761fe610eeff.The maintained full CTest+JUnit run is pending its ordered physical execution window under a unique execution identity. Its discovery and raw-vs-adjudicated outcomes will be computed from its own case results, not copied from older runs.
PR remains draft. No readiness, merge queue, deployment, or broader M-series completion is claimed.