dataroaring commented on code in PR #41362:
URL: https://github.com/apache/doris/pull/41362#discussion_r1778652147


##########
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java:
##########
@@ -802,13 +802,27 @@ private void addScanRangeLocations(Partition partition,
             paloRange.setVersion(visibleVersionStr);
             paloRange.setVersionHash("");
             paloRange.setTabletId(tabletId);
+            if (ConnectContext.get().isTxnModel()) {
+                paloRange.setSubTxnIds(
+                        
ConnectContext.get().getTxnEntry().getTabletSubTxnIds(olapTable.getId(), 
tablet));
+                LOG.info("table={}, partition={}, tablet={}, sub txn ids={}", 
olapTable.getId(), partition.getId(),
+                        tablet.getId(), paloRange.getSubTxnIds());
+            }
 

Review Comment:
   We should assure that select in txn is forwarded to master too. 



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to