Edward Zhang created EAGLE-429: ---------------------------------- Summary: CoordinatorTest.test_01 sometimes fail Key: EAGLE-429 URL: https://issues.apache.org/jira/browse/EAGLE-429 Project: Eagle Issue Type: Bug Affects Versions: v0.5.0 Reporter: Edward Zhang Assignee: Su Ralph Priority: Minor Fix For: v0.5.0
This happens from time to time that test_01 use case fails. 2016-08-08 17:47:48,957 INFO [main-SendThread(localhost:2181)] zookeeper.ClientCnxn[852]: Socket connection established to localhost/127.0.0.1:2181, initiating session 2016-08-08 17:47:48,960 INFO [main-SendThread(localhost:2181)] zookeeper.ClientCnxn[1235]: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x156629bb321002f, negotiated timeout = 10000 2016-08-08 17:47:48,960 INFO [main-EventThread] state.ConnectionStateManager[228]: State change: CONNECTED 2016-08-08 17:47:49,003 ERROR [main-EventThread] listen.ListenerContainer[96]: Listener (org.apache.eagle.alert.config.ConfigBusConsumer$$Lambda$3/1403704789@1fb700ee) threw an exception org.junit.ComparisonFailure: expected:<spec_version_1470703[662789]> but was:<spec_version_1470703[468432]> at org.junit.Assert.assertEquals(Assert.java:115) at org.junit.Assert.assertEquals(Assert.java:144) at org.apache.alert.coordinator.CoordinatorTest$2.onNewConfig(CoordinatorTest.java:117) at org.apache.eagle.alert.config.ConfigBusConsumer.lambda$new$0(ConfigBusConsumer.java:46) at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:294) at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:288) at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:310) at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:84) at org.apache.curator.framework.recipes.cache.NodeCache.setNewData(NodeCache.java:286) at org.apache.curator.framework.recipes.cache.NodeCache.processBackgroundResult(NodeCache.java:253) at org.apache.curator.framework.recipes.cache.NodeCache.access$300(NodeCache.java:54) at org.apache.curator.framework.recipes.cache.NodeCache$3.processResult(NodeCache.java:112) at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:728) at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:505) at org.apache.curator.framework.imps.GetDataBuilderImpl$3.processResult(GetDataBuilderImpl.java:254) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:561) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at org.apache.alert.coordinator.CoordinatorTest.test_01(CoordinatorTest.java:124) 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:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) 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:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) -- This message was sent by Atlassian JIRA (v6.3.4#6332)