Another strange stacktrace in agent log

Jay Shaughnessy jshaughn at redhat.com
Thu Jan 30 18:52:28 UTC 2014


I don't think this has changed anytime soon, but since we recurse on the 
children and not necessarily a safe copy of the children, I suppose it's 
possible given that some other thread somehow changes the children list 
while discovery is in progress.  Does that sound feasible to you?

On 1/30/2014 12:44 PM, Thomas Segismont wrote:
> 2014-01-30 18:08:15,378 ERROR [InventoryManager.discovery-1] 
> (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Error in runtime 
> discovery
> java.util.ConcurrentModificationException
>     at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
>     at java.util.HashMap$KeyIterator.next(HashMap.java:960)
>     at 
> org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:292)
>     at 
> org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.discoverForResource(RuntimeDiscoveryExecutor.java:293)
>     at 
> org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.runtimeDiscover(RuntimeDiscoveryExecutor.java:141)
>     at 
> org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:104)
>     at 
> org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call(RuntimeDiscoveryExecutor.java:60)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>     at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>     at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:744)
>
> RuntimeDiscoveryExecutor recent changes:
> * perf improvements
> * async avail checking
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/rhq-devel



More information about the rhq-devel mailing list