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 4BF48112FB for ; Mon, 18 Aug 2014 21:21:21 +0000 (UTC) Received: (qmail 74981 invoked by uid 500); 18 Aug 2014 21:21:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 74935 invoked by uid 500); 18 Aug 2014 21:21:21 -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 74921 invoked by uid 99); 18 Aug 2014 21:21:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 21:21:21 +0000 Date: Mon, 18 Aug 2014 21:21:21 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11232) Region fail to release the updatelock for illegal CF in multi row mutations 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-11232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14101326#comment-14101326 ] Lars Hofhansl commented on HBASE-11232: --------------------------------------- I'll take another look and then commit to 0.94. > Region fail to release the updatelock for illegal CF in multi row mutations > --------------------------------------------------------------------------- > > Key: HBASE-11232 > URL: https://issues.apache.org/jira/browse/HBASE-11232 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.94.19 > Reporter: Liu Shaohui > Assignee: Liu Shaohui > Fix For: 0.94.23 > > Attachments: HBASE-11232-0.94.diff > > > The failback code in processRowsWithLocks did not check the column family. If there is an illegal CF in the muation, it will throw NullPointException and the update lock will not be released. So the region can not be flushed and compacted. > HRegion #4946 > {code} > if (!mutations.isEmpty() && !walSyncSuccessful) { > LOG.warn("Wal sync failed. Roll back " + mutations.size() + > " memstore keyvalues for row(s):" + > processor.getRowsToLock().iterator().next() + "..."); > for (KeyValue kv : mutations) { > stores.get(kv.getFamily()).rollback(kv); > } > } > // 11. Roll mvcc forward > if (writeEntry != null) { > mvcc.completeMemstoreInsert(writeEntry); > writeEntry = null; > } > if (locked) { > this.updatesLock.readLock().unlock(); > locked = false; > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)