captainzmc commented on a change in pull request #918:
URL: https://github.com/apache/hadoop-ozone/pull/918#discussion_r425563994



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
##########
@@ -1589,6 +1593,15 @@ public boolean checkAccess(OzoneObj ozObject, 
RequestContext context)
     Objects.requireNonNull(ozObject);
     Objects.requireNonNull(context);
     Objects.requireNonNull(context.getClientUgi());
+    String whiteList = conf.get(OZONE_WRITE_LIST);
+    Set<String> whiteListSet = new HashSet<>();
+    LOG.warn("=====keymanagerImpl=======checkAccess=====");
+    if (whiteList != null) {
+      whiteListSet.addAll(Arrays.asList(whiteList.trim().split(",")));

Review comment:
       hi @timmylicheng Thanks for your review.
   I think that's a good suggestion. Now the configuration of ozone. 
administrators is static, and om needs to be restarted for each update. I'm 
going to open a jira to keep track of this.




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to