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 5EE38106E1 for ; Sun, 17 May 2015 19:22:00 +0000 (UTC) Received: (qmail 26023 invoked by uid 500); 17 May 2015 19:22:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 25972 invoked by uid 500); 17 May 2015 19:22:00 -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 25951 invoked by uid 99); 17 May 2015 19:22:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 May 2015 19:22:00 +0000 Date: Sun, 17 May 2015 19:22:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13378) RegionScannerImpl synchronized for READ_UNCOMMITTED Isolation Levels MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13378?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D145= 47291#comment-14547291 ]=20 Lars Hofhansl commented on HBASE-13378: --------------------------------------- bq. "looks fine to me" is the oddest -1 I've ever seen. Touch=C3=A9 :) It's only a -1 until we all agree that the change in behavior is acceptable= . Namely: bq. Up to this point READ_UNCOMMITED meant: You might see partially finishe= d rows. Now it means: You might see partially finished rows, and you may no= t see cells that have existed when the scanner started. We never had the case before that a scanner could not see Cells that existe= d when it started. > RegionScannerImpl synchronized for READ_UNCOMMITTED Isolation Levels > -------------------------------------------------------------------- > > Key: HBASE-13378 > URL: https://issues.apache.org/jira/browse/HBASE-13378 > Project: HBase > Issue Type: New Feature > Reporter: John Leach > Assignee: John Leach > Priority: Minor > Attachments: HBASE-13378.patch, HBASE-13378.txt > > Original Estimate: 2h > Time Spent: 2h > Remaining Estimate: 0h > > This block of code below coupled with the close method could be changed s= o that READ_UNCOMMITTED does not synchronize. =20 > {CODE:JAVA} > // synchronize on scannerReadPoints so that nobody calculates > // getSmallestReadPoint, before scannerReadPoints is updated. > IsolationLevel isolationLevel =3D scan.getIsolationLevel(); > synchronized(scannerReadPoints) { > this.readPt =3D getReadpoint(isolationLevel); > scannerReadPoints.put(this, this.readPt); > } > {CODE} > This hotspots for me under heavy get requests. -- This message was sent by Atlassian JIRA (v6.3.4#6332)