Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B6D4200B39 for ; Fri, 24 Jun 2016 10:24:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A3B6160A38; Fri, 24 Jun 2016 08:24:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CB74A160A63 for ; Fri, 24 Jun 2016 10:24:17 +0200 (CEST) Received: (qmail 20347 invoked by uid 500); 24 Jun 2016 08:24:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 19429 invoked by uid 99); 24 Jun 2016 08:24:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2016 08:24:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6F7F02C0451 for ; Fri, 24 Jun 2016 08:24:16 +0000 (UTC) Date: Fri, 24 Jun 2016 08:24:16 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16103) Procedure v2 - TestCloneSnaphotProcedure relies on execution order MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Jun 2016 08:24:18 -0000 [ https://issues.apache.org/jira/browse/HBASE-16103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matteo Bertozzi updated HBASE-16103: ------------------------------------ Attachment: HBASE-16103-v0.patch > Procedure v2 - TestCloneSnaphotProcedure relies on execution order > ------------------------------------------------------------------ > > Key: HBASE-16103 > URL: https://issues.apache.org/jira/browse/HBASE-16103 > Project: HBase > Issue Type: Bug > Components: proc-v2, test > Affects Versions: 2.0.0 > Reporter: Matteo Bertozzi > Assignee: Matteo Bertozzi > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16103-v0.patch > > > https://builds.apache.org/view/All/job/HBase-Trunk_matrix/jdk=latest1.8,label=yahoo-not-h2/1100/ > the TestCloneSnapshotProcedure is written in a way that relies on the execution order and does not tolerate failure of a previous test. > getSnapshot() has a cached snapshot. if we haven't created yet we will create it. > (from how the code is written is a bit unclear that where we are taking the snapshot, so in the patch I moved out the call to make it more readable) > In this case we started with testCloneSnapshotToSameTable and it failed because the table was waiting for flushes and compaction and it took a long time. > {noformat} > org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.waitForTableToBeOnline(SnapshotTestingUtils.java:737) > at org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.loadData(SnapshotTestingUtils.java:799) > at org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.loadData(SnapshotTestingUtils.java:770) > at org.apache.hadoop.hbase.master.procedure.TestCloneSnapshotProcedure.getSnapshot(TestCloneSnapshotProcedure.java:114) > at org.apache.hadoop.hbase.master.procedure.TestCloneSnapshotProcedure.testCloneSnapshotToSameTable(TestCloneSnapshotProcedure.java:176) > {noformat} > when we got to testRollbackAndDoubleExecution which stop and start the executor to simulate crashes the snapshot. we ask the executor to stop and then we asked to take a snapshot, but of course the executor is not running so we are stuck there. > Similarly if we run TestCloneSnapshotProcedure#testRollbackAndDoubleExecution alone, this will always fail because of the above. the snapshot cannot be taken because we stopped the executor. the test here was written relying on the execution order. easy fix is to take the snapshot before stopping the executor for the clone failure simulation as it is supposed to be. -- This message was sent by Atlassian JIRA (v6.3.4#6332)