Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io 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 D6536160C26 for ; Wed, 3 Jan 2018 02:42:07 +0100 (CET) Received: (qmail 58425 invoked by uid 500); 3 Jan 2018 01:42:07 -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 58280 invoked by uid 99); 3 Jan 2018 01:42:06 -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; Wed, 03 Jan 2018 01:42:06 +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 EFE991A07DB for ; Wed, 3 Jan 2018 01:42:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id EMaJU6CFWXCf for ; Wed, 3 Jan 2018 01:42:05 +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 2B7465FB96 for ; Wed, 3 Jan 2018 01:42:04 +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 C2DA2E256D for ; Wed, 3 Jan 2018 01:42:01 +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 C0DDE24106 for ; Wed, 3 Jan 2018 01:42:00 +0000 (UTC) Date: Wed, 3 Jan 2018 01:42:00 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19675) Miscellaneous HStore Class Improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 03 Jan 2018 01:42:08 -0000 [ https://issues.apache.org/jira/browse/HBASE-19675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16308999#comment-16308999 ] Hudson commented on HBASE-19675: -------------------------------- FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #4333 (See [https://builds.apache.org/job/HBase-Trunk_matrix/4333/]) HBASE-19675 Miscellaneous HStore Class Improvements. (appy: rev a47afc84cd17e1c01a20760cb3b007ca9afa5d35) * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java > Miscellaneous HStore Class Improvements > --------------------------------------- > > Key: HBASE-19675 > URL: https://issues.apache.org/jira/browse/HBASE-19675 > Project: HBase > Issue Type: Improvement > Components: hbase > Affects Versions: 3.0.0 > Reporter: BELUGA BEHR > Assignee: BELUGA BEHR > Priority: Minor > Fix For: 2.0.0-beta-2 > > Attachments: HBASE-19675.1.patch, HBASE-19675.2.patch > > > * Remove logging code guards in favor of slf4j parameters > * Use {{CollectionsUtils.isEmpty()}} consistently > * Small check-style fixes > * Remove flow control logic from {{trace}} statement {code} if (LOG.isTraceEnabled()) { > LOG.trace("No compacted files to archive"); > return; > }{code} > * Replace two calls to the same getter to ensure that the value doesn't change between calls {code} if (getCompactedFiles() != null) { > for (HStoreFile file : getCompactedFiles()) { > name2File.put(file.getFileInfo().getActiveFileName(), file); > } > }{code} > * Make 'inputFiles' a Set for fast calls to {{contains}} method instead {code} //some of the input files might already be deleted > List inputStoreFiles = new ArrayList<>(compactionInputs.size()); > for (HStoreFile sf : this.getStorefiles()) { > if (inputFiles.contains(sf.getPath().getName())) { > inputStoreFiles.add(sf); > } > }{code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)