[ https://issues.apache.org/jira/browse/FLINK-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14848542#comment-14848542 ]
ASF GitHub Bot commented on FLINK-2696: --------------------------------------- GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/1144 [FLINK-2696] [test-stability] Hardens ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest The test case `ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest` failed, because the ZooKeeper client could not connect to the ZooKeeper server. I suspect that this might be caused by contention of multiple test cases for the same port to bind to. Internally, Curator's `TestingServer` is started with a port which has been determined using `NetUtils.getAvailablePort`. Since the port is not directly bound, it is possible that another process uses the determined port and, thus, preventing the `TestingServer` from starting. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tillrohrmann/flink fixZookeeperOffsetHandlerTest Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/1144.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1144 ---- commit 5889624ab6d345ced0be59bb71ca3dc3c84de0e1 Author: Till Rohrmann <trohrm...@apache.org> Date: 2015-09-18T12:28:56Z [FLINK-2696] [test-stability] Hardens ZookeeperOffsetHandlerTest by letting Curator's TestingServer select the port to bind to instead of using NetUtils.getAvailablePort. ---- > ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest failed on > Travis > -------------------------------------------------------------------------------- > > Key: FLINK-2696 > URL: https://issues.apache.org/jira/browse/FLINK-2696 > Project: Flink > Issue Type: Bug > Reporter: Till Rohrmann > Priority: Critical > Labels: test-stability > > The {{ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest}} > failed on Travis with > {code} > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running > org.apache.flink.streaming.connectors.kafka.KafkaConsumerPartitionAssignmentTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.18 sec - in > org.apache.flink.streaming.connectors.kafka.KafkaConsumerPartitionAssignmentTest > Running > org.apache.flink.streaming.connectors.kafka.internals.ZookeeperOffsetHandlerTest > org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to > zookeeper server within timeout: 20000 > at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98) > at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:84) > at > org.apache.flink.streaming.connectors.kafka.KafkaTestBase.createZookeeperClient(KafkaTestBase.java:278) > at > org.apache.flink.streaming.connectors.kafka.internals.ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest(ZookeeperOffsetHandlerTest.java:44) > 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:483) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) > 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:309) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) > at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 43.695 sec > <<< FAILURE! - in > org.apache.flink.streaming.connectors.kafka.internals.ZookeeperOffsetHandlerTest > runOffsetManipulationinZooKeeperTest(org.apache.flink.streaming.connectors.kafka.internals.ZookeeperOffsetHandlerTest) > Time elapsed: 21.258 sec <<< FAILURE! > java.lang.AssertionError: Unable to connect to zookeeper server within > timeout: 20000 > at org.junit.Assert.fail(Assert.java:88) > at > org.apache.flink.streaming.connectors.kafka.internals.ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest(ZookeeperOffsetHandlerTest.java:57) > Running org.apache.flink.streaming.connectors.kafka.KafkaConsumerTest > Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.385 sec - > in org.apache.flink.streaming.connectors.kafka.KafkaConsumerTest > Running org.apache.flink.streaming.connectors.kafka.TestFixedPartitioner > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - > in org.apache.flink.streaming.connectors.kafka.TestFixedPartitioner > Results : > Failed tests: > ZookeeperOffsetHandlerTest.runOffsetManipulationinZooKeeperTest:57 Unable > to connect to zookeeper server within timeout: 20000 > {code} > https://s3.amazonaws.com/archive.travis-ci.org/jobs/80770637/log.txt -- This message was sent by Atlassian JIRA (v6.3.4#6332)