[jboss-jira] [JBoss JIRA] (JGRP-1996) org.jgroups.tests.QueueTest.testBarrierWithTimeOut fails on several configurations

Ivan Straka (JIRA) issues at jboss.org
Tue Dec 15 07:48:00 EST 2015


Ivan Straka created JGRP-1996:
---------------------------------

             Summary: org.jgroups.tests.QueueTest.testBarrierWithTimeOut fails on several configurations
                 Key: JGRP-1996
                 URL: https://issues.jboss.org/browse/JGRP-1996
             Project: JGroups
          Issue Type: Bug
            Reporter: Ivan Straka
            Assignee: Bela Ban


org.jgroups.tests.QueueTest.testBarrierWithTimeOut fails on several configurations
actual num_dead differs on some configurations

{code:java}
Error Message

num_dead should have been 10 but was 9

Stacktrace


java.lang.AssertionError 
at org.jgroups.tests.QueueTest.testBarrierWithTimeOut(QueueTest.java:666) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:497) 
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) 
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639) 
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816) 
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124) 
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) 
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) 
at org.testng.TestRunner.privateRun(TestRunner.java:774) 
at org.testng.TestRunner.run(TestRunner.java:624) 
at org.testng.SuiteRunner.runTest(SuiteRunner.java:359) 
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) 
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) 
at org.testng.SuiteRunner.run(SuiteRunner.java:261) 
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) 
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215) 
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140) 
at org.testng.TestNG.run(TestNG.java:1048) 
at org.testng.TestNG.privateMain(TestNG.java:1355) 
at org.testng.TestNG.main(TestNG.java:1324) 


        

Standard Output



------------- testAddAll -----------
queue is Queue (3) elements


------------- testBarrier -----------
-- adding element 99
-- adding element 100
remover #0 is alive
remover #1 is alive
remover #2 is alive
remover #3 is alive
remover #4 is alive
remover #5 is alive
remover #6 is alive
remover #7 is terminated
remover #8 is alive
remover #9 is terminated


------------- testBarrierWithTimeOut -----------
-- adding element 99
-- adding element 100
Thread #9: retrieved 99
remover #0 is alive
Thread #8: retrieved 100
remover #1 is alive
remover #2 is alive
remover #3 is alive
remover #4 is alive
remover #5 is alive
remover #6 is alive
remover #7 is alive
remover #8 is terminated
remover #9 is terminated
closing queue - causing all remaining threads to terminate
Thread #0: queue was closed
Thread #1: queue was closed
remover #0 is alive
Thread #5: queue was closed
Thread #4: queue was closed
Thread #3: queue was closed
Thread #2: queue was closed
Thread #7: queue was closed
remover #1 is terminated
remover #2 is terminated
remover #3 is terminated
remover #4 is terminated
remover #5 is terminated
remover #6 is alive
remover #7 is terminated
remover #8 is terminated
remover #9 is terminated
Thread #6: queue was closed


------------- testClear -----------


------------- testCloseWithFlush -----------


------------- testCloseWithFlush2 -----------


------------- testCloseWithoutFlush -----------


------------- testConcurrentAccess -----------
current queue size=139
current queue size=155
Thread #0: 102 writes, 185 reads
Thread #1: 86 writes, 61 reads
Thread #2: 161 writes, 67 reads
Thread #3: 78 writes, 65 reads
Thread #4: 73 writes, 52 reads
Thread #5: 129 writes, 70 reads
Thread #6: 29 writes, 51 reads
Thread #7: 47 writes, 30 reads
Thread #8: 24 writes, 17 reads
Thread #9: 28 writes, 4 reads
total writes=757, total_reads=602, diff=155


------------- testConcurrentAddRemove -----------
time to add/remove 1000000 elements: 609


------------- testEmptyQueue -----------


------------- testInsertionAndRemoval -----------
o1=Q1, o2=Q1, o1.equals(o2)=true


------------- testInterruptAndRemove -----------


------------- testLargeInsertion -----------
Inserting 100000 elements
Took 11 msecs
Removing 100000 elements
Took 6 msecs


------------- testMultipleWriterOneReader -----------
adder #0 is terminated
adder #1 is terminated
adder #2 is terminated
adder #3 is terminated
adder #4 is terminated
adder #5 is terminated
adder #6 is terminated
adder #7 is terminated
adder #8 is terminated
adder #9 is terminated


------------- testQueue -----------


------------- testRemoveAndClose -----------


------------- testRemoveAndCloseWithTimeout -----------


------------- testRemoveAndInterrupt -----------
-- removing element
-- closing queue


------------- testRemoveElementNoElement -----------


------------- testRemoveElementOneElement -----------


------------- testRemoveElementThreeElementsFirstFound -----------


------------- testRemoveElementThreeElementsSecondFound -----------


------------- testRemoveElementThreeElementsThirdFound -----------


------------- testRemoveElementTwoElementsFirstFound -----------


------------- testRemoveElementTwoElementsSecondFound -----------


------------- testValues -----------
queue: 1
3
99
8



------------- testWaitUntilClosed -----------


------------- testWaitUntilClosed2 -----------


------------- testWaitUntilClosed3 -----------


------------- testWaitUntilClosed4 -----------
-- removed 0
-- removed 1
-- removed 2
-- removed 3
-- removed 4
-- removed 5
-- removed 6
-- removed 7
-- removed 8
-- removed 9


------------- testWaitUntilClosed5 -----------
-- removed 0
-- removed 1
-- removed 2


Standard Error

Thread #2: queue was closed
Thread #4: queue was closed
java.lang.InterruptedException



{code}




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list