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


   ## Bug Report
   
   Related to #11583.
   
   ### Which version of ShardingSphere did you use?
   master - 8f40f0ca56d1e6f49dbaafee2a686df0cff50b50
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere Proxy
   
   ### Expected behavior
   No error occurs when benching.
   
   ### Actual behavior
   
   ```
   sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
   
   Running the test with following options:
   Number of threads: 256
   Report intermediate results every 10 second(s)
   Initializing random number generator from current time
   
   
   Initializing worker threads...
   
   Threads started!
   
   FATAL: mysql_stmt_execute() returned error 1815 (Internal error: Can't call 
commit when autocommit=true) for query 'COMMIT'
   FATAL: `thread_run' function failed: 
/usr/share/sysbench/oltp_common.lua:422: SQL error, errno = 1815, state = 
'HY000': Internal error: Can't call commit when autocommit=true
   FATAL: mysql_stmt_execute() returned error 1815 (Internal error: Can't call 
commit when autocommit=true) for query 'COMMIT'
   FATAL: `thread_run' function failed: 
/usr/share/sysbench/oltp_common.lua:422: SQL error, errno = 1815, state = 
'HY000': Internal error: Can't call commit when autocommit=true
   FATAL: mysql_stmt_execute() returned error 1815 (Internal error: Can't call 
commit when autocommit=true) for query 'COMMIT'
   FATAL: `thread_run' function failed: 
/usr/share/sysbench/oltp_common.lua:422: SQL error, errno = 1815, state = 
'HY000': Internal error: Can't call commit when autocommit=true
   ```
   
   ### Reason analyze (If you can)
   
   
https://github.com/apache/shardingsphere/blob/9577dfd7b5a3279165bbc650cad8f062b70f4923/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/command/CommandExecutorTask.java#L81-L88
   
   After moving the `flush` to the last, this issue didn't reproduced.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   Bench ShardingSphere MySQL Proxy with `sysbench`.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to