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 C952A11C70 for ; Fri, 12 Sep 2014 22:30:34 +0000 (UTC) Received: (qmail 44351 invoked by uid 500); 12 Sep 2014 22:30:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 44302 invoked by uid 500); 12 Sep 2014 22:30: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 44290 invoked by uid 99); 12 Sep 2014 22:30:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 22:30:34 +0000 Date: Fri, 12 Sep 2014 22:30:34 +0000 (UTC) From: "Jerry He (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11965) Optimize locking in HRegion 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-11965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132227#comment-14132227 ] Jerry He commented on HBASE-11965: ---------------------------------- Trying to understand the bottleneck for the cases you mentioned. Won't they only be acquiring region read lock, and concurrent read locks are allowed? > Optimize locking in HRegion > --------------------------- > > Key: HBASE-11965 > URL: https://issues.apache.org/jira/browse/HBASE-11965 > Project: HBase > Issue Type: Bug > Components: Performance > Reporter: Vladimir Rodionov > Assignee: Vladimir Rodionov > > Described in this thread: > http://mail-archives.apache.org/mod_mbox/hbase-dev/201409.mbox/%3CCAAg3a2qmWJtQbdAk7PrX%2BW8SZWxsYhNggM5f2RNkGTXUri34YQ%40mail.gmail.com%3E > *startRegionOperation* and *closeRegionOperation* in HRegion acquires and releases region-wide lock. The locking happens for every mutation, read and scan next. This is a serious bottleneck if we do: > * Mutli - get on a same region. > * Run multiple scanners on same region. > * Do scan during compaction. > * Access region simultaneously from different threads (most generic case) -- This message was sent by Atlassian JIRA (v6.3.4#6332)