falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balu Vellanki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1195) ClusterEntityParserTest fails intermittently
Date Tue, 05 May 2015 20:32:01 GMT

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

Balu Vellanki commented on FALCON-1195:
---------------------------------------

The error happens because testClusterWithSubdirInStaging() can potentially run before testClusterWithOnlyStaging().
Test testClusterWithSubdirInStaging()  creates "/projects/falcon/staging/working" dir with
777 permissions.  Falcon code does not create the working dir if it already exists, hence
testClusterWithOnlyStaging() is unable to create "/projects/falcon/staging/working" with 755
permissions.

The solution is to use a different name for staging/working dirs for each test. This should
completely avoid the race condition. 

> ClusterEntityParserTest fails intermittently 
> ---------------------------------------------
>
>                 Key: FALCON-1195
>                 URL: https://issues.apache.org/jira/browse/FALCON-1195
>             Project: Falcon
>          Issue Type: Bug
>    Affects Versions: 0.6
>            Reporter: Balu Vellanki
>            Assignee: Balu Vellanki
>             Fix For: 0.7, 0.6.1
>
>
> testClusterWithOnlyStaging fails intermittently due to race condition
> {code}
> org.apache.falcon.entity.parser.ValidationException: Falcon needs subdir working inside
staging dir:/projects/falcon/staging when staging location not specified with rwxr-xr-x got
rwxrwxrwx
> 	at org.apache.falcon.entity.parser.ClusterEntityParser.validateLocations(ClusterEntityParser.java:272)
> 	at org.apache.falcon.entity.parser.ClusterEntityParser.validate(ClusterEntityParser.java:86)
> 	at org.apache.falcon.entity.parser.ClusterEntityParserTest.testClusterWithOnlyStaging(ClusterEntityParserTest.java:290)
> {code}



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

Mime
View raw message