Details
Description
Testsuite: org.apache.hadoop.security.TestUserGroupInformation
Tests run: 14, Failures: 1, Errors: 0, Time elapsed: 0.278 sec
------------- Standard Output ---------------
trobinson:users guest git
------------- ---------------- ---------------
Testcase: testGetServerSideGroups took 0.051 sec
FAILED
expected:<g[ues]t> but was:<g[i]t>
junit.framework.AssertionFailedError: expected:<g[ues]t> but was:<g[i]t>
at org.apache.hadoop.security.TestUserGroupInformation.testGetServerSideGroups(TestUserGroupInformation.java:94)
It seems like the test is assuming that the groups returned by UserGroupInformation.getGroupNames() are in the same order as those returned by executing `id -Gn`. getGroupNames() only documents that the primary group is first, and `man id` doesn't document any ordering, so it seems like the test needs to be reworked to remove that assumption.
Attachments
Attachments
Issue Links
- is duplicated by
-
HADOOP-8802 TestUserGroupInformation testcase fails using IBM JDK 6.0 SR11
- Resolved
- relates to
-
HADOOP-9375 Port HADOOP-7290 to branch-1 to fix TestUserGroupInformation failure
- Closed