-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Jenkins 1.544 / Jenkins Priority Sorter Plugin 2.2
Found one Java-level deadlock: ============================= "Handling GET /jenkins/view/Portal/ : RequestHandlerThread[#12]": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter" "QueueSorter.installDefaultQueueSorter": waiting to lock monitor 0x000000001ae56c48 (object 0x000000041895e0f0, a hudson.model.Queue), which is held by "Queue.init" "Queue.init": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter"
- is related to
-
JENKINS-55361 DescriptorExtensionList not locking correctly, leading to deadlocks
-
- Resolved
-
[JENKINS-21034] Jenkins Startup Deadlock - QueueSorter.installDefaultQueueSorter and Queue.init
Assignee | Original: bklarson [ bklarson ] | New: Magnus Sandberg [ emsa23 ] |
Description |
Original:
{code} Found one Java-level deadlock: ============================= "Handling GET /jenkins/view/Portal/ : RequestHandlerThread[#12]": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter" "QueueSorter.installDefaultQueueSorter": waiting to lock monitor 0x000000001ae56c48 (object 0x000000041895e0f0, a hudson.model.Queue), which is held by "Queue.init" "Queue.init": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter" {code} |
New:
{code} Found one Java-level deadlock: ============================= "Handling GET /jenkins/view/Portal/ : RequestHandlerThread[#12]": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter" "QueueSorter.installDefaultQueueSorter": waiting to lock monitor 0x000000001ae56c48 (object 0x000000041895e0f0, a hudson.model.Queue), which is held by "Queue.init" "Queue.init": waiting to lock monitor 0x000000001a449d08 (object 0x0000000419d757e8, a hudson.ExtensionList$Lock), which is held by "QueueSorter.installDefaultQueueSorter" {code} |
Environment | Original: Jenkins 1.544 | New: Jenkins 1.544 / Jenkins Priority Sorter Plugin 2.2 |
Ran into this as well. Seems unrelated to the upgrade. It's simply that the queue that's persisted when the Jenkins service shuts down causes a deadlock when Jenkins re-initializes. The quick fix for me was to rename the file (this is on Ubuntu) from queue.xml into something like queue.xml.keep (or you could just remove it altogether).
I've had this happen both at Jenkins upgrades, and simply restarting Jenkins after plugin updates, since 1.542 or so. Once in this deadlock, downgrading as far as 1.540 didn't do the trick. Ended up upgrading back to 1.544 and removing queue.xml before restarting.