YARN-8211. Yarn registry dns log finds BufferUnderflowException on port ping. Contributed by Eric Yang
This commit is contained in:
parent
914d6b5cb1
commit
9ab3f97089
@ -76,6 +76,7 @@
|
|||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
|
import java.nio.BufferUnderflowException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.channels.DatagramChannel;
|
import java.nio.channels.DatagramChannel;
|
||||||
import java.nio.channels.ServerSocketChannel;
|
import java.nio.channels.ServerSocketChannel;
|
||||||
@ -802,6 +803,8 @@ public void nioTCPClient(SocketChannel ch) throws IOException {
|
|||||||
ch.socket().getPort(),
|
ch.socket().getPort(),
|
||||||
ch.socket().getLocalAddress().getHostName(),
|
ch.socket().getLocalAddress().getHostName(),
|
||||||
ch.socket().getLocalPort(), e);
|
ch.socket().getLocalPort(), e);
|
||||||
|
} catch (BufferUnderflowException e) {
|
||||||
|
// Ignore system monitor ping packets
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeStream(ch);
|
IOUtils.closeStream(ch);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user