Community
Participate
Working Groups
Created attachment 203920 [details] Thread dump showing deadlock. In adopter JUnit testing, we are sometimes seeing GenericJpaProjectManager deadlocking while attempting to stop. A colleague's assessment was: "This appears to be a deadlock in the org.eclipse.jpt.jpa code. The main (ui) thread is trying to join to another JPA thread while holding an ILock that the other JPA thread is waiting for. Therefore the join will never return. This is being called on main during JpaJptCorePlugin shutdown." Thread dump attached.
This deadlock should no longer occur, as we have completely reworked how the JPA project manager works. It now uses Eclipse Jobs (instead of its own background thread). This deadlock is the result of a misunderstanding of the method ILock.acquire() - apparently it "ignores attempts to interrupt the thread". Whoops. :-)
We haven't seen this in some time, so closing. We will re-open if we see it again, which sounds unlikely given the rework description. Thanks, - Ian