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 8A3BB18B95 for ; Thu, 25 Feb 2016 06:26:19 +0000 (UTC) Received: (qmail 25544 invoked by uid 500); 25 Feb 2016 06:26:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 25465 invoked by uid 500); 25 Feb 2016 06:26: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 25025 invoked by uid 99); 25 Feb 2016 06:26:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2016 06:26:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 633F02C1F68 for ; Thu, 25 Feb 2016 06:26:18 +0000 (UTC) Date: Thu, 25 Feb 2016 06:26:18 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-15205) Do not find the replication scope for every WAL#append() 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-15205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ramkrishna.s.vasudevan updated HBASE-15205: ------------------------------------------- Attachment: HBASE-15205_8.patch Latest patch. Removed replicationScope from FSWALEntry. WALKey construction itself will now have replicationScope. As I said earlier since we are now passing the scope during WALKey construction itself now it is upto us to nullify the scopes in logKey when ever it is not needed. I felt that was not looking clean. Still we are removing HTD from WAL#append() and things work as in previous patches. Now we will call this {code} + if ((!replicationForBulkLoadEnabled && !foundOtherEdits) || logEdit.isReplay()) { + logKey.serializeReplicationScope(false); } {code} instead of setReplciationScope(). Inside WALKEy#serializeReplicationScope() we will just nullify the replicationScope that was passed during construction. > Do not find the replication scope for every WAL#append() > -------------------------------------------------------- > > Key: HBASE-15205 > URL: https://issues.apache.org/jira/browse/HBASE-15205 > Project: HBase > Issue Type: Sub-task > Components: regionserver > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-15204_6.patch, HBASE-15205.patch, HBASE-15205_1.patch, HBASE-15205_2.patch, HBASE-15205_3.patch, HBASE-15205_4.patch, HBASE-15205_6.patch, HBASE-15205_6.patch, HBASE-15205_7.patch, HBASE-15205_8.patch, ScopeWALEdits.jpg, ScopeWALEdits_afterpatch.jpg > > > After the byte[] and char[] the other top contributor for lot of GC (though it is only 2.86%) is the UTF_8.newDecoder. > This happens because for every WAL append we try to calculate the replication scope associate with the families associated with the TableDescriptor. I think per WAL append doing this is very costly and creates lot of garbage. -- This message was sent by Atlassian JIRA (v6.3.4#6332)