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 71DC3200B6B for ; Fri, 9 Sep 2016 19:58:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 704EE160AC2; Fri, 9 Sep 2016 17:58:28 +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 BB10D160AA3 for ; Fri, 9 Sep 2016 19:58:27 +0200 (CEST) Received: (qmail 96884 invoked by uid 500); 9 Sep 2016 17:58:21 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 96732 invoked by uid 99); 9 Sep 2016 17:58:20 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 17:58:20 +0000 Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6F7A81A0187; Fri, 9 Sep 2016 17:58:20 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id l131so49416123lfl.2; Fri, 09 Sep 2016 10:58:20 -0700 (PDT) X-Gm-Message-State: AE9vXwOdlKHgE3zjEuljGkpGnMT3mgpLYptw/pMsZ/4qFe9jR+0u0bcNw+uwbIQQWm7AGUokzVZvebhsfcoXpw== X-Received: by 10.25.74.207 with SMTP id x198mr1817279lfa.12.1473443899025; Fri, 09 Sep 2016 10:58:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.99.212 with HTTP; Fri, 9 Sep 2016 10:57:38 -0700 (PDT) In-Reply-To: References: From: Andrew Purtell Date: Fri, 9 Sep 2016 10:57:38 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DISCUSS] Drop the support of jdk7 at a future 1.x release To: "user@hbase.apache.org" Cc: dev Content-Type: multipart/alternative; boundary=94eb2c1a194e32b66a053c16e440 archived-at: Fri, 09 Sep 2016 17:58:28 -0000 --94eb2c1a194e32b66a053c16e440 Content-Type: text/plain; charset=UTF-8 Agreed, makes sense interested parties should help Matteo get 2.0 out this year. I'm on board. On Fri, Sep 9, 2016 at 10:50 AM, Sean Busbey wrote: > This would be a very big breaking change in release numbering that goes > against our compatibility guidelines. We only drop support for Java > versions on major releases. > > If we want features that require newer jdks sooner, we should make major > releases sooner. > > On Sep 8, 2016 20:54, "Duo Zhang" wrote: > > > The main reason is the asynchronous api we want to introduce in HBase > > today. See HBASE-13784 and HBASE-16505. > > > > The CompletableFuture in java8 is very suitable to use as the return > value > > of a async method. We can not use it if we still want to support java7, > and > > sadly, there is no candidate which is good enough to replace > > CompletableFuture. ListenableFuture in guava or Promise in netty are > good, > > but we do not want to expose third-party classes in our public > > API(especially guava, you know...). And we can also implement our own > > ListenableFuture but it just a copy of guava. Or introduce a simple > > Callback interface which does not need much code(for us) but this is a > code > > style around 2000s so people will not like it... > > > > And luckily, I found that in our documentation > > > > http://hbase.apache.org/book.html#basic.prerequisites > > > > We only say that 1.3 will be compatible with jdk7, not all 1.x. > > > > So here I propose that we drop the support of jdk7 in a future 1.x > release, > > maybe 1.4? Thus we can use CompletableFuture in both master and branch-1. > > > > Thanks. > > > -- Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White) --94eb2c1a194e32b66a053c16e440--