amaliujia opened a new pull request, #1637:
URL: https://github.com/apache/ratis/pull/1637

   ## What changes were proposed in this pull request?
   
   When no host is configured, the gRPC and Netty servers build their bind 
address with new InetSocketAddress(port), which resolves to the IPv6 wildcard 
::. On machines without IPv6 support, such as the GitHub Actions Ubuntu 
runners, the native epoll transport can't bind to that address, so the server 
fails to start.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2744
   
   Discovered from the github job:  
https://github.com/apache/ratis/actions/runs/36123180483/job/108033212253?pr=1614
 with the following tracestack:
   
   ```
   Caused by: 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.GrpcServicesImpl.startImpl(GrpcServicesImpl.java:393)
   at org.apache.ratis.util.LifeCycle.startAndTransition(LifeCycle.java:280)
   at 
org.apache.ratis.server.RaftServerRpcWithProxy.start(RaftServerRpcWithProxy.java:72)
   at 
org.apache.ratis.server.impl.RaftServerProxy.startImpl(RaftServerProxy.java:416)
   at org.apache.ratis.util.LifeCycle.startAndTransition(LifeCycle.java:280)
   at 
org.apache.ratis.server.impl.RaftServerProxy.start(RaftServerProxy.java:409)
   at 
org.apache.ratis.server.impl.MiniRaftCluster.startServers(MiniRaftCluster.java:466)
   at 
org.apache.ratis.server.impl.MiniRaftCluster.start(MiniRaftCluster.java:340)
   at 
org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:144)
   at 
org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:124)
   at 
org.apache.ratis.datastream.DataStreamCommandE2ETestCases.testStreamCommand(DataStreamCommandE2ETestCases.java:66)
   ... 3 more
   Caused by: java.io.IOException: Failed to bind to address 
::/[0:0:0:0:0:0:0:0]:15002
   at 
org.apache.ratis.thirdparty.io.grpc.netty.NettyServer.start(NettyServer.java:347)
   at 
org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl.start(ServerImpl.java:187)
   at 
org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl.start(ServerImpl.java:94)
   at 
org.apache.ratis.grpc.server.GrpcServicesImpl.startImpl(GrpcServicesImpl.java:391)
   ... 13 more
   Caused by: 
org.apache.ratis.thirdparty.io.netty.channel.unix.Errors$NativeIoException: 
bind(..) failed with error(-97): Address family not supported by protocol
   ```
   
   ## How was this patch tested?
   
   Existing test
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to