FANNG1 commented on code in PR #8696:
URL: https://github.com/apache/gravitino/pull/8696#discussion_r2434484125


##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java:
##########
@@ -187,12 +208,19 @@ public ListTablesResponse listTable(Namespace namespace) {
   }
 
   public void renameTable(RenameTableRequest renameTableRequest) {
+    metadataCache.invalidate(renameTableRequest.source());

Review Comment:
   seems not necessary.  if `rename` succ,  dest table metadata should not in 
the cache.  If `rename` failed, should not remove dest table cache too.



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

Reply via email to