hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Robinson <tre...@scurrilous.com>
Subject Failure in TestUserGroupInformation.testGetServerSideGroups
Date Thu, 12 May 2011 21:22:38 GMT
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.


View raw message