Discovered that the scheduler can cause deadlocks with DataImport.
This is a result of 2 things:
- We call - schedUtil.shutdownScheduler(sched);
This in turn calls - scheduler.shutdown(); This does not block until services are finished.
We should call - scheduler.shutdown(true); (and have a timeout on the operation too).
- Webworks inherited thread local problem. Anton knows the details of this.
The attached thread dump contains the deadlock.
Note that there are three threads with the name - JiraQuartzScheduler_Worker-0