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 C8AA31045D for ; Thu, 20 Mar 2014 11:38:45 +0000 (UTC) Received: (qmail 98774 invoked by uid 500); 20 Mar 2014 11:38:45 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 98458 invoked by uid 500); 20 Mar 2014 11:38:43 -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 98443 invoked by uid 99); 20 Mar 2014 11:38:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 11:38:42 +0000 Date: Thu, 20 Mar 2014 11:38:42 +0000 (UTC) From: "LiJianyin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-10803) "mutateRow" maybe fail when Region Server restarted(or killed) or Region Balance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 LiJianyin created HBASE-10803: --------------------------------- Summary: "mutateRow" maybe fail when Region Server restarted(or killed) or Region Balance Key: HBASE-10803 URL: https://issues.apache.org/jira/browse/HBASE-10803 Project: HBase Issue Type: Bug Affects Versions: 0.96.1.1 Environment: hbase0.96.1.1 hadoop2.2 jdk1.7 5 Region Server Reporter: LiJianyin found that the operation "mutateRow" maybe fail if Region Server restarted(or killed) or Region Balance, but the java client didnot throw exceptions and there was no exception in the server's log either. the client code : HTableInterface table = connection.getTable(TABLE_NAME); Delete d = new Delete(Bytes.toBytes(rowkey), time); d.deleteColumns(FAMILY, Bytes.toBytes(id), time); Put p = new Put(Bytes.toBytes(rowkey)); p.add(FAMILY_DEL, Bytes.toBytes(id), time, Bytes.toBytes(value)); RowMutations rm = new RowMutations(Bytes.toBytes(rowkey)); rm.add(d); rm.add(p); table.mutateRow(rm); table.close(); the test data: Operator Type: put; mutateRow(delete+put) Operator Total Count:202194822 put:160866148 mutateRow:41328674 All put correct, but 161 mutateRow incorrect (161 data was not mutateRowed in fact). then we checked log when the time mutateRow failed, NO EXCEPTION THROWED, found that as follow: 39 failed hbase auto region-balance 44 failed hbase region server killed 59 failed hbase region server restart 19 failed hadoop datanode restart -- This message was sent by Atlassian JIRA (v6.2#6252)