pvary commented on code in PR #14792:
URL: https://github.com/apache/iceberg/pull/14792#discussion_r2605872936


##########
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java:
##########
@@ -78,8 +78,8 @@ Tuple2<Boolean, Exception> exists(TableIdentifier identifier) 
{
     CacheItem cached = tableCache.get(identifier);
     if (cached != null && Boolean.TRUE.equals(cached.tableExists)) {
       return EXISTS;
-    } else if (needsRefresh(cached, true)) {
-      return refreshTable(identifier);
+    } else if (maybeRefreshTable(identifier, cached, true)) {
+      return EXISTS;

Review Comment:
   This is a functionality change.
   Why?



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