Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Failure in TestUserGroupInformation.testGetServerSideGroups

Copy link to this message
Failure in TestUserGroupInformation.testGetServerSideGroups
Has anyone seen this error before?

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
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.

Still, I don't know why I'd be the first to hit this, so I thought I'd
ask. Let me know if I should file a bug.