Race condition when multiple people update an issue.
Issue #71
new
This is a theoretical problem and I haven't seen it but it is possible to happen and therefore should be considered. However, maybe it is so rare that it never happens.
Two people update an issue a the same time. Current updaters = [anotherUser]
- "firstUser" updates the issues.
- (Thread 1) Microservice receives first webHook.
- (Thread 1) Gets the changelog and processes the updaters as [anotherUser, firstUser]
- "secondUser" updates the issues.
- (Thread 2) A different microservice receives second webHook.
- (Thread 2) Gets the changelog and processes the updaters as [anotherUser, firstUser, secondUser]
- (Thread 2) Posts to JIRA with this updater list [anotherUser, firstUser, secondUser]
- (Thread 2) Done.
- (Thread 1) Post to JIRA with this updater list [anotherUser, firstUser].
- (Thread 1) Done.
- We now have a state where the updaters is not correct.
This is more prevalent when dealing the lastUpdater search criteria.