Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 18158 invoked from network); 25 Mar 2011 21:05:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 21:05:43 -0000 Received: (qmail 33793 invoked by uid 500); 25 Mar 2011 21:05:43 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 33762 invoked by uid 500); 25 Mar 2011 21:05: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 33754 invoked by uid 99); 25 Mar 2011 21:05:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 21:05:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 21:05:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E3F3D4E3EF for ; Fri, 25 Mar 2011 21:05:05 +0000 (UTC) Date: Fri, 25 Mar 2011 21:05:05 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1766622180.12341.1301087105930.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1600369857.6638.1300901885940.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (HBASE-3693) isMajorCompaction() check triggers lots of listStatus DFS RPC calls from HBase 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-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-3693. -------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] Committed to TRUNK (not to branch since only an 'improvement'). Nice patch Liyin. Thanks. > isMajorCompaction() check triggers lots of listStatus DFS RPC calls from HBase > ------------------------------------------------------------------------------ > > Key: HBASE-3693 > URL: https://issues.apache.org/jira/browse/HBASE-3693 > Project: HBase > Issue Type: Improvement > Reporter: Kannan Muthukkaruppan > Assignee: Liyin Tang > Attachments: Hbase-3693[r1085248]_2.patch, Hbase-3693[r1085306].patch > > > We noticed that there are lots of listStatus calls on the ColumnFamily directories within each region, coming from this codepath: > {code} > compactionSelection() > --> isMajorCompaction > --> getLowestTimestamp() > --> FileStatus[] stats = fs.listStatus(p); > {code} > So on every compactionSelection() we're taking this hit. While not immediately an issue, just from log inspection, this accounts for quite a large number of RPCs to namenode at the moment and seems like an unnecessary load to be sending to the namenode. > Seems like it would be easy to cache the timestamp for each opened/created StoreFile, in memory, in the region server, and avoid going to DFS each time for this information. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira