Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB70B200C06 for ; Fri, 27 Jan 2017 22:30:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EA115160B5B; Fri, 27 Jan 2017 21:30:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3E54F160B40 for ; Fri, 27 Jan 2017 22:30:32 +0100 (CET) Received: (qmail 89470 invoked by uid 500); 27 Jan 2017 21:30:31 -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 89458 invoked by uid 99); 27 Jan 2017 21:30:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2017 21:30:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 89E2C1A01F6 for ; Fri, 27 Jan 2017 21:30:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id M_bA7CDbaqfu for ; Fri, 27 Jan 2017 21:30:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4ABA95FE1E for ; Fri, 27 Jan 2017 21:30:29 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E09DDE0485 for ; Fri, 27 Jan 2017 21:30:26 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 62A3F2529B for ; Fri, 27 Jan 2017 21:30:25 +0000 (UTC) Date: Fri, 27 Jan 2017 21:30:25 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-17280) Add mechanism to control hbase cleaner behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 Jan 2017 21:30:33 -0000 [ https://issues.apache.org/jira/browse/HBASE-17280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843517#comment-15843517 ] Ted Yu edited comment on HBASE-17280 at 1/27/17 9:30 PM: --------------------------------------------------------- {code} + * @param enable if true enables the cleaner + * @return the previous state + * @throws MasterNotRunningException + */ + public boolean setCleanerChoreRunning(final boolean on) throws IOException; {code} Correct name of parameter in javadoc - on, not enable. {code} + .setCleanerChoreRunning(getRpcController(), RequestConverter.buildSetCleanerChoreRunningRequest(on)) {code} Indentation is two spaces per indent. Line length should be no longer than 100 {code} + public static RunCleanerChoreRequest buildCleanerChoreRequest() { + return CLEANERCHORE_REQUEST; {code} The request is to run cleaner. Name the method buildRunCleanerChoreRequest Name cleaner_enabled.rb cleaner_chore_enabled.rb Name cleaner_run.rb cleaner_chore_run.rb Name cleaner_switch.rb cleaner_chore_switch.rb was (Author: yuzhihong@gmail.com): + * @param enable if true enables the cleaner + * @return the previous state + * @throws MasterNotRunningException + */ + public boolean setCleanerChoreRunning(final boolean on) throws IOException; Correct name of parameter in javadoc - on, not enable. + .setCleanerChoreRunning(getRpcController(), RequestConverter.buildSetCleanerChoreRunningRequest(on)) Indentation is two spaces per indent. Line length should be no longer than 100 + public static RunCleanerChoreRequest buildCleanerChoreRequest() { + return CLEANERCHORE_REQUEST; The request is to run cleaner. Name the method buildRunCleanerChoreRequest Name cleaner_enabled.rb cleaner_chore_enabled.rb Name cleaner_run.rb cleaner_chore_run.rb Name cleaner_switch.rb cleaner_chore_switch.rb > Add mechanism to control hbase cleaner behavior > ----------------------------------------------- > > Key: HBASE-17280 > URL: https://issues.apache.org/jira/browse/HBASE-17280 > Project: HBase > Issue Type: Improvement > Components: Client, hbase, shell > Affects Versions: 2.0.0, 1.2.0 > Reporter: Ajay Jadhav > Priority: Minor > Fix For: 2.0.0, 1.2.0 > > Attachments: HBASE-17280.branch-1.2.patch, HBASE-17280.branch-2.0.patch, HBASE-17280.master.003.patch, HBASE-17280.v1-branch-1.2.patch, HBASE-17280.v2-branch-1.2.patch, HBASE-17280.v2-branch-2.patch > > > Cleaner is used to get rid of archived HFiles and old WALs in HBase. > In the case of heavy workload, cleaner can affect query performance by creating a lot of connections to perform costly reads/ writes against underlying filesystem. > This patch allows the user to control HBase cleaner behavior by providing shell commands to enable/ disable and manually run it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)