morningman commented on code in PR #27007:
URL: https://github.com/apache/doris/pull/27007#discussion_r1393680076


##########
fe/be-java-extensions/max-compute-scanner/src/main/java/org/apache/doris/maxcompute/MaxComputeJniScanner.java:
##########
@@ -167,10 +172,21 @@ public void open() throws IOException {
             List<Column> maxComputeColumns = new ArrayList<>(readColumns);
             maxComputeColumns.removeIf(e -> 
partitionColumns.contains(e.getName()));
             curReader = session.openArrowRecordReader(start, totalRows, 
maxComputeColumns, arrowAllocator);
+        } catch (TunnelException e) {
+            if (retryCount > 0 && e.getErrorMsg().contains("TableModified")) {
+                retryCount--;
+                // try to refresh table scan and re-open odps
+                refreshTableScan();
+                open();
+            } else {
+                retryCount = 2;

Review Comment:
   Why need to reset `retryCount`?
   I thought the MaxComputeJniScanner will be new for each query?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to