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 9CBD2200D6A for ; Sat, 30 Dec 2017 09:59:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 91C68160C21; Sat, 30 Dec 2017 08:59:04 +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 D6A61160C11 for ; Sat, 30 Dec 2017 09:59:03 +0100 (CET) Received: (qmail 5038 invoked by uid 500); 30 Dec 2017 08:59:02 -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 5027 invoked by uid 99); 30 Dec 2017 08:59:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Dec 2017 08:59:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 59811C2345 for ; Sat, 30 Dec 2017 08:59:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id y4Y1Q-3tMByK for ; Sat, 30 Dec 2017 08:59:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 200915F254 for ; Sat, 30 Dec 2017 08:59:01 +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 59768E08C2 for ; Sat, 30 Dec 2017 08:59:00 +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 16CE6240DA for ; Sat, 30 Dec 2017 08:59:00 +0000 (UTC) Date: Sat, 30 Dec 2017 08:59:00 +0000 (UTC) From: "Xiang Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-19672) Correct comments for default values of major compaction in SortedCompactionPolicy#getNextMajorCompactTime() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 30 Dec 2017 08:59:04 -0000 [ https://issues.apache.org/jira/browse/HBASE-19672?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiang Li updated HBASE-19672: ----------------------------- Status: Open (was: Patch Available) > Correct comments for default values of major compaction in SortedCompacti= onPolicy#getNextMajorCompactTime() > -------------------------------------------------------------------------= ---------------------------------- > > Key: HBASE-19672 > URL: https://issues.apache.org/jira/browse/HBASE-19672 > Project: HBase > Issue Type: Bug > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Minor > Attachments: HBASE-19672.master.000.patch > > > {code:title=3Dhbase-server/src/main/java/org/apache/hadoop/hbase/regionse= rver/compactions/SortedCompactionPolicy.java|borderStyle=3Dsolid} > public long getNextMajorCompactTime(Collection filesToCompact= ) { > { > // default =3D 24hrs > long period =3D comConf.getMajorCompactionPeriod(); > ... > // default =3D 20% =3D +/- 4.8 hrs > double jitterPct =3D comConf.getMajorCompactionJitter(); > ... > } > {code} > If I get it correctly, currently, default major compaction period is 7 da= ys=EF=BC=8Cand jitter is 0.5, so 3.5 days. > We could either remove those comments, or add \{@link\} to link to the de= fault value definitions. -- This message was sent by Atlassian JIRA (v6.4.14#64029)