Files
wekan/server
Lauri Ojansivu bfe4cc73b1 Serialize workers resuming the same Scrum History operation.
The board lock in server/scrum.js is a per-process queue, so two server
processes could resume one Scrum History operation at the same time and
interleave its writes; the checkpoint only proved the plan was the same,
not who was running it. Each resume now claims the checkpoint with its
own worker id after adopting the operation id. The newest claim wins,
and every guard between writes checks the claim, so a displaced worker
stops at its next guard instead of writing on. The worker id is kept out
of the plan selector, so completion hashes are unchanged, and a claim
never attaches to a replaced plan or a checkpoint without an operation id.

Unit tests cover newest-wins, displacement, a lost claim reply and a
replaced plan; a MongoDB test with two clients shows the older process
refused after the newer claim. 561 server tests pass.

Thanks to xet7 !
2026-09-30 02:46:30 +03:00
..
2026-03-22 17:17:48 +02:00
2021-06-14 15:11:21 +02:00