[
https://issues.apache.org/jira/browse/FALCON-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530781#comment-14530781
]
Peeyush Bishnoi commented on FALCON-1195:
-----------------------------------------
[~bvellanki] Patch looks good.
But as you have mentioned that testClusterWithSubdirInStaging() can potentially
run before testClusterWithOnlyStaging() and test case will fail. So to avoid
this race condition, attribute dependsOnMethods (dependsOnMethods =
"testClusterWithOnlyStaging") with Test annotation before
testClusterWithSubdirInStaging() could have been added.
> 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)