YARN-10499. TestRouterWebServiceREST fails (#2490). Contributed by Akira Ajisaka
This commit is contained in:
parent
df35c7f519
commit
df7f1e5199
@ -181,6 +181,11 @@ private void setupGroupsForVariableContext(VariableContext vctx, String user)
|
||||
return;
|
||||
}
|
||||
Set<String> groupsSet = groups.getGroupsSet(user);
|
||||
if (groupsSet.isEmpty()) {
|
||||
LOG.warn("There are no groups for user {}", user);
|
||||
vctx.putExtraDataset("groups", groupsSet);
|
||||
return;
|
||||
}
|
||||
String secondaryGroup = null;
|
||||
Iterator<String> it = groupsSet.iterator();
|
||||
String primaryGroup = it.next();
|
||||
|
Loading…
Reference in New Issue
Block a user