UnknowHostException cannot recover when network is back but restart JVM solved it
问题 From one timepoint, our JVM(In fact a Yarn NodeManager) start to report UnknownHostException; It is reported by JVM code return InetAddress.getByName(host); for the next more than 2 days, the exception always exists; During the time it is reporting this error, I do the following test: During the error happening, ping could succeed and get the IP address(Very weird); During the error, I write a simple test case to check the hostname resolve, it also could succeeded: After we restarted the JVM,