Opened 4 years ago

Last modified 3 years ago

#2633 new enhancement

Reduce Buildset Race Condition

Reported by: dustin Owned by:
Priority: minor Milestone: 0.9.+
Version: master Keywords: simple

Description (last modified by dustin)

There's a race condition in completeBuildset: if two build requests finish at exactly the same time, on different masters, then both masters may run completeBuildset at the same time, see that the buildset is actually complete, and send a message indicating completion -- so, everyone will get two "completed" messages.

Make completeBuildset return true if the database claims to have updated the row, and use that to narrow the race condition in maybeBuildsetComplete

Change History (1)

comment:1 Changed 3 years ago by dustin

  • Description modified (diff)
  • Milestone changed from 0.9.0 to 0.9.+
  • Priority changed from major to minor
  • Summary changed from [nine] Reduce Buildset Race Condition to Reduce Buildset Race Condition
  • Version set to master
Note: See TracTickets for help on using tickets.