You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "lordk911 (via GitHub)" <gi...@apache.org> on 2023/10/27 03:05:39 UTC

[I] [Bug] java.io.IOException: Connection reset by peer [doris]

lordk911 opened a new issue, #25997:
URL: https://github.com/apache/doris/issues/25997

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   Doris 1.2.6
   
   
   ### What's Wrong?
   
   `fe.audit.log.20231027-3:2023-10-27 09:15:25,530 [query] |Client=10.0.x.21:45578|User=u_gcompass|Db=db_gcompass|State=ERR|ErrorCode=1105|ErrorMessage=Doris process failed|Time=795|ScanBytes=0|ScanRows=0|ReturnRows=18327|StmtId=9747042|QueryId=8ccb44713d6f4983-b79ecb84462815cc|IsQuery=true|feIp=10.0.x.20|Stmt=select x  from a  where b|CpuTimeMS=0|SqlHash=930b471f0afdc3df43fa3afccf41bf73|peakMemoryBytes=0|SqlDigest=|TraceId=|FuzzyVariables=`
   
   
   fe.warn.log: 
   ```
   2023-10-27 09:15:04,054 WARN (thrift-server-pool-7225|120849) [ThreadPoolManager$LogDiscardOldestPolicy.rejectedExecution():238] Task: java.util.concurrent.FutureTask@138f110c submit to profile-write-pool, and discard the oldest task:java.util.concurrent.FutureTask@1d48ed0d
   2023-10-27 09:15:19,543 WARN (mysql-nio-pool-51758|121801) [ReadListener.lambda$handleEvent$0():60] Exception happened in one session(org.apache.doris.qe.ConnectContext@665f216c).
   java.io.IOException: Connection reset by peer
           at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:1.8.0_281]
           at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_281]
           at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:469) ~[?:1.8.0_281]
           at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) ~[xnio-nio-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.channels.Channels.writeBlocking(Channels.java:147) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:355) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:385) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.sendAndFlush(MysqlChannel.java:455) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.finalizeCommand(ConnectProcessor.java:535) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:702) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_281]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_281]
           at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_281]
   2023-10-27 09:15:25,528 WARN (mysql-nio-pool-51758|121801) [StmtExecutor.sendResult():1212] cancel fragment query_id:8ccb44713d6f4983-b79ecb84462815cc cause Connection reset by peer
   2023-10-27 09:15:25,529 WARN (mysql-nio-pool-51758|121801) [Coordinator.cancel():959] cancel execution of query, this is outside invoke
   2023-10-27 09:15:25,529 WARN (mysql-nio-pool-51758|121801) [StmtExecutor.execute():582] execute IOException. stmt[9747042, 8ccb44713d6f4983-b79ecb84462815cc]
   java.io.IOException: Connection reset by peer
           at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:1.8.0_281]
           at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_281]
           at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:469) ~[?:1.8.0_281]
           at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) ~[xnio-nio-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.channels.Channels.writeBlocking(Channels.java:147) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:355) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:385) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.writeBuffer(MysqlChannel.java:415) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:448) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1179) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1122) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:522) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:409) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:330) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:473) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:700) ~[doris-fe.jar:1.2-SNAPSHOT]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_281]
           at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_281]
   2023-10-27 09:15:25,530 WARN (mysql-nio-pool-51758|121801) [ConnectProcessor.handleQueryException():360] Process one query failed because IOException:
   java.io.IOException: Connection reset by peer
           at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:1.8.0_281]
           at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_281]
           at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:469) ~[?:1.8.0_281]
           at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) ~[xnio-nio-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.channels.Channels.writeBlocking(Channels.java:147) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:355) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:385) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.writeBuffer(MysqlChannel.java:415) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:448) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1179) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1122) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:522) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:409) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:330) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:473) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:700) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_281]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_281]
           at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_281]
   2023-10-27 09:15:25,530 WARN (mysql-nio-pool-51758|121801) [ReadListener.lambda$handleEvent$0():60] Exception happened in one session(org.apache.doris.qe.ConnectContext@529bc17c).
   java.io.IOException: Broken pipe
           at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:1.8.0_281]
           at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:1.8.0_281]
           at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_281]
           at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:469) ~[?:1.8.0_281]
           at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) ~[xnio-nio-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.xnio.channels.Channels.writeBlocking(Channels.java:147) ~[xnio-api-3.8.8.Final.jar:3.8.8.Final]
           at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:355) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:385) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.MysqlChannel.sendAndFlush(MysqlChannel.java:455) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.finalizeCommand(ConnectProcessor.java:535) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:702) ~[doris-fe.jar:1.2-SNAPSHOT]
           at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_281]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_281]
           at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_281]
   2023-10-27 09:15:29,881 WARN (thrift-server-pool-7242|120881) [ThreadPoolManager$LogDiscardOldestPolicy.rejectedExecution():238] Task: java.util.concurrent.FutureTask@7257a2db submit to profile-write-pool, and discard the oldest task:java.util.concurrent.FutureTask@7c9052e1
   ```
   
   ### What You Expected?
   
   want to know why this kind of Exception happen, is this a issue about doris ?
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

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


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


Re: [I] [Bug] java.io.IOException: Connection reset by peer [doris]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #25997: [Bug] java.io.IOException: Connection reset by peer
URL: https://github.com/apache/doris/issues/25997


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

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

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


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


Re: [I] [Bug] java.io.IOException: Connection reset by peer [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #25997:
URL: https://github.com/apache/doris/issues/25997#issuecomment-3287231935

   We're closing this issue because it hasn't been updated in a while.
   If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!


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

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

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


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