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

Peeyush Bishnoi commented on FALCON-1195:
-----------------------------------------

[~bvellanki] I agree that by using different staging/working directories for 
every test will avoid the race condition. But in my earlier comment I tried to 
suggest the another simple solution through the use of attribute 
"dependsOnMethods" . As by using dependsOnMethods = 
"testClusterWithOnlyStaging" with Test annotation before 
testClusterWithSubdirInStaging() will ensure that test case 
testClusterWithSubdirInStaging() must run after testClusterWithOnlyStaging(). 
You can think of this simple solution as well if this helps you, to avoid the 
race condition which has happened as testClusterWithSubdirInStaging() 
potentially run before testClusterWithOnlyStaging().

> 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
>
>         Attachments: FALCON-1195.patch
>
>
> 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)

Reply via email to