Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D47AD17849 for ; Wed, 1 Oct 2014 23:13:34 +0000 (UTC) Received: (qmail 30942 invoked by uid 500); 1 Oct 2014 23:13:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 30896 invoked by uid 500); 1 Oct 2014 23:13:34 -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 30884 invoked by uid 99); 1 Oct 2014 23:13:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2014 23:13:34 +0000 Date: Wed, 1 Oct 2014 23:13:34 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12065) Import tool is not restoring multiple DeleteFamily markers of a row MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-12065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155760#comment-14155760 ] Lars Hofhansl commented on HBASE-12065: --------------------------------------- +1 > Import tool is not restoring multiple DeleteFamily markers of a row > -------------------------------------------------------------------- > > Key: HBASE-12065 > URL: https://issues.apache.org/jira/browse/HBASE-12065 > Project: HBase > Issue Type: Bug > Components: util > Affects Versions: 0.98.2 > Reporter: Maddineni Sukumar > Assignee: Maddineni Sukumar > Priority: Minor > Fix For: 2.0.0, 0.98.7, 0.99.1, 0.94.25 > > Attachments: HBASE-12065.patch, hbase-12065-fix-2.patch, hbase-12065-fix.patch, hbase-12065-unit-test.patch > > > When a row has more than one DeleteFamily markers, Import tool is not restoring all DeleteFamily markers. > Scenario: Insert entries into hbase in below order > Put Row1 with Value-A > Delete Row1 with DeleteFamily Marker > Put Row1 with Value-B > Delete Row1 with DeleteFamily Marker > Using Export tool export this data and Import it into another table, you will see below entries > Delete Row1 with DeleteFamily Marker > Put Row1 with Value-B > Put Row1 with Value-A > One DeleteFamily marker is missing here... In Import tool, Importer.writeResult() method we are batching all deletes into a single Delete request and pushing into hbase. Here we are pushing only one delete family marker into hbase table. > I tried same with normal HTable.delete command also. > If you pass multiple DeleteFamily markers of a row in a single Delete request to hbase then table is maintaining only one. > If that is the expected behavior of hbase then we should change logic in Import tool to push DeleteFamily markers individually one by one. -- This message was sent by Atlassian JIRA (v6.3.4#6332)