You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kezhu Wang (Jira)" <ji...@apache.org> on 2021/01/12 14:19:00 UTC

[jira] [Commented] (FLINK-20523) OffsetsInitializerTest test failed with "java.net.BindException: Address already in use"

    [ https://issues.apache.org/jira/browse/FLINK-20523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17263359#comment-17263359 ] 

Kezhu Wang commented on FLINK-20523:
------------------------------------

I think it is caused by CURATOR-535. {{org.apache.curator.test.InstanceSpec.getRandomPort}} is cheating.

> OffsetsInitializerTest test failed with "java.net.BindException: Address already in use"
> ----------------------------------------------------------------------------------------
>
>                 Key: FLINK-20523
>                 URL: https://issues.apache.org/jira/browse/FLINK-20523
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Kafka
>    Affects Versions: 1.12.0, 1.13.0
>            Reporter: Huang Xingbo
>            Priority: Major
>              Labels: test-stability
>
> [https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=10597&view=logs&j=c5f0071e-1851-543e-9a45-9ac140befc32&t=1fb1a56f-e8b5-5a82-00a0-a2db7757b4f5]
> {code:java}
> 2020-12-07T16:26:03.5696966Z [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.011 s <<< FAILURE! - in org.apache.flink.connector.kafka.source.enumerator.initializer.OffsetsInitializerTest
> 2020-12-07T16:26:03.5702474Z [ERROR] org.apache.flink.connector.kafka.source.enumerator.initializer.OffsetsInitializerTest  Time elapsed: 2.011 s  <<< ERROR!
> 2020-12-07T16:26:03.5712217Z java.net.BindException: Address already in use
> 2020-12-07T16:26:03.5712769Z 	at sun.nio.ch.Net.bind0(Native Method)
> 2020-12-07T16:26:03.5713147Z 	at sun.nio.ch.Net.bind(Net.java:461)
> 2020-12-07T16:26:03.5713555Z 	at sun.nio.ch.Net.bind(Net.java:453)
> 2020-12-07T16:26:03.5714096Z 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:222)
> 2020-12-07T16:26:03.5714673Z 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:85)
> 2020-12-07T16:26:03.5715245Z 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:78)
> 2020-12-07T16:26:03.5715890Z 	at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:90)
> 2020-12-07T16:26:03.5716585Z 	at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:120)
> 2020-12-07T16:26:03.5717279Z 	at org.apache.curator.test.TestingZooKeeperMain.runFromConfig(TestingZooKeeperMain.java:93)
> 2020-12-07T16:26:03.5717957Z 	at org.apache.curator.test.TestingZooKeeperServer$1.run(TestingZooKeeperServer.java:148)
> 2020-12-07T16:26:03.5718486Z 	at java.lang.Thread.run(Thread.java:748)
> 2020-12-07T16:26:03.5718766Z 
> 2020-12-07T16:26:03.5719289Z [ERROR] org.apache.flink.connector.kafka.source.enumerator.initializer.OffsetsInitializerTest  Time elapsed: 2.011 s  <<< ERROR!
> 2020-12-07T16:26:03.5719896Z java.lang.NullPointerException
> 2020-12-07T16:26:03.5720659Z 	at org.apache.flink.connector.kafka.source.enumerator.initializer.OffsetsInitializerTest.tearDown(OffsetsInitializerTest.java:60)
> 2020-12-07T16:26:03.5721565Z 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2020-12-07T16:26:03.5722148Z 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 2020-12-07T16:26:03.5722806Z 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 2020-12-07T16:26:03.5723381Z 	at java.lang.reflect.Method.invoke(Method.java:498)
> 2020-12-07T16:26:03.5723940Z 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 2020-12-07T16:26:03.5724417Z 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 2020-12-07T16:26:03.5725153Z 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 2020-12-07T16:26:03.5725608Z 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
> 2020-12-07T16:26:03.5726019Z 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 2020-12-07T16:26:03.5726429Z 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> 2020-12-07T16:26:03.5727029Z 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> 2020-12-07T16:26:03.5727524Z 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> 2020-12-07T16:26:03.5727986Z 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> 2020-12-07T16:26:03.5728491Z 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
> 2020-12-07T16:26:03.5729009Z 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
> 2020-12-07T16:26:03.5729467Z 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
> 2020-12-07T16:26:03.5729910Z 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)