Page MenuHomePhabricator

Improve robustness of cluster version bookkeeping
ClosedPublic

Authored by epriestley on Apr 18 2016, 3:20 PM.
Tags
None
Referenced Files
F19157441: D15747.id37949.diff
Sat, Dec 13, 4:05 PM
F19154363: D15747.id.diff
Thu, Dec 11, 2:41 PM
F19151827: D15747.diff
Wed, Dec 10, 10:51 PM
F19049468: D15747.id37949.diff
Nov 27 2025, 5:22 PM
F19039662: D15747.id37949.diff
Nov 26 2025, 8:38 AM
F18999260: D15747.id37947.diff
Nov 20 2025, 8:44 PM
F18991155: D15747.id37947.diff
Nov 18 2025, 8:59 PM
F18943334: D15747.diff
Nov 11 2025, 1:49 PM
Subscribers
None

Details

Summary

Ref T4292. Small fixes:

  • There was a bug with the first write, where we'd write 1 but expect 0. Fix this.
  • Narrow the window where we hold the isWriting lock: we don't need to wait for the client to finish.
  • Release the lock even if something throws.
  • Use a more useful variable name.
Test Plan
  • Made new writes to a fresh cluster repository.
  • Made sequential writes.
  • Made concurrent writes.
  • Made good writes and bad writes.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve robustness of cluster version bookkeeping.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 18 2016, 3:36 PM
This revision was automatically updated to reflect the committed changes.