You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Sonia Garudi (JIRA)" <ji...@apache.org> on 2018/04/11 12:21:00 UTC

[jira] [Commented] (FALCON-2334) Tests in UpdateHelperTest suite fails with ParentNotDirectoryException

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

Sonia Garudi commented on FALCON-2334:
--------------------------------------

The errors occurs only when the EntityUtilTest#testIsStagingPath test runs before the tests mentioned above .

The following code in EntityUtilTest#testIsStagingPath creates the a file at path - target/falcon/tmp-hadoop-jenkins/jail-fs/testCluster/projects/falcon/staging/falcon/workflows/process/sample  which causes the error :
{code:java}
if (createPath && !fs.exists(path)) {
 fs.create(path);
 }{code}
With the following change the UpdateHelperTest suite passes :
{code:java}
if (createPath && !fs.exists(path)) {
- fs.create(path);
+ fs.mkdirs(path);
 }{code}
 

> Tests in UpdateHelperTest suite fails with ParentNotDirectoryException
> ----------------------------------------------------------------------
>
>                 Key: FALCON-2334
>                 URL: https://issues.apache.org/jira/browse/FALCON-2334
>             Project: Falcon
>          Issue Type: Bug
>          Components: common
>         Environment: {code:java}
> $ java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode){code}
>            Reporter: Sonia Garudi
>            Priority: Major
>
> The tests fails with the following error :
> {code:java}
> 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{code}
> The list of tests failing with above error :
> {code:java}
> Failed tests:
>  UpdateHelperTest.testIsEntityACLUpdated:273->prepare:101 ? ParentNotDirectory ...
>  UpdateHelperTest.testIsEntityLateProcessUpdated:291->prepare:101 ? ParentNotDirectory
>  UpdateHelperTest.testIsEntityUpdated:128->prepare:101 ? ParentNotDirectory Par...
>  UpdateHelperTest.testShouldUpdateAffectedEntities:168->prepare:101 ? ParentNotDirectory{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)