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 DA25B200BF2 for ; Mon, 19 Dec 2016 02:49:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D8D6C160B38; Mon, 19 Dec 2016 01:49:59 +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 51A12160B30 for ; Mon, 19 Dec 2016 02:49:59 +0100 (CET) Received: (qmail 30138 invoked by uid 500); 19 Dec 2016 01:49:58 -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 30115 invoked by uid 99); 19 Dec 2016 01:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2016 01:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 57C8A2C03E0 for ; Mon, 19 Dec 2016 01:49:58 +0000 (UTC) Date: Mon, 19 Dec 2016 01:49:58 +0000 (UTC) From: "Allan Yang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17319) Truncate table with preserve after split may cause truncation to fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Dec 2016 01:50:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15759865#comment-15759865 ] Allan Yang commented on HBASE-17319: ------------------------------------ The TestTruncateTableProcedure passed on my environment, I can't reproduce the exceptions in master branch, maybe a glitch for Hudson, how can I trigger a Hudson rerun? > Truncate table with preserve after split may cause truncation to fail > --------------------------------------------------------------------- > > Key: HBASE-17319 > URL: https://issues.apache.org/jira/browse/HBASE-17319 > Project: HBase > Issue Type: Bug > Components: Admin > Affects Versions: 1.1.7, 1.2.4 > Reporter: Allan Yang > Assignee: Allan Yang > Fix For: 1.4.0 > > Attachments: HBASE-17319-branch-1.patch, HBASE-17319.patch > > > In truncateTableProcedue , when getting tables regions from meta to recreate new regions, split parents are not excluded, so the new regions can end up with the same start key, and the same region dir: > {noformat} > 2016-12-14 20:15:22,231 WARN [RegionOpenAndInitThread-writetest-1] regionserver.HRegionFileSystem: Trying to create a region that already exists on disk: hdfs://hbasedev1/zhengyan-hbase11-func2/.tmp/data/default/writetest/9b2c8d1539cd92661703ceb8a4d518a1 > {noformat} > The truncateTableProcedue will retry forever and never get success. > A attached unit test shows everything. -- This message was sent by Atlassian JIRA (v6.3.4#6332)