ptyin opened a new issue, #12: URL: https://github.com/apache/incubator-seata-k8s/issues/12
Pods managed by seata-server StatefulSet sometimes fail to start. The detail error stack is as follow: ``` java.lang.RuntimeException: java.net.UnknownHostException: seata-server-0.seata-server-cluster: Name or service not known at io.seata.common.util.NetUtil.convertIpIfNecessary(NetUtil.java:330) at io.seata.common.util.NetUtil.isValidIp(NetUtil.java:309) at io.seata.server.Server.start(Server.java:68) at io.seata.server.ServerRunner.run(ServerRunner.java:60) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:765) at org.springframework.boot.SpringApplication.lambda$callRunners$2(SpringApplication.java:749) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:744) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) at io.seata.server.ServerApplication.main(ServerApplication.java:30) Caused by: java.net.UnknownHostException: seata-server-0.seata-server-cluster: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1330) at java.net.InetAddress.getAllByName0(InetAddress.java:1283) at java.net.InetAddress.getAllByName(InetAddress.java:1199) at java.net.InetAddress.getAllByName(InetAddress.java:1127) at java.net.InetAddress.getByName(InetAddress.java:1077) at io.seata.common.util.NetUtil.convertIpIfNecessary(NetUtil.java:328) ... 18 common frames omitted ``` The underlying reason is that seata-server would call `NetUtil.convertIpIfNecessary` method to translate host name of the headless service subdomain, e.g., "seata-server-0.seata-server-cluster". However, the coredns service may not add the service name registry yet, leading to the occasional `UnknownHostException`. -- 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: dev-unsubscr...@seata.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@seata.apache.org For additional commands, e-mail: dev-h...@seata.apache.org