You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by MJ <67...@qq.com> on 2021/11/03 03:27:42 UTC
frequent "Failed to shutdown socket" warnings in 2.11.0
Hi,
I experienced frequent "Failed to shutdown socket" warnings (see below) in testing ignite 2.11.0.
Compared org.apache.ignite.internal.util.IgniteUtils 2.11.0 (line:4227) vs 2.10.0 , the method( public static void close(@Nullable Socket sock, @Nullable IgniteLogger log) ) is newly added. Not sure if these methods close/closeQuiet ’s related to IGNITE_QUIET setting but it’s always throwing below warnings no matter IGNITE_QUIET is true or false .
And yes those warnings can be suppressed by setting logging level to ERROR. I am not sure if that’s the issue in my code or just flaw in ignite. But is there any other way to gracefully clean up them by coding ? Those exception stacktraces are not good for production usage.
2021-11-03 08:33:05,745 [ WARN] [grid-nio-worker-client-listener-2-#34%ignitePoc_primary%] org.apache.ignite.internal.processors.odbc.ClientListenerProcessor - Failed to shutdown socket: null
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)
at org.apache.ignite.internal.util.IgniteUtils.close(IgniteUtils.java:4231)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.closeKey(GridNioServer.java:2784)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.close(GridNioServer.java:2835)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.close(GridNioServer.java:2794)
at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1357)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2508)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2273)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1910)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.lang.Thread.run(Thread.java:748)
Thanks,
MJ