jerqi commented on code in PR #6770: URL: https://github.com/apache/gravitino/pull/6770#discussion_r2018210493
########## authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationHDFSPlugin.java: ########## @@ -665,8 +690,43 @@ public Boolean onMetadataUpdated(MetadataObjectChange... changes) throws Runtime // Did not need to update the Ranger policy continue; } - List<AuthorizationMetadataObject> oldAuthzMetadataObjects = - translateMetadataObject(metadataObject); + + // If locations don't change, we don't need to modify the policies + if (renameChange.locations() == null || renameChange.locations().isEmpty()) { + continue; + } Review Comment: Changed. -- 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...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org