Karaf deadlock during features:uninstall, features:install

Description

While trying to run a features:uninstall/features:install in fairly rapid succession, my Karaf system appears to have hung. I did a thread dump and I don't see anything obvious except that the NCS bundle is not stopping successfully. I'll attach the stack traces and Karaf console output to this bug.

Acceptance / Success Criteria

None

Attachments

1
  • 18 Mar 2013, 10:36 AM

Lucidchart Diagrams

Activity

Show:

Seth Leger July 11, 2013 at 11:47 AM

I haven't seen this issue in a while, marking as cannot reproduce.

Seth Leger March 18, 2013 at 10:34 AM

This is the only suspicious part of the thread dump:

"Blueprint Extender: 3" daemon prio=10 tid=0x79d18000 nid=0x606a in Object.wait() [0x7a5fe000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x9daecf20> (a [Ljava.lang.Object;) at java.lang.Object.wait(Object.java:485) at org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:4871) - locked <0x9daecf20> (a [Ljava.lang.Object;) at org.apache.felix.framework.Felix.registerService(Felix.java:3205) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320) at org.ops4j.pax.vaadin.internal.extender.ApplicationFactoryServiceTracker.addingService(ApplicationFactoryServiceTracker.java:55) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260) at org.apache.felix.framework.Felix.registerService(Felix.java:3275) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346) at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:439) at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:190) at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:690) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:369) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261) - locked <0xb30ba780> (a java.util.concurrent.atomic.AtomicBoolean) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106) at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:206) 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:662)

Here's the output of list:

opennms> list START LEVEL 100 , List Threshold: 50 ID State Blueprint Level Name [ 47] [Active ] [ ] [ 80] OpenNMS OSGi Container - Web Servlet OSGi Bridge (1.11.90.SNAPSHOT) [ 49] [Active ] [ ] [ 80] wrap_mvn_org.vaadin.addons_refresher_1.1.1 (0) [ 50] [Active ] [ ] [ 80] wrap_mvn_org.vaadin.addons_contextmenu_3.1.0 (0) [ 51] [Active ] [ ] [ 80] Vaadin (6.8.2) Fragments: 53 [ 52] [Active ] [ ] [ 80] Pax Vaadin Service (0.1.0.ONMS-20121218) [ 53] [Resolved ] [ ] [ 80] OpenNMS :: Vaadin :: Theme :: Default (1.11.90.SNAPSHOT) Hosts: 51 [ 64] [Resolved ] [ ] [ 80] org.opennms.features.topology.plugins.topo.simple (1.11.90.SNAPSHOT) [ 67] [Active ] [ ] [ 80] NRTG API (1.11.90.SNAPSHOT) [ 68] [Active ] [Created ] [ 80] NRTG ProtocolCollector SNMP (1.11.90.SNAPSHOT) [ 69] [Active ] [Created ] [ 80] NRTG ProtocolCollector TCA (1.11.90.SNAPSHOT) [ 70] [Active ] [Created ] [ 80] NRTG Web Interface (1.11.90.SNAPSHOT) [ 71] [Active ] [Created ] [ 80] NRTG Broker Implementation - Local (1.11.90.SNAPSHOT) [ 72] [Active ] [Creating ] [ 80] OpenNMS Admin UI for SNMP Events and Metrics (1.11.90.SNAPSHOT) [ 73] [Active ] [ ] [ 80] wrap_mvn_org.vaadin.addons_customfield_1.0.0 (0) [ 74] [Active ] [ ] [ 80] wrap_mvn_org.vaadin.addons_messagebox_1.1.1 (0) [ 75] [Active ] [ ] [ 80] OpenNMS Name Cutter (1.11.90.SNAPSHOT) [ 76] [Active ] [ ] [ 80] Commons Lang (2.6) [ 77] [Active ] [ ] [ 80] Commons BeanUtils (1.8.3) [ 78] [Active ] [Created ] [ 80] OpenNMS Node Maps (1.11.90.SNAPSHOT) [ 79] [Active ] [Created ] [ 80] OpenNMS Google Geocoder (1.11.90.SNAPSHOT) [ 80] [Installed ] [ ] [ 80] OpenNMS Nominatim Geocoder (1.11.90.SNAPSHOT) [ 81] [Active ] [ ] [ 80] OpenNMS Geocoder API (1.11.90.SNAPSHOT) [ 82] [Resolved ] [ ] [ 80] org.opennms.features.topology.plugins.topo.vmware (1.11.90.SNAPSHOT) [ 86] [Stopping ] [ ] [ 80] org.opennms.features.topology.plugins.ncs (1.11.90.SNAPSHOT)
Cannot Reproduce

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created March 18, 2013 at 10:32 AM
Updated January 27, 2017 at 4:19 PM
Resolved July 11, 2013 at 11:47 AM

Flag notifications