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 791FB11B90 for ; Wed, 27 Aug 2014 20:00:22 +0000 (UTC) Received: (qmail 89283 invoked by uid 500); 27 Aug 2014 20:00:22 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 89241 invoked by uid 500); 27 Aug 2014 20:00:22 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 89230 invoked by uid 99); 27 Aug 2014 20:00:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 20:00:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 27 Aug 2014 20:00:00 +0000 Received: (qmail 87634 invoked by uid 99); 27 Aug 2014 19:59:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 19:59:58 +0000 Date: Wed, 27 Aug 2014 19:59:58 +0000 (UTC) From: "Raghav Kumar Gautam (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-587) Don't delete input data in @AfterClass in falcon-regression tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112741#comment-14112741 ] Raghav Kumar Gautam commented on FALCON-587: -------------------------------------------- I can give you another counter example for this case: 1. user1 creates feed1 and test data for it in @BeforeClass setup method 2. user2 creates feed2 and test data for it in @BeforeClass setup method 3. user2 uses feed1 and feed2 for testing 4. in the @AfterClass cleanup method cleanup the data The problem is that we are not sure if test's cleanup method is called first or BaseTestClass's @AfterClass method called first. These race conditions once introduced are hard to reproduce and debug. That is why we had decided to stay away from using any After/Before Method/Class tags in the BaseTestClass. Data creation and cleanup are very test specific and individual tests should have complete control of them. Last time when we had a similar issue with BaseTestClass.removeBundles() we instead added a call to the method from all of the tearDown() method of the tests. > Don't delete input data in @AfterClass in falcon-regression tests > ----------------------------------------------------------------- > > Key: FALCON-587 > URL: https://issues.apache.org/jira/browse/FALCON-587 > Project: Falcon > Issue Type: Bug > Components: merlin > Affects Versions: 0.5 > Reporter: Ruslan Ostafiychuk > Assignee: Ruslan Ostafiychuk > Priority: Minor > Fix For: 0.5 > > Attachments: FALCON-587.patch, FALCON-587_v2.patch, FALCON-587_v3.patch > > > We can leave input data after tests for debug. Input data will be deleted if we run tests again in @BeforeMethod (during HadoopUtil.flattenAndPutDataInFolder()). -- This message was sent by Atlassian JIRA (v6.2#6252)