Page MenuHomePhabricator

Handle race conditions
Open, LowPublic


  • if two people call nextrecord() simultaneously - try adding the process ID to end of fn and renaming
  • race conditions in [POST] method of /answer - try locking the choice for some time

Event Timeline

prnk28 created this task.Jun 30 2016, 5:03 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 30 2016, 5:03 PM

the slow race to POST is in /recommend too. This could be as simple as
making choose() (or is it choice()?) use a round-robin instead of being

Jsalsman triaged this task as Low priority.Jul 2 2016, 11:32 PM

Random is better than round-robin, but we still might want to lock, so this is still valid.