HDFS-15344. DataNode#checkSuperuserPrivilege should use UGI#getGroups after HADOOP-13442. (#2004)

This commit is contained in:
Xiaoyu Yao 2020-05-13 11:47:19 -07:00 committed by GitHub
parent 108ecf992f
commit 3cacf1ce56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1082,7 +1082,7 @@ public class DataNode extends ReconfigurableBase
}
// Is the user a member of the super group?
List<String> groups = Arrays.asList(callerUgi.getGroupNames());
List<String> groups = callerUgi.getGroups();
if (groups.contains(supergroup)) {
return;
}