Improve JobAcqusitionThread

Description

Below, please find my suggested code for the JobAcquisitionThread to fix the problems I had reported in previous JIRA issues.




To me, the implementation of the JobAcquisitionThread class is questionable sice it is very hand-made concurrency code (and thus very prone to subtle concurrency bugs). As a larger refactoring, I would migrate to usage of java.util.concurrent features. For example, usage of Locks and Latches.

Assignee

Daniel Meyer (camunda)

Reporter

Etienne Studer

Labels

None

Fix versions

Priority

Critical
Configure