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 2022/05/24 08:29:31 UTC

[GitHub] [shardingsphere] TeslaCN opened a new issue, #17907: ShardingSphere-Proxy MySQL doesn't supports receiving packet more than 16 MB - 1

TeslaCN opened a new issue, #17907:
URL: https://github.com/apache/shardingsphere/issues/17907

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master - 
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy MySQL
   
   ### Expected behavior
   
   Operations worked.
   
   ### Actual behavior
   
   ```
   Exception in thread "main" java.sql.SQLException: Runtime exception: [Sequence ID of MySQL command packet must be `0`.]
   	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
   	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
   	at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763)
   	at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648)
   	at icu.wwj.hello.world.jdbc.MySQLLargePacket.main(MySQLLargePacket.java:21)
   ```
   
   ### Example codes for reproduce this issue (such as a github link).
   
   Rules of ShardingSphere doesn't matter.
   
   ```java
   try (Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:13306/bmsql", "root", "root")) {
       try (Statement statement = connection.createStatement()) {
           statement.execute("drop table if exists foo");
           statement.execute("create table foo (id bigint primary key, str0 longtext)");
           long id = ThreadLocalRandom.current().nextLong();
           String str0 = RandomStringUtils.randomAlphanumeric((1 << 24) - 62);
           String sql = "insert into foo (id, str0) values (" + id + ", '" + str0 + "')";
           statement.execute(sql);
       }
   }
   ```
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

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


[GitHub] [shardingsphere] terrymanu closed issue #17907: ShardingSphere-Proxy MySQL doesn't supports receiving packet more than 16 MB - 1

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #17907: ShardingSphere-Proxy MySQL doesn't supports receiving packet more than 16 MB - 1
URL: https://github.com/apache/shardingsphere/issues/17907


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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