You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2007/12/17 10:58:47 UTC

[jira] Updated: (HADOOP-2426) TestLocalFileSystemPermission fails in mac

     [ https://issues.apache.org/jira/browse/HADOOP-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated HADOOP-2426:
------------------------------

    Attachment: HADOOP-2426.patch

The failure I'm getting is not related to the group name length:

Testcase: testLocalFSsetOwner took 0.087 sec
        FAILED
expected:<staff> but was:<>
junit.framework.ComparisonFailure: expected:<staff> but was:<>
        at org.apache.hadoop.fs.TestLocalFileSystemPermission.testLocalFSsetOwne
r(TestLocalFileSystemPermission.java:130)

There is a mistake in the logic of RawLocalFileStatus.getGroup(). This patch fixes it and now the test passes for me. Does it work for you Nicholas?

> TestLocalFileSystemPermission fails in mac
> ------------------------------------------
>
>                 Key: HADOOP-2426
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2426
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.15.1
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: HADOOP-2426.patch
>
>
> In Mac, group name can be more than 8 characters, e.g. "appserveradm".  However, "ls -ld" truncates it to 8 characters, i.e. it shows "appserve" for the previous group name.  Therefore, the test fails since "appserveradm".equals("appserve") returns false.
> Not sure whether similar problem exists in other OS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.