tuyendev commented on issue #14858:
URL:
https://github.com/apache/shardingsphere/issues/14858#issuecomment-1015180971
@zjcnb I don't think your configuration is wrong.
I found a weird behaviour ( not sure about that ) in
**ReadwriteSplittingDataSourceRouter.java**
` private boolean isPrimaryRoute(final SQLStatement sqlStatement) {
return containsLockSegment(sqlStatement) || !(sqlStatement
instanceof SelectStatement) || HintManager.isWriteRouteOnly() ||
TransactionHolder.isTransaction();
}`
The **TransactionHolder.isTransaction()** was **true**, i even don't set any
transaction configuration.
It worked in previous version (4.1.1). I only cause problem with this version
--
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]