HDFS-15345. RouterPermissionChecker#checkSuperuserPrivilege should use UGI#getGroups after HADOOP-13442.

This commit is contained in:
Xiaoyu Yao 2020-05-12 08:31:04 -07:00 committed by GitHub
parent 96bbc3bc97
commit 047d8879e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ public void checkSuperuserPrivilege() throws AccessControlException {
}
// Is the user a member of the super group?
List<String> groups = Arrays.asList(ugi.getGroupNames());
List<String> groups = ugi.getGroups();
if (groups.contains(superGroup)) {
return;
}