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 B79EE1107B for ; Thu, 11 Sep 2014 03:11:34 +0000 (UTC) Received: (qmail 35505 invoked by uid 500); 11 Sep 2014 03:11:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 35456 invoked by uid 500); 11 Sep 2014 03:11:34 -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 35438 invoked by uid 99); 11 Sep 2014 03:11:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 03:11:34 +0000 Date: Thu, 11 Sep 2014 03:11:34 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11936) IsolationLevel must be attribute of a Query not a Scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129564#comment-14129564 ] Enis Soztutar commented on HBASE-11936: --------------------------------------- Yeah, Anoop is right. I did a test for this in HBASE-10841, however I was not able to get the proper return values for override methods from the subclasses. We should override the method in both Scan and Get, and cast the appropriate return type. {code} public Scan setIsolationLevel() { return (Scan)super.setIsolationLevel(); } {code} > IsolationLevel must be attribute of a Query not a Scan > ------------------------------------------------------ > > Key: HBASE-11936 > URL: https://issues.apache.org/jira/browse/HBASE-11936 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 0.98.6 > Reporter: Vladimir Rodionov > Assignee: Vladimir Rodionov > Labels: features > Fix For: 2.0.0, 0.98.7, 0.99.1 > > Attachments: HBASE_11936.patch > > > The Get operation is implemented in HBase as a Scan. The default isolation level for Scan is READ_COMMITTED. The API to change the isolation level is part of Scan class and there is no way for Get operation to change this from default. We should move this API up to Query (which is a parent of both: Scan and Get). -- This message was sent by Atlassian JIRA (v6.3.4#6332)