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

   # Background
   Now all transaction managers on the classpath are created by default, which 
will cause some problems. 
   
   For example, when user only use local transactions, the atomikos xa 
transaction manager provided by ShardingSphere will be created by default. If 
the user does not have relevant permissions, an error will be reported.
   
   Related issues are as follows:
   1.Spring has created ShardingSphereConnection through the thread pool in 
advance.
   If you want to switch the transaction type, you cannot switch the 
transaction type corresponding to the currently created connection.
   https://github.com/apache/shardingsphere/issues/24694
   
   2.If there are both base and xa transaction dependencies in the class path, 
the creation of the xa transaction manager will fail.
   https://github.com/apache/shardingsphere/issues/23351
   
   3.Atomikos XA transaction started when it is not configured in server.yaml.
   https://github.com/apache/shardingsphere/issues/18894
   https://github.com/apache/shardingsphere/issues/25264
   
   # Tasks
   - [ ] Remove `TransactionTypeHolder` API.
   - [ ] Only create the transaction manager corresponding to the current 
`defaultType` transaction type
   
   ### Is your feature request related to a problem?
   
   ### Describe the feature you would like.
   


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