You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Sowmya Ramesh (JIRA)" <ji...@apache.org> on 2015/10/06 23:04:27 UTC

[jira] [Commented] (FALCON-1466) Flaky test in Proxy user feature UT's

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

Sowmya Ramesh commented on FALCON-1466:
---------------------------------------

Root cause: Proxy user UT"s in the test set up configure the proxy user group and host in RuntimeProperties. In RuntimeProperties if INSTANCE is null then it is initialized , also it spins a thread to dynamically load it. If when the tests run INSTANCE is null then there ia a race condition where after proxy user config is set it can be overwritten by the thread that is spun in DynamicLoader.run(). Thread is spun just after iniitng INSTANCE and hence INSTANCE need not have to be updated when the thread starts running. To remove the flakiness moved Thread.sleep to beginning of DynamicLoader.run().

> Flaky test in Proxy user feature UT's
> -------------------------------------
>
>                 Key: FALCON-1466
>                 URL: https://issues.apache.org/jira/browse/FALCON-1466
>             Project: Falcon
>          Issue Type: Sub-task
>            Reporter: Pallavi Rao
>            Assignee: Sowmya Ramesh
>             Fix For: 0.8
>
>
> I see the following UT fail sporadically :
> {code}
> Running org.apache.falcon.security.CurrentUserTest
> Tests run: 46, Failures: 1, Errors: 0, Skipped: 45, Time elapsed: 1.635 sec <<< FAILURE! - in org.apache.falcon.security.CurrentUserTest
> setUp(org.apache.falcon.security.CurrentUserTest)  Time elapsed: 1.266 sec  <<< FAILURE!
> org.apache.falcon.FalconException: falcon.service.ProxyUserService.proxyuser.falcon.service.ProxyUserService.proxyuser.foo.groups property not set in runtime properties. Please add it.
> 	at org.apache.falcon.service.ProxyUserService.init(ProxyUserService.java:97)
> 	at org.apache.falcon.security.CurrentUserTest.setUp(CurrentUserTest.java:51)
> {code}
> {code}
> Running org.apache.falcon.service.ProxyUserServiceTest
> Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.775 sec <<< FAILURE! - in org.apache.falcon.service.ProxyUserServiceTest
> testInvalidGroup(org.apache.falcon.service.ProxyUserServiceTest)  Time elapsed: 0.027 sec  <<< FAILURE!
> org.testng.TestException: 
> Expected exception java.security.AccessControlException but got org.apache.falcon.FalconException: falcon.service.ProxyUserService.proxyuser.falcon.service.ProxyUserService.proxyuser.foo.groups property not set in runtime properties. Please add it.
> at org.apache.falcon.service.ProxyUserService.init(ProxyUserService.java:97)
> at org.apache.falcon.service.ProxyUserServiceTest.testInvalidGroup(ProxyUserServiceTest.java:149)
> {code}



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