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 B878E10279 for ; Wed, 5 Jun 2013 03:39:26 +0000 (UTC) Received: (qmail 39748 invoked by uid 500); 5 Jun 2013 03:39:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 39663 invoked by uid 500); 5 Jun 2013 03:39:23 -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 39265 invoked by uid 99); 5 Jun 2013 03:39:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 03:39:22 +0000 Date: Wed, 5 Jun 2013 03:39:22 +0000 (UTC) From: "Liu Shaohui (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-8690) Reduce unnecessary getFileStatus hdfs calls in TTL hfile and hlog cleanners MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Liu Shaohui created HBASE-8690: ---------------------------------- Summary: Reduce unnecessary getFileStatus hdfs calls in TTL hfile and hlog cleanners Key: HBASE-8690 URL: https://issues.apache.org/jira/browse/HBASE-8690 Project: HBase Issue Type: Improvement Components: master Reporter: Liu Shaohui Priority: Minor For each in file in archive dir, the TimeToLiveHFileCleaner need call getFileStatus to get the modify time of file. Actually the CleanerChore have had the file status when listing its parent dir. When we set the TTL to 7 days in our cluster for data security, the number of files left in archive dir is up to 65 thousands. In each clean period, TimeToLiveHFileCleaner will generate ten thousand getFileStatus call in a short time, which is very heavy for hdfs namenode. Fix: Change the path param to FileStatus in isFileDeletable method and reduce unnecessary getFileStatus hdfs calls in TTL cleaners. -- 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