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 7D3E617321 for ; Sat, 7 Feb 2015 00:32:36 +0000 (UTC) Received: (qmail 38140 invoked by uid 500); 7 Feb 2015 00:32:36 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 38095 invoked by uid 500); 7 Feb 2015 00:32:36 -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 38084 invoked by uid 99); 7 Feb 2015 00:32:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Feb 2015 00:32:36 +0000 Date: Sat, 7 Feb 2015 00:32:36 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-12979) Use setters instead of return values for handing back statistics from HRegion methods 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-12979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14310296#comment-14310296 ] Andrew Purtell edited comment on HBASE-12979 at 2/7/15 12:32 AM: ----------------------------------------------------------------- bq. Why is the version 0.98.10.1? Did I miss anything. Maybe... the tail of the description on this issue: {quote} Officially we don't support use of HRegion (HBASE-12566) but we do not need to go out of our way to break things (smile) so I would also like to make a patch release containing just this change to help out our sister project. {quote} Edit: Yeah, needs 0.98.11 too was (Author: apurtell): bq. Why is the version 0.98.10.1? Did I miss anything. Maybe... the tail of the description on this issue: {quote} Officially we don't support use of HRegion (HBASE-12566) but we do not need to go out of our way to break things (smile) so I would also like to make a patch release containing just this change to help out our sister project. {quote} > Use setters instead of return values for handing back statistics from HRegion methods > ------------------------------------------------------------------------------------- > > Key: HBASE-12979 > URL: https://issues.apache.org/jira/browse/HBASE-12979 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.98.10 > Reporter: Andrew Purtell > Assignee: Jesse Yates > Labels: phoenix > Fix For: 2.0.0, 1.0.1, 1.1.0, 0.98.11, 0.98.10.1 > > Attachments: hbase-12979-v0-0.98.patch, hbase-12979-v0-master.patch > > > In HBASE-5162 (and backports such as HBASE-12729) we modified some HRegion methods to return statistics for consumption by callers. The statistics are ultimately passed back to the client as load feedback. > [~lhofhansl] thinks handing back this information as return values from HRegion methods is a weird mix of concerns. This also produced a difficult to anticipate binary compatibility issue with Phoenix. There was no compile time issue because the code of course was not structured to assign from a method returning void, yet the method signature changes so the JVM cannot resolve it if older Phoenix binaries are installed into a 0.98.10 release. Let's change the HRegion methods back to returning 'void' and use setters instead. Officially we don't support use of HRegion (HBASE-12566) but we do not need to go out of our way to break things (smile) so I would also like to make a patch release containing just this change to help out our sister project. -- This message was sent by Atlassian JIRA (v6.3.4#6332)