Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4D0A17C2D for ; Tue, 6 Oct 2015 22:07:22 +0000 (UTC) Received: (qmail 10513 invoked by uid 500); 6 Oct 2015 22:07:22 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 10466 invoked by uid 500); 6 Oct 2015 22:07:22 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 10455 invoked by uid 99); 6 Oct 2015 22:07:22 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 22:07:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 014FF180DCD for ; Tue, 6 Oct 2015 22:07:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.978 X-Spam-Level: *** X-Spam-Status: No, score=3.978 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.008, HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cHsfP3P0fcfX for ; Tue, 6 Oct 2015 22:07:20 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 6318620F7B for ; Tue, 6 Oct 2015 22:07:20 +0000 (UTC) Received: (qmail 10444 invoked by uid 99); 6 Oct 2015 22:07:20 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 22:07:20 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 42ED128CEE4; Tue, 6 Oct 2015 22:07:19 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3802806030931339080==" MIME-Version: 1.0 Subject: Re: Review Request 39062: Proxy user feature UT"s flaky From: "Balu Vellanki" To: "Venkat Ranganathan" , "Ajay Yadava" Cc: "Balu Vellanki" , "Sowmya Ramesh" , "Falcon" Date: Tue, 06 Oct 2015 22:07:19 -0000 Message-ID: <20151006220719.31884.74972@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Balu Vellanki" X-ReviewGroup: Falcon X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/39062/ X-Sender: "Balu Vellanki" References: <20151006210719.31883.29818@reviews.apache.org> In-Reply-To: <20151006210719.31883.29818@reviews.apache.org> Reply-To: "Balu Vellanki" X-ReviewRequest-Repository: falcon-git --===============3802806030931339080== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/39062/#review101699 ----------------------------------------------------------- Ship it! Ship It! - Balu Vellanki On Oct. 6, 2015, 9:07 p.m., Sowmya Ramesh wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/39062/ > ----------------------------------------------------------- > > (Updated Oct. 6, 2015, 9:07 p.m.) > > > Review request for Falcon, Ajay Yadava and Venkat Ranganathan. > > > Bugs: FALCON-1466 > https://issues.apache.org/jira/browse/FALCON-1466 > > > Repository: falcon-git > > > Description > ------- > > 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(). > > 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) > > > 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) > > > Diffs > ----- > > common/src/main/java/org/apache/falcon/service/ProxyUserService.java 0ad6663 > common/src/main/java/org/apache/falcon/util/RuntimeProperties.java 3ff30ee > > Diff: https://reviews.apache.org/r/39062/diff/ > > > Testing > ------- > > Existing UT's pass > > > Thanks, > > Sowmya Ramesh > > --===============3802806030931339080==--