Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
TestSecureContainerServer uses random ports and intermittently runs into:
org.apache.ratis.util.ExitUtils$ExitException: Failed to start Grpc server at org.apache.ratis.util.ExitUtils.terminate(ExitUtils.java:141) at org.apache.ratis.util.ExitUtils.terminate(ExitUtils.java:151) at org.apache.ratis.grpc.server.GrpcService.startImpl(GrpcService.java:300) at org.apache.ratis.util.LifeCycle.startAndTransition(LifeCycle.java:270) at org.apache.ratis.server.RaftServerRpcWithProxy.start(RaftServerRpcWithProxy.java:72) at org.apache.ratis.server.impl.RaftServerProxy.startImpl(RaftServerProxy.java:407) at org.apache.ratis.util.LifeCycle.startAndTransition(LifeCycle.java:270) at org.apache.ratis.server.impl.RaftServerProxy.start(RaftServerProxy.java:400) at org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.start(XceiverServerRatis.java:552) at org.apache.hadoop.ozone.container.server.TestSecureContainerServer.runTestClientServer(TestSecureContainerServer.java:250) at org.apache.hadoop.ozone.container.server.TestSecureContainerServer.runTestClientServerRatis(TestSecureContainerServer.java:223) at org.apache.hadoop.ozone.container.server.TestSecureContainerServer.testClientServerRatisGrpc(TestSecureContainerServer.java:201) ... Caused by: java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:44005 at org.apache.ratis.thirdparty.io.grpc.netty.NettyServer.start(NettyServer.java:326) at org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl.start(ServerImpl.java:185) at org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl.start(ServerImpl.java:94) at org.apache.ratis.grpc.server.GrpcService.startImpl(GrpcService.java:298) ... 53 more Caused by: org.apache.ratis.thirdparty.io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use