[JBoss JIRA] Created: (JBAS-4160) failing org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase
by Dimitris Andreadis (JIRA)
failing org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase
---------------------------------------------------------------
Key: JBAS-4160
URL: http://jira.jboss.com/jira/browse/JBAS-4160
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Other
Reporter: Dimitris Andreadis
Assigned To: Dimitris Andreadis
Priority: Critical
Fix For: JBossAS-4.2.0.CR1
The test timeouts.
Testsuite: org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
Testcase: unknown took 0 sec
Caused an ERROR
Timeout occurred
junit.framework.AssertionFailedError: Timeout occurred
test.log:
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=1
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,832 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=3
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test2
2007-02-28 01:59:33,832 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test3
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test2
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test3
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,842 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=1
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test2
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test2
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,842 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=2
2007-02-28 01:59:33,842 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitForReleaseStarted, data=test1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test2
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test2
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=2
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:33,852 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:33,852 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitForReleaseStarted, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:34,853 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitForReleaseStarted, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test2
2007-02-28 01:59:34,853 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:34,853 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test1
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=1
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitForReleaseStarted, data=test1
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin spin loop
2007-02-28 01:59:34,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin sleep
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyFinished, data=test1
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] End run
2007-02-28 01:59:44,867 DEBUG [org.jboss.util.threadpool.BasicThreadPool] stop, immediate=true
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin run
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] notifyStarted, data=test1
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test1
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitForReleaseStarted, data=test1
2007-02-28 01:59:44,867 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Begin spin loop
2007-02-28 01:59:55,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitStarted, target=1
2007-02-28 01:59:55,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] releaseStarted, data=test2
2007-02-28 01:59:55,863 INFO [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] waitFinished, target=1
2007-02-28 01:59:55,883 WARN [org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase] Caught throwable
java.lang.ThreadDeath
at java.lang.Thread.stop(Thread.java:698)
at org.jboss.util.threadpool.RunnableTaskWrapper.stopTask(RunnableTaskWrapper.java:122)
at org.jboss.util.threadpool.BasicThreadPool$TimeoutInfo.stopTask(BasicThreadPool.java:517)
at org.jboss.util.threadpool.BasicThreadPool$TimeoutMonitor.run(BasicThreadPool.java:579)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[JBoss JIRA] Created: (JBAS-4075) JBossCacheManager.findLocalSessions concurrency issue
by Hany Mesha (JIRA)
JBossCacheManager.findLocalSessions concurrency issue
-----------------------------------------------------
Key: JBAS-4075
URL: http://jira.jboss.com/jira/browse/JBAS-4075
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.0.5.GA
Environment: SLES 9, SP3.
JBOSS 4.0.5.GA
Reporter: Hany Mesha
Assigned To: Brian Stansberry
When running a load test on a JBoss Cluster I see the following exception
2007‑02‑06 14:23:58,231 ERROR
[org.jboss.web.tomcat.tc5.session.JBossCacheManager:processExpires]
processExpires: failed with exception: java.util.NoSuchElementException
java.util.NoSuchElementException
at
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$HashIterator.next(ConcurrentHashMap.java:1131)
at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
at
org.jboss.web.tomcat.tc5.session.JBossCacheManager.findLocalSessions(JBossCacheManager.java:851)
at
org.jboss.web.tomcat.tc5.session.JBossCacheManager.processExpires(JBossCacheManager.java:1188)
at
org.jboss.web.tomcat.tc5.session.JBossManager.backgroundProcess(JBossManager.java:817)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
at java.lang.Thread.run(Thread.java:595)
Upon further investigation and looking at the source code of JBossCacheManager in 4.0 branch, the method findLocalSessions() suffers from concurrency issue when calling java.util.AbstractCollection.toArray(Object[] array) which is not thread safe.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months