curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy St. Clair (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CURATOR-82) Possible Test Race Condition in org.apache.curator.framework.recipes.locks.TestInterProcessMutex
Date Thu, 09 Jan 2014 15:20:53 GMT
Timothy St. Clair created CURATOR-82:
----------------------------------------

             Summary: Possible Test Race Condition in org.apache.curator.framework.recipes.locks.TestInterProcessMutex
                 Key: CURATOR-82
                 URL: https://issues.apache.org/jira/browse/CURATOR-82
             Project: Apache Curator
          Issue Type: Test
          Components: Tests
    Affects Versions: 2.2.0-incubating
         Environment: Fedora auto builds
            Reporter: Timothy St. Clair


Periodically we see a race failure, it's not consistent: 

Full ref: https://bugzilla.redhat.com/show_bug.cgi?id=1049903

[snip]
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 144, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1,089.234 sec <<<
FAILURE! - in TestSuite
testReentrant2Threads(org.apache.curator.framework.recipes.locks.TestInterProcessMutex)  Time
elapsed: 10.292 sec  <<< FAILURE!
java.lang.AssertionError: expected [false] but found [true]
	at org.testng.Assert.fail(Assert.java:94)
	at org.testng.Assert.failNotEquals(Assert.java:494)
	at org.testng.Assert.assertFalse(Assert.java:63)
	at org.testng.Assert.assertFalse(Assert.java:73)
	at org.apache.curator.framework.recipes.locks.TestInterProcessMutexBase.testReentrant2Threads(TestInterProcessMutexBase.java:308)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
	at org.testng.TestRunner.privateRun(TestRunner.java:767)
	at org.testng.TestRunner.run(TestRunner.java:617)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
	at org.testng.TestNG.run(TestNG.java:1057)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Results :
Failed tests: 
  TestInterProcessMutex>TestInterProcessMutexBase.testReentrant2Threads:308 expected [false]
but found [true]

[end-snip]



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message