java.lang.AssertionError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • https://github.com/joaquincasares/java-driver/commit/a2a3f8890fc32ce4009c7889c90f34eccee48c14 This is unlike the issues that we've had before. Since the last issue was patched everything was working fine, aside from the race conditions that would last at most a few seconds. This new issue is that the waitFor* code can take as long as 250+ seconds before a node comes online. A 200 second delay handled a large number of cases, yet a 250 second delay handles all but typically 1 or 2. This also impacts the overall time it takes for tests to complete. The following issues tend to occur within the Reconnection and Retry Policy tests due to this new increase as well: {CODE} constantReconnectionPolicyTest(com.datastax.driver.core.ReconnectionPolicyTest) Time elapsed: 78.054 sec <<< FAILURE! java.lang.AssertionError: Waited 70 seconds instead an expected 40 seconds wait expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at com.datastax.driver.core.ReconnectionPolicyTest.reconnectionPolicyTest(ReconnectionPolicyTest.java:161) at com.datastax.driver.core.ReconnectionPolicyTest.constantReconnectionPolicyTest(ReconnectionPolicyTest.java:119) exponentialReconnectionPolicyTest(com.datastax.driver.core.ReconnectionPolicyTest) Time elapsed: 70.081 sec <<< FAILURE! java.lang.AssertionError: Waited 62 seconds instead an expected 30 seconds wait expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at com.datastax.driver.core.ReconnectionPolicyTest.reconnectionPolicyTest(ReconnectionPolicyTest.java:161) at com.datastax.driver.core.ReconnectionPolicyTest.exponentialReconnectionPolicyTest(ReconnectionPolicyTest.java:82) defaultLoggingPolicy(com.datastax.driver.core.RetryPolicyTest) Time elapsed: 430.156 sec <<< FAILURE! java.lang.IllegalStateException: 127.0.1.2 is not DOWN after 250s at com.datastax.driver.core.TestUtils.waitFor(TestUtils.java:337) at com.datastax.driver.core.TestUtils.waitForDownWithWait(TestUtils.java:275) at com.datastax.driver.core.RetryPolicyTest.defaultPolicyTest(RetryPolicyTest.java:219) at com.datastax.driver.core.RetryPolicyTest.defaultLoggingPolicy(RetryPolicyTest.java:76) {CODE}
    via by Joaquin Casares,
  • https://github.com/joaquincasares/java-driver/commit/a2a3f8890fc32ce4009c7889c90f34eccee48c14 This is unlike the issues that we've had before. Since the last issue was patched everything was working fine, aside from the race conditions that would last at most a few seconds. This new issue is that the waitFor* code can take as long as 250+ seconds before a node comes online. A 200 second delay handled a large number of cases, yet a 250 second delay handles all but typically 1 or 2. This also impacts the overall time it takes for tests to complete. The following issues tend to occur within the Reconnection and Retry Policy tests due to this new increase as well: {CODE} constantReconnectionPolicyTest(com.datastax.driver.core.ReconnectionPolicyTest) Time elapsed: 78.054 sec <<< FAILURE! java.lang.AssertionError: Waited 70 seconds instead an expected 40 seconds wait expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at com.datastax.driver.core.ReconnectionPolicyTest.reconnectionPolicyTest(ReconnectionPolicyTest.java:161) at com.datastax.driver.core.ReconnectionPolicyTest.constantReconnectionPolicyTest(ReconnectionPolicyTest.java:119) exponentialReconnectionPolicyTest(com.datastax.driver.core.ReconnectionPolicyTest) Time elapsed: 70.081 sec <<< FAILURE! java.lang.AssertionError: Waited 62 seconds instead an expected 30 seconds wait expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at com.datastax.driver.core.ReconnectionPolicyTest.reconnectionPolicyTest(ReconnectionPolicyTest.java:161) at com.datastax.driver.core.ReconnectionPolicyTest.exponentialReconnectionPolicyTest(ReconnectionPolicyTest.java:82) defaultLoggingPolicy(com.datastax.driver.core.RetryPolicyTest) Time elapsed: 430.156 sec <<< FAILURE! java.lang.IllegalStateException: 127.0.1.2 is not DOWN after 250s at com.datastax.driver.core.TestUtils.waitFor(TestUtils.java:337) at com.datastax.driver.core.TestUtils.waitForDownWithWait(TestUtils.java:275) at com.datastax.driver.core.RetryPolicyTest.defaultPolicyTest(RetryPolicyTest.java:219) at com.datastax.driver.core.RetryPolicyTest.defaultLoggingPolicy(RetryPolicyTest.java:76) {CODE}
    via by Joaquin Casares,
  • Full run through
    via GitHub by aajenkins
    ,
  • Full run through for Dave
    via GitHub by aajenkins
    ,
  • picard tests fail sometimes
    via GitHub by akiezun
    ,
  • GitHub comment 8#75818084
    via GitHub by bermud
    ,
  • [CURATOR-260] Fix tests in CURATOR-3.0 - ASF JIRA
    via by Unknown author,
  • test OnExitTest.test2(): failure java.lang.AssertionError: spawned process should have been in children expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at OnExitTest.lambda$test2$4(OnExitTest.java:152) at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1609) at OnExitTest.test2(OnExitTest.java:151) 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:520) 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 com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220) at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:184) 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:520) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(Thread.java:804) =============================================== java/lang/ProcessHandle/OnExitTest.java Total tests run: 2, Failures: 1, Skips: 0 =============================================== ----------System.err:(19/1010)---------- Error occurred during initialization of VM java.lang.NoClassDefFoundError: java/lang/System$2 at java.lang.System.setJavaLangAccess(System.java:1872) at java.lang.System.initializeSystemClass(System.java:1861) java.lang.Exception: failures: 1 at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:223) at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:184) 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:520) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(Thread.java:804) JavaTest Message: Test threw exception: java.lang.Exception: failures: 1 JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
    via by Harsha Wardhana B,
  • {panel:title=TestSessionFailRetryLoop fails intermittently (needed some sleep due to new speed of KillSession)} Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.748 sec <<< FAILURE! - in org.apache.curator.TestSessionFailRetryLoop testBasic(org.apache.curator.TestSessionFailRetryLoop) Time elapsed: 0.182 sec <<< FAILURE! java.lang.AssertionError: null at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.fail(Assert.java:101) at org.apache.curator.TestSessionFailRetryLoop.testBasic(TestSessionFailRetryLoop.java:216) {panel} {panel:title=testKillSession (killed sessions go directly to LOST)} testKillSession(org.apache.curator.framework.imps.TestEnabledSessionExpiredState) Time elapsed: 0.097 sec <<< FAILURE! java.lang.AssertionError: expected [SUSPENDED] but found [LOST] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertEquals(Assert.java:123) at org.testng.Assert.assertEquals(Assert.java:165) at org.apache.curator.framework.imps.TestEnabledSessionExpiredState.testKillSession(TestEnabledSessionExpiredState.java:127) {panel} {panel:title=TestFramework.teardown (ignore any shutdown errors)} Tests run: 173, Failures: 1, Errors: 0, Skipped: 171, Time elapsed: 2.676 sec <<< FAILURE! - in org.apache.curator.framework.imps.TestFramework teardown(org.apache.curator.framework.imps.TestFramework) Time elapsed: 0.023 sec <<< FAILURE! java.lang.NullPointerException: null at org.apache.zookeeper.server.ZooKeeperServerMain.shutdown(ZooKeeperServerMain.java:147) at org.apache.curator.test.TestingZooKeeperMain.close(TestingZooKeeperMain.java:122) at org.apache.curator.test.TestingZooKeeperServer.stop(TestingZooKeeperServer.java:110) at org.apache.curator.test.TestingZooKeeperServer.close(TestingZooKeeperServer.java:122) at org.apache.curator.test.TestingServer.close(TestingServer.java:183) at org.apache.curator.test.BaseClassForTests.teardown(BaseClassForTests.java:140) at org.apache.curator.framework.imps.TestFramework.teardown(TestFramework.java:71) {panel} {panel:title=TestEnabledSessionExpiredState.testKillSession} Failed tests: TestEnabledSessionExpiredState.testKillSession:127 expected [SUSPENDED] but found [LOST] TestFramework.teardown:71->BaseClassForTests.teardown:140 » NullPointer {panel} {panel:title=flappingTest (ChaosMonkeyCnxnFactory didn't know about create2 opcode)} Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 79.297 sec <<< FAILURE! - in org.apache.curator.framework.recipes.leader.TestLeaderSelectorEdges flappingTest(org.apache.curator.framework.recipes.leader.TestLeaderSelectorEdges) Time elapsed: 10.278 sec <<< FAILURE! java.lang.AssertionError: Connection has not been lost expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at org.apache.curator.framework.recipes.leader.TestLeaderSelectorEdges.flappingTest(TestLeaderSelectorEdges.java:88) {panel} {panel:title=TestPersistentEphemeralNode (sleep a bit so that session can actually expire)} Tests run: 40, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 312.767 sec <<< FAILURE! - in org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode testRecreatesNodeWhenSessionReconnectsMultipleTimes(org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode) Time elapsed: 85.994 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at org.testng.Assert.assertTrue(Assert.java:52) at org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode.testRecreatesNodeWhenSessionReconnectsMultipleTimes(TestPersistentEphemeralNode.java:382) {panel} {panel:title=testCallbackNotifyLeader (seems intermittent - watch it)} testCallbackNotifyLeader(org.apache.curator.framework.recipes.leader.TestLeaderLatch) Time elapsed: 0.053 sec <<< FAILURE! java.lang.AssertionError: expected [17] but found [16] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertEquals(Assert.java:123) at org.testng.Assert.assertEquals(Assert.java:265) at org.testng.Assert.assertEquals(Assert.java:275) at org.apache.curator.framework.recipes.leader.TestLeaderLatch.testCallbackNotifyLeader(TestLeaderLatch.java:658) {panel}
    via by Jordan Zimmerman,
    • java.lang.AssertionError: Waited 70 seconds instead an expected 40 seconds wait expected [true] but found [false] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertTrue(Assert.java:42) at com.datastax.driver.core.ReconnectionPolicyTest.reconnectionPolicyTest(ReconnectionPolicyTest.java:161) at com.datastax.driver.core.ReconnectionPolicyTest.constantReconnectionPolicyTest(ReconnectionPolicyTest.java:119)

    Users with the same issue

    arturgajowy
    101 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    13 more bugmates