caiconghui opened a new issue #3671:
URL: https://github.com/apache/incubator-doris/issues/3671


   Now, the connection timeout and socket timeout is set to be 0 which may 
cause many threads stuck in  java.net.SocketInputStream.socketRead0 and can 
never be reused.
   The Problem is like the following:
   "thrift-server-pool-2493" #2999 daemon prio=5 os_prio=0 
tid=0x00007f77341e2000 nid=0x3b5c runnable [0x00007f750501e000]
      java.lang.Thread.State: RUNNABLE
           at java.net.SocketInputStream.socketRead0(Native Method)
           at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
           at java.net.SocketInputStream.read(SocketInputStream.java:171)
           at java.net.SocketInputStream.read(SocketInputStream.java:141)
           at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
           at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
           at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
           - locked <0x000000071d55df60> (a java.io.BufferedInputStream)
           at 
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
           at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
           at 
org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429)
           at 
org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318)
           at 
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219)
           at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
           at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   
   When thrift client crash or encounter some network problem , the thrift 
server pool thread may stuck in  java.net.SocketInputStream.socketRead0 which 
cause the connection leak, so we need a thrift_client_timeout_ms config to 
prevent this problem.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to