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 2021/11/11 10:08:28 UTC
[GitHub] [shardingsphere] jingshanglu commented on a change in pull request #13362: Fix #12771 to support XA statements in proxy
jingshanglu commented on a change in pull request #13362:
URL: https://github.com/apache/shardingsphere/pull/13362#discussion_r747367304
##########
File path: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/transaction/TransactionStatus.java
##########
@@ -34,6 +34,9 @@
@Setter
private volatile boolean inTransaction;
+
+ @Setter
+ private volatile boolean inXA;
Review comment:
> So I think it should change the following
>
> https://github.com/apache/shardingsphere/blob/8fc35c9afee87627dd43381c086dfe81df062b47/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/transaction/TransactionStatus.java#L56-L64
>
> with `return (InTransaction && TransactionType.BASE != transactionType) || inXA;`
>
> So we can hold the connections during the XA transaction. Does it make sense ?
@zhfeng @TeslaCN Maybe we can use
```
return inTransaction && (TransactionType.XA == transactionType || .....);
```
--
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