eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
419 stars 179 forks source link

Deadlock when uploading XAR file into package manager #1184

Open dizzzz opened 7 years ago

dizzzz commented 7 years ago

I tried to upload a newer version of a XAR file into the dashboard/package manager. The XAR contains native Java code. The 'old' XAR has been used, so the classes have been loaded. Upon upload of the new XAR I fetched two stack traces:

deadlock_yourkit.txt deadlock_stdout.txt

Upon stop:

21 Nov 2016 19:50:29,851 [Thread-3] INFO  (JettyStart.java [lifeCycleStopping]:615) - Jetty server stopping... 
SYSTEM INFO
Database instance: exist
-------------------------------------------------------------------
Threads currently waiting for a lock:
=====================================
Thread: qtp138536309-40
           Lock type: COLLECTION
           Lock mode: READ
             Lock id: /db/apps
             Held by: [qtp138536309-27]
             Held by: [qtp138536309-27]
             Held by: [qtp138536309-27]
    Waiting for read: []
   Waiting for write: []
adamretter commented 7 years ago

Your stdout seems to indicate that you have quite a few errors when doing something with the XAR, did you get to the bottom of those first?

Otherwise, we need the jstack output...