difin commented on code in PR #5957:
URL: https://github.com/apache/hive/pull/5957#discussion_r2214417831


##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java:
##########
@@ -188,6 +186,15 @@ public void run() {
       }
     }
   }
+  
+  protected void invalidateCache() {
+    // Currently we invalidate all entries after each cycle, because the 
bootstrap replication is marked via
+    // table property hive.repl.first.inc.pending which would be cached.
+    metadataCache.invalidate();

Review Comment:
   `metadataCache` works with metastore objects that extend `TBase`.
   `metadataCache` is used in `AcidTableOptimizer`, but `IcebergTableOptimizer` 
needs `org.apache.hadoop.hive.ql.metadata.Table` that's why I created a 
separate cache.



-- 
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: gitbox-unsubscr...@hive.apache.org

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


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

Reply via email to