xiaoyuyao opened a new pull request #2085: URL: https://github.com/apache/hadoop/pull/2085
## NOTICE https://issues.apache.org/jira/browse/HADOOP-17079 UserGroupInformation.java adding getGroupsSet() that returns a Set instead of List. The callers of Groups#getGroups() in Hadoop are replaced with getGroupsSet() as we know Set#contains() will be generally faster than List#contains expecially the user has large group memeberships. In some of our cusotmers' datalake use cases, user can typically have hundreds or thousands of group members. Changing from list to set make a big difference. GroupMappingServiceProvider.java add a new method that returns result as Set instead of List Groups.java Change to maintain cached user -> groups mapping as a set instead of list. ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
