Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B81CFDEE1 for ; Tue, 10 Jul 2012 17:50:55 +0000 (UTC) Received: (qmail 8691 invoked by uid 500); 10 Jul 2012 17:50:55 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 8646 invoked by uid 500); 10 Jul 2012 17:50:55 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 8637 invoked by uid 99); 10 Jul 2012 17:50:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 17:50:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 17:50:48 +0000 Received: by wgbed3 with SMTP id ed3so178791wgb.20 for ; Tue, 10 Jul 2012 10:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PsHusTr8RBuFiBHvF9xKTM4SNW2I7TuWyhNF4OWJS28=; b=Ha45P682G9IAnSOb/ennVo6mm71/SR9WEAVX1grROmU6et16vRqZOPsvgZgGJOTUBC YOQLcJNCZ2DD4ALwyQ4/L/Kz271ynFSvY5XD+A+f3okmXe7yl97d5JcMrFhSzW2FdP9c lfg9p833VJ+v6Iu9XQKfuaqv9csAsVJzwxV/YneE7TWkOKHrvdTJjm6qHQaSD5VoWJTo dMH3JCBRxT4sizvGGe2g2MCTVcP+NDDYhD2itivK3cmvt3Ftbnmr+r1c3m4sIs3tcaPn ytgawsFw8/0UPl1dKU+vQ96fruuBdWG0FQv6iZYXTiGIoK1iTlkZ++ig7PqCN6k+74wM xEkg== MIME-Version: 1.0 Received: by 10.216.226.140 with SMTP id b12mr17858763weq.216.1341942628187; Tue, 10 Jul 2012 10:50:28 -0700 (PDT) Received: by 10.216.12.205 with HTTP; Tue, 10 Jul 2012 10:50:28 -0700 (PDT) In-Reply-To: References: <1341534984.68303.YahooMailNeo@web121705.mail.ne1.yahoo.com> <1341875234.78322.YahooMailNeo@web121704.mail.ne1.yahoo.com> <1341877583.95448.YahooMailNeo@web121706.mail.ne1.yahoo.com> Date: Tue, 10 Jul 2012 10:50:28 -0700 Message-ID: Subject: Re: HBase 0.94.1 From: Ted Yu To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=001636e1ec86a97d6504c47d5d55 --001636e1ec86a97d6504c47d5d55 Content-Type: text/plain; charset=ISO-8859-1 Please take a look at my tentative patch on HBASE-6365 and provide your feedback. Cheers On Tue, Jul 10, 2012 at 10:34 AM, Todd Lipcon wrote: > I don't think we should be concerned with people directly extending > the various metrics classes. They're not meant to be a "user API" IMO. > We should annotate them as private. But the external-facing interface > (ie the JMX output) should be treated as an interface. > > If we have to break them at some point without a deprecation path, +1 > for doing so in 0.96. > > On Tue, Jul 10, 2012 at 10:32 AM, Ted Yu wrote: > > Todd brought up a good point. > > > > MetricsBase class only exists in old metrics framework but not metrics2 > > framework. > > So I am not sure whether the actual names of (all) the metrics exposed > > would be kept consistent. > > > > Since MetricsHistogram, etc, are public, we do need to deprecate them in > > 0.94 in case some users extend these classes. > > > > Would listen to metrics experts' comments. > > > > On Tue, Jul 10, 2012 at 10:14 AM, Todd Lipcon wrote: > > > >> I think there's an important distinction between the Java API of > >> metrics, and the implicit interface that the metrics themselves > >> expose. IMO, we can completely change the implementation of metrics > >> (e.g. class names and java APIs) so long as the actual names of the > >> metrics exposed are kept consistent. If we make a change there, we > >> should provide a deprecation path if at all possible - otherwise we > >> need a big warning on upgrade so that operators know what they're > >> getting themselves into. > >> > >> -Todd > >> > >> On Tue, Jul 10, 2012 at 9:57 AM, Ted Yu wrote: > >> > There is no annotation declaring whether the current metrics are > stable > >> API: > >> > > >> > public class MetricsHistogram extends MetricsBase { > >> > > >> > LarsH has endorsed marking the current metrics classes deprecated in > his > >> > later reply to this thread. > >> > > >> > Correct me if my interpretation is wrong. > >> > > >> > On Tue, Jul 10, 2012 at 9:23 AM, Stack wrote: > >> > > >> >> On Tue, Jul 10, 2012 at 1:46 AM, lars hofhansl > >> >> wrote: > >> >> > 0.94 is already out and did not have these deprecated. So > deprecating > >> >> them now in a point release is a bit strange. > >> >> > Not -1'ing it, just raising that thought here. > >> >> > > >> >> > As said below because of HBASE-6311 0.94.1 should get out soon. If > >> push > >> >> comes to shuff are folks ok with: > >> >> > 1. deprecating in a point release > >> >> > 2. maybe doing that in 0.94.2 > >> >> > ? > >> >> > > >> >> > >> >> In the past, we'd remove public APIs after deprecating them across a > >> >> full major release: i.e. we'd deprecate something we want to remove > in > >> >> 0.96.0 in 0.94.0 (not 0.94.1). Are the metrics changes to public > >> >> "stable" APIs? If so, I'd ask why change our convention now? If > >> >> they are "evolving", we might bend the rules. > >> >> > >> >> Regards, what goes into 0.94.1, its up to the release manager. They > >> >> can entertain petitions regards what to include but ultimately its up > >> >> to the RM when it happens and what is in it. > >> >> > >> >> St.Ack > >> >> > >> > >> > >> > >> -- > >> Todd Lipcon > >> Software Engineer, Cloudera > >> > > > > -- > Todd Lipcon > Software Engineer, Cloudera > --001636e1ec86a97d6504c47d5d55--