korlov42 commented on code in PR #6272:
URL: https://github.com/apache/ignite-3/pull/6272#discussion_r2215869562


##########
modules/client/src/main/java/org/apache/ignite/internal/client/tx/DirectTxUtils.java:
##########
@@ -256,7 +256,7 @@ public static CompletableFuture<ClientChannel> 
resolveChannel(
         String opNode = pm == null ? null : pm.nodeConsistentId();
 
         if (tx != null) {
-            return tx.hasCommitPartition() && opNode != null ? opNode : 
tx.nodeName();
+            return !tx.isReadOnly() && tx.hasCommitPartition() && opNode != 
null ? opNode : tx.nodeName();

Review Comment:
   if my understanding correct, this will disable direct mapping for RO 
transactions. Won't better to support direct mapping for RO transactions as 
well?



-- 
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-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to