[
https://issues.apache.org/jira/browse/BIGTOP-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918993#comment-13918993
]
Konstantin Boudnik commented on BIGTOP-997:
-------------------------------------------
Ok, the problem with the bug is this:
- as a part of BIGTOP-895 everything that say {{supergroup}} is now replaced
with whatever coming from {{DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_KEY}}
- by default it is set to be group {{hadoop}}
- when {{TestCLI}} creates files and directories under {{/tmp}} they are
inherit group settings from the parent directory (which is {{hadoop}} normally)
- when directory or file creation happens with a relative path (e.g. {{fs
-mkdir -p dir1}} the new directory is getting created under user's home e.g.
{{/user/jenkins}} which is likely to have {{supergroup}} group credentials.
This eventually leads to the situation where we see the bug if the test is ran
under user belonging to group {{supergroup}}. One way to fix it is to make sure
that user's group is {{hadoop}}. Another way is to have smarter
{{expandCommand}} in the test.
> TestCLI fails test id 5: comparator fails
> ------------------------------------------
>
> Key: BIGTOP-997
> URL: https://issues.apache.org/jira/browse/BIGTOP-997
> Project: Bigtop
> Issue Type: Bug
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Konstantin Boudnik
> Assignee: Dasha Boudnik
> Labels: hackathon-7-2013
> Fix For: 0.8.0
>
>
> I am running hadoop smokes against a cluster and at least one test case is
> failing in TestCLI:
> {noformat}
> 13/06/05 19:22:02 INFO cli.CLITestHelper: Test ID: [5]
> ...
> 13/06/05 19:22:02 INFO cli.CLITestHelper: Comparision result:
> [fail]
> 13/06/05 19:22:02 INFO cli.CLITestHelper: Expected output:
> [^drwxr-xr-x( )*-( )*[a-z]*( )*hadoo
> p( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1]
> 13/06/05 19:22:02 INFO cli.CLITestHelper: Actual output:
> [Found 1 items
> drwxr-xr-x - cos supergroup 0 2013-06-05 19:20 dir1
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)