I-Love-China opened a new issue, #21099:
URL: https://github.com/apache/shardingsphere/issues/21099

   ## 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/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 anymore 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?
   - 5.1.0
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   - ShardingSphere-JDBC
   
   ### Expected behavior
   - `DriverExecutionPrepareEngine` return one connection if statement in a 
local transaction
   
   ### Actual behavior
   - `DriverExecutionPrepareEngine` return more than one connection if 
max-connections-size-per-query greater than 1
   
   <img width="1440" alt="image" 
src="https://user-images.githubusercontent.com/41012300/191344372-c9791c3d-029d-4a82-bc0c-c3ec718997cf.png";>
   
   
   ### Reason analyze (If you can)
   - Absence of LocalTransactionManager
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   #### Demo project
   - **repo url:** https://github.com/I-Love-China/shardingsphere
   - **branch:** `comment-global`
   - **main entry:** 
`org.apache.shardingsphere.shardingspheredemo.service.HealthRecordServiceTest#test`
   - **DDL:** 
https://github.com/I-Love-China/shardingsphere/blob/comment-global/shardingsphere-demo/src/main/resources/sql/DDL.sql
   - There will be a warning while running this unit test: `expected 
connections: 1, actual connections: 3`;
   
   
   ### Example codes for reproduce this issue (such as a github link).
   <img width="1440" alt="image" 
src="https://user-images.githubusercontent.com/41012300/191345237-99a8328b-1ea2-4834-a21e-f3df737ad8da.png";>
   
   


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