pvary commented on code in PR #19115:
URL: https://github.com/apache/iceberg/pull/19115#discussion_r4677822996
##########
flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/source/lookup/IcebergFullCachingLookupFunction.java:
##########
@@ -242,18 +244,36 @@ private synchronized void loadCache() throws IOException {
projectedRowType.getFieldNames(),
pushedFilters);
+ if (cache != null
+ && reader.isAppendOnlyRange(currentSnapshotId, snapshotId)
+ && tryLoadDelta(currentSnapshotId, snapshotId)) {
+ return;
+ }
+
+ loadFull(snapshotId);
+ }
+
+ private boolean tryLoadDelta(long fromExclusive, long toInclusive) {
+ try {
+ loadDelta(fromExclusive, toInclusive);
+ return true;
+ } catch (Exception e) {
Review Comment:
Maybe review the full class too, and check how InterruptedException is
handled generally in the old code and file a new PR for it if needed
--
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]