jerqi commented on code in PR #6770:
URL: https://github.com/apache/gravitino/pull/6770#discussion_r2018105013
##########
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:
I should add comments to explain this. This means fileset , topic won't
modify the locations. We don't need change the locations.
--
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]