You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/10/18 08:07:24 UTC

[GitHub] [incubator-shardingsphere] TonyLuo opened a new issue #3323: Read write splitter with java.net.SocketException: Connection reset

TonyLuo opened a new issue #3323: Read write splitter with  java.net.SocketException: Connection reset
URL: https://github.com/apache/incubator-shardingsphere/issues/3323
 
 
   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/incubator-shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response **more than 7 days** and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   sharding-jdbc 4.0.0-RC2
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   sharding-jdbc 4.0.0-RC2
   ### Expected behavior
   
   ### Actual behavior
   ```
   The last packet successfully received from the server was 120,001 milliseconds ago.  The last packet sent successfully to the server was 118,739 milliseconds ago.] with root cause
    java.net.SocketException: Connection reset
   	at java.net.SocketInputStream.read(SocketInputStream.java:209)
   	at java.net.SocketInputStream.read(SocketInputStream.java:141)
   	at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:100)
   	at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:143)
   	at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:173)
   	at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2954)
   	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3375)
   	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3365)
   	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3805)
   	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
   	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
   	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
   	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
   	at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1192)
   	at com.mysql.jdbc.jdbc2.optional.PreparedStatementWrapper.execute(PreparedStatementWrapper.java:682)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.MasterSlavePreparedStatement.execute(MasterSlavePreparedStatement.java:118)
   	at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:59)
   	at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:73)
   	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:60)
   	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)
   	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)
   	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)
   	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)
   	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)
   ```
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services