GitHub user anew opened a pull request:

    https://github.com/apache/twill/pull/27

    Fix location permission test for older Hadoop versions

    In older Hadoop versions (2.0), files are always created with permissions 
that do not have execute bits. In later Hadoop versions, execute permissions 
are permitted for files. This changes the test location permission case to 
adjust the expected permissions for the missing execute bits, based on the 
Hadoop version.  
    
    Also fixes an intriguing bug where creating a directory (say a/b/c/) one of 
whose parents (say a/b) already exists as a file, Hadoop throws an access 
control exception. This is because the execute bit is not set on files. We must 
expect that exception and handle it properly. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anew/twill fix-perm-hadoop20

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/twill/pull/27.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #27
    
----
commit eba8b495119ed72d39e0f044bcb2ef62396294b7
Author: anew <andr...@cask.co>
Date:   2017-01-27T03:54:21Z

    fix permission test for Hadoop 2.0

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to