[ 
https://issues.apache.org/jira/browse/HDFS-10689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396059#comment-15396059
 ] 

Manoj Govindassamy commented on HDFS-10689:
-------------------------------------------


TestHDFSCLI failure is not related to the patch. Latest trunk is seeing the 
same failure.

{noformat}
17699 2016-07-27 10:30:42,785 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(186)) -
17700 2016-07-27 10:30:42,785 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(190)) - Summary results:
17701 2016-07-27 10:30:42,785 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(191)) - ----------------------------------
17702 
17703 2016-07-27 10:30:42,785 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(211)) -                Testing mode: test
17704 2016-07-27 10:30:42,785 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(212)) -
17705 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(213)) -              Overall result: --- 
FAIL ---
17706 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(221)) -                # Tests pass: 665 
(99%)
17707 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(223)) -                # Tests fail: 1 (0%)
17708 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(227)) -          # Validations done: 1726 
(each test may do mu      ltiple validations)
17709 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(230)) -
17710 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(231)) - Failing tests:
17711 2016-07-27 10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(232)) - --------------17712 2016-07-27 
10:30:42,786 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(238)) - 595: help: help for dfsadmin 
clrSpaceQuota
17713 2016-07-27 10:30:42,787 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(248)) -17714 2016-07-27 10:30:42,787 [main] 
INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(249)) - Passing 
tests:
17715 2016-07-27 10:30:42,787 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(250)) - --------------
17716 2016-07-27 10:30:42,787 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(254)) - 1: ls: file using absolute path
17717 2016-07-27 10:30:42,787 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(254)) - 2: ls: file using relative path



17646 2016-07-27 10:45:22,083 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(177)) -                  Comparator: 
[RegexpComparator]
17647 2016-07-27 10:45:22,083 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(179)) -          Comparision result:   [fail]
17648 2016-07-27 10:45:22,083 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(181)) -             Expected output:   [^( 
|\t)*The storage ty      pe specific quota is cleared when -storageType option 
is specified.( )*]
17649 2016-07-27 10:45:22,083 [main] INFO  cli.CLITestHelper 
(CLITestHelper.java:displayResults(183)) -               Actual output:   
[-clrSpaceQuota [-stora      geType <storagetype>] <dirname>...<dirname>: Clear 
the space quota for each directory <dirName>.
17650                 For each directory, attempt to clear the quota. An error 
will be reported if
17651                 1. the directory does not exist or is a file, or
17652                 2. user is not an administrator.
17653                 It does not fault if the directory has no quota.
17654                 The storage type specific quota is cleared when 
-storageType option is specified.               Available storageTypes are
17655                 - RAM_DISK
17656                 - DISK
17657                 - SSD
17658                 - ARCHIVE

{noformat}





> "hdfs dfs -chmod 777" does not remove sticky bit
> ------------------------------------------------
>
>                 Key: HDFS-10689
>                 URL: https://issues.apache.org/jira/browse/HDFS-10689
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fs
>            Reporter: Manoj Govindassamy
>            Assignee: Manoj Govindassamy
>            Priority: Minor
>         Attachments: HDFS-10689.001.patch
>
>
> When a directory permission is modified using hdfs dfs chmod command and when 
> octal/numeric format is used, the leading sticky bit is not fully honored.
> 1. Create a dir dir_test_with_sticky_bit
> 2. Apply sticky bit permission on the dir : hdfs dfs -chmod 1755 
> /dir_test_with_sticky_bit
> 3. Remove sticky bit permission on the dir: hdfs dfs -chmod 755 
> /dir_test_with_sticky_bit
> Expected: Remove the sticky bit on the dir, as it happens on Mac/Linux native 
> filesystem with native chmod.
> 4. However, removing sticky bit permission by explicitly turning off the bit 
> works. hdfs dfs -chmod 0755 /dir_test_with_sticky_bit
> {noformat}
> manoj@~/work/hadev-pp: hdfs dfs -chmod 1755 /dir_test_with_sticky_bit
> manoj@~/work/hadev-pp: hdfs dfs -ls /
> Found 2 items
> drwxr-xr-t   - manoj supergroup          0 2016-07-25 11:42 
> /dir_test_with_sticky_bit
> drwxr-xr-x   - manoj supergroup          0 2016-07-25 11:42 /user
> manoj@~/work/hadev-pp: hdfs dfs -chmod 755 /dir_test_with_sticky_bit
> manoj@~/work/hadev-pp: hdfs dfs -ls /
> Found 2 items
> drwxr-xr-t   - manoj supergroup          0 2016-07-25 11:42 
> /dir_test_with_sticky_bit  <=== sticky bit still intact
> drwxr-xr-x   - manoj supergroup          0 2016-07-25 11:42 /user
> manoj@~/work/hadev-pp: hdfs dfs -chmod 0755 /dir_test_with_sticky_bit
> manoj@~/work/hadev-pp: hdfs dfs -ls /
> Found 2 items
> drwxr-xr-x   - manoj supergroup          0 2016-07-25 11:42 
> /dir_test_with_sticky_bit
> drwxr-xr-x   - manoj supergroup          0 2016-07-25 11:42 /user
> manoj@~/work/hadev-pp: 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to