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 "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2007/12/14 02:24:43 UTC

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

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


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.


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

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551672 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-2426:
------------------------------------------------

Checked cygwin and Linux, both of them can display group names more than 8 characters (not sure they might truncate it for longer names.)

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


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

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552509 ] 

Raghu Angadi commented on HADOOP-2426:
--------------------------------------

+1 for the patch. The patch attached fixes the problem Tom saw and not related to issue in Jira description. Should it be part of this Jira or HADOOP-2442?



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


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

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556675#action_12556675 ] 

Raghu Angadi commented on HADOOP-2426:
--------------------------------------

Tom, could you remove the patch attached since it is not a fix for this jira? The issue described in the description is still not fixed and the attached patch might confuse the readers.

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