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 F008F200B4A for ; Tue, 5 Jul 2016 21:06:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EEC90160A2C; Tue, 5 Jul 2016 19:06:12 +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 422B3160A60 for ; Tue, 5 Jul 2016 21:06:12 +0200 (CEST) Received: (qmail 49141 invoked by uid 500); 5 Jul 2016 19:06:11 -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 49100 invoked by uid 99); 5 Jul 2016 19:06:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 19:06:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1C2CE2C02A4 for ; Tue, 5 Jul 2016 19:06:11 +0000 (UTC) Date: Tue, 5 Jul 2016 19:06:11 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16176) Bug fixes/improvements on HBASE-15650 Remove TimeRangeTracker as point of contention when many threads reading a StoreFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 19:06:13 -0000 [ https://issues.apache.org/jira/browse/HBASE-16176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-16176: -------------------------- Status: Patch Available (was: Open) > Bug fixes/improvements on HBASE-15650 Remove TimeRangeTracker as point of contention when many threads reading a StoreFile > -------------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-16176 > URL: https://issues.apache.org/jira/browse/HBASE-16176 > Project: HBase > Issue Type: Sub-task > Components: Performance > Reporter: stack > Assignee: stack > Fix For: 2.0.0, 1.3.0, 1.4.0, 0.98.21 > > Attachments: HBASE-16176.branch-1.3.001.patch, HBASE-16176.branch-1.3.002.patch > > > Debugging the parent issue, came up with some improvements on old HBASE-15650 "Remove TimeRangeTracker as point of contention when many threads reading a StoreFile". Lets get them in. Here are the changes: > {code} > 6 Change HFile Writer constructor so we pass in the TimeRangeTracker, if one, > 7 on construction rather than set later (the flag and reference were not > 8 volatile so could have made for issues in concurrent case) 2. Make sure the > 9 construction of a TimeRange from a TimeRangeTracer on open of an HFile Reader > 10 never makes a bad minimum value, one that would preclude us reading any > 11 values from a file (add a log and set min to 0) > 12 M hbase-common/src/main/java/org/apache/hadoop/hbase/io/TimeRange.java > 13 Call through to next constructor (if minStamp was 0, we'd skip setting allTime=true) > 14 M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java > 15 Add constructor override that takes a TimeRangeTracker (set when flushing but > 16 not when compacting) > 17 M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java > 18 Add override creating an HFile in tmp that takes a TimeRangeTracker > 19 M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFile.java > 20 Add override for HFile Writer that takes a TimeRangeTracker > 21 Take it on construction instead of having it passed by a setter later (flags > 22 and reference set by the setter were not volatile... could have been prob > 23 in concurrent case) > 24 M hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java > 25 Log WARN if bad initial TimeRange value (and then 'fix' it) > 26 M hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestTimeRangeTracker.java > 27 A few tests to prove serialization works as expected and that we'll get a bad min if > 28 not constructed properly. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)