GitHub user sonia-garudi opened a pull request:

    https://github.com/apache/falcon/pull/408

    FALCON-2334 Tests in UpdateHelperTest suite fails with 
ParentNotDirectoryException

    The UpdateHelperTest tests fails with the following error :
    `Parent path is not a directory: 
/var/lib/jenkins/workspace/falcon/common/target/falcon/tmp-hadoop-jenkins/jail-fs/testCluster/projects/falcon/staging/falcon/workflows/process/sample`
    
    The errors occurs only when the EntityUtilTest#testIsStagingPath test runs 
before the tests mentioned above.
    
    The following code in EntityUtilTest#testIsStagingPath creates a file at 
path - 
target/falcon/tmp-hadoop-jenkins/jail-fs/testCluster/projects/falcon/staging/falcon/workflows/process/sample
  which causes the error :
    
    ```
    if (createPath && !fs.exists(path)) {
     fs.create(path);
     }
    ```
    The change proposed in this pull request deletes the files created in 
EntityUtilTest#testIsStagingPath after the test checks are done.
    


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

    $ git pull https://github.com/sonia-garudi/falcon FALCON-2334

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

    https://github.com/apache/falcon/pull/408.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 #408
    
----
commit 782712b30ce55d94b143ee6e484f070d1b92994e
Author: sonia-garudi <sgarudi@...>
Date:   2018-04-12T06:53:14Z

    Update EntityUtilTest#testIsStagingPath to delete created files

----


---

Reply via email to