wsjz commented on code in PR #27007: URL: https://github.com/apache/doris/pull/27007#discussion_r1395070458
########## 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: avoid to call open twice -- 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