Bug 535294 (RHQ-2004) - possible plugin container deadlock
Summary: possible plugin container deadlock
Keywords:
Status: CLOSED WORKSFORME
Alias: RHQ-2004
Product: RHQ Project
Classification: Other
Component: Agent
Version: 1.2
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: rhq_triage
TreeView+ depends on / blocked
 
Reported: 2009-04-22 14:49 UTC by Jay Shaughnessy
Modified: 2011-03-25 19:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-25 19:18:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2009-04-22 14:49:00 UTC
My agent shutdown was hanging (note, I expect eventually the agent kill logic would have kicked in) so I checked the log:

In one minute intervals:

2009-04-22 10:39:36,189 DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Asked to remove an unknown Resource [Resource[id=500628, type=JBoss ESB Listeners, key=jboss.esb:deployment=jbossesb.esb,listener-name=redeliver-scheduled-listener,service-category=JBossESB-Internal,service-name=RedeliverService, name=redeliver-scheduled-listener - JBossESB-Internal Listener Configuration, parent=RedeliverService Service]] with UUID [982c1313-814d-4e8c-be98-a73ee53b9327]
2009-04-22 10:39:36,189 DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Removing Resource[id=500629, type=Actions, key=RedeliverMessagesAction , name=RedeliverMessagesAction , parent=RedeliverService Service] from local inventory...
2009-04-22 10:40:36,186 WARN  [InventoryManager.discovery-1] (org.rhq.core.pc.PluginContainer)- There may be a deadlock in the plugin container.
java.lang.Throwable: There may be a deadlock in the plugin container.
	at org.rhq.core.pc.PluginContainer.obtainReadLock(PluginContainer.java:346)
	at org.rhq.core.pc.PluginContainer.getMeasurementManager(PluginContainer.java:420)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:866)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:858)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:858)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:858)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:858)
	at org.rhq.core.pc.inventory.InventoryManager.removeResourceAndIndicateIfScanIsNeeded(InventoryManager.java:858)
	at org.rhq.core.pc.inventory.InventoryManager.removeResource(InventoryManager.java:828)
	at org.rhq.core.pc.inventory.InventoryManager.purgeObsoleteResources(InventoryManager.java:2035)
	at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:732)
	at org.rhq.core.pc.inventory.InventoryManager.handleReport(InventoryManager.java:701)
	at org.rhq.core.pc.inventory.AutoDiscoveryExecutor.call(AutoDiscoveryExecutor.java:118)
	at org.rhq.core.pc.inventory.AutoDiscoveryExecutor.call(AutoDiscoveryExecutor.java:70)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
2009-04-22 10:40:36,186 DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Asked to remove an unknown Resource [Resource[id=500629, type=Actions, key=RedeliverMessagesAction , name=RedeliverMessagesAction , parent=RedeliverService Service]] with UUID [173f3a41-a49c-4247-bb9d-ab21e81c1b2c]
2009-04-22 10:41:36,184 WARN  [InventoryManager.discovery-1] (org.rhq.core.pc.PluginContainer)- There may be a deadlock in the plugin container.
java.lang.Throwable: There may be a deadlock in the plugin container.

Comment 1 Red Hat Bugzilla 2009-11-10 20:55:53 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2004


Comment 2 wes hayutin 2010-02-16 16:52:19 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 3 wes hayutin 2010-02-16 16:58:10 UTC
making sure we're not missing any bugs in rhq_triage

Comment 4 Corey Welton 2010-08-25 15:50:01 UTC
Mazz, any insight on this one?

Comment 5 John Mazzitelli 2010-08-25 16:28:40 UTC
I have never seen this, but I know of nothing that explicitly attempted to fix this. It's possible this problem still exists, we've just never seen it again. I would leave this around, or close it as cannot-reproduce or something like that.

Comment 6 John Mazzitelli 2011-03-25 19:18:41 UTC
cannot reproduce this. closing unless and until someone reproduces this and can provide more information. I suspect in the intervening 2 years since this was reported (and never seen again since) that we've inadvertently fixed this with the refactorings that have since gone into the PC.


Note You need to log in before you can comment on or make changes to this bug.