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 745B9F3D9 for ; Mon, 25 Mar 2013 18:17:18 +0000 (UTC) Received: (qmail 28861 invoked by uid 500); 25 Mar 2013 18:17:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 28818 invoked by uid 500); 25 Mar 2013 18:17:18 -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 28807 invoked by uid 99); 25 Mar 2013 18:17:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 18:17:18 +0000 Date: Mon, 25 Mar 2013 18:17:18 +0000 (UTC) From: "Amitanand Aiyer (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-6813) Optimise the time spent holding the updateLock under log roll 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-6813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612935#comment-13612935 ] Amitanand Aiyer commented on HBASE-6813: ---------------------------------------- Overall, we have seen that the update lock used to be held for about 500-700ms before the diff. Will get some numbers on how much writing the first dummy entry contributes. > Optimise the time spent holding the updateLock under log roll > ------------------------------------------------------------- > > Key: HBASE-6813 > URL: https://issues.apache.org/jira/browse/HBASE-6813 > Project: HBase > Issue Type: Improvement > Reporter: Amitanand Aiyer > Assignee: Amitanand Aiyer > Priority: Minor > Fix For: 0.89-fb > > > Log roll entails syncing the old log, closing it and creating a new log file. > We currently do all the 3 steps while holding the updateLock. This causes latency spikes for puts during this time. > We only need to sync the old log under the lock. Creating the new file, can be done before grabbing the lock. Closing the old file can be done after we release the lock. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira