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,



 
&nbsp;
 
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 ,&nbsp; 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 . 
 
&nbsp;
 
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 ?&nbsp; Those exception stacktraces are not good for production usage.
 
&nbsp;
 
&nbsp;
 
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
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.IgniteUtils.close(IgniteUtils.java:4231)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.closeKey(GridNioServer.java:2784)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.close(GridNioServer.java:2835)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.close(GridNioServer.java:2794)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1357)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2508)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2273)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1910)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; at java.lang.Thread.run(Thread.java:748)&nbsp;&nbsp; &nbsp; 
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
Thanks,
 
MJ