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 44FA6200BC2 for ; Thu, 3 Nov 2016 04:59:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4398F160B0C; Thu, 3 Nov 2016 03:59:00 +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 8BAF8160AFB for ; Thu, 3 Nov 2016 04:58:59 +0100 (CET) Received: (qmail 30461 invoked by uid 500); 3 Nov 2016 03:58:58 -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 30434 invoked by uid 99); 3 Nov 2016 03:58:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 03:58:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A0272C1F5A for ; Thu, 3 Nov 2016 03:58:58 +0000 (UTC) Date: Thu, 3 Nov 2016 03:58:58 +0000 (UTC) From: "Yu Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16991) Make the initialization of AsyncConnection asynchronous MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 03 Nov 2016 03:59:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-16991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15631456#comment-15631456 ] Yu Li commented on HBASE-16991: ------------------------------- On the contrary, I think we should make it easy for user to use, HBase is a database not library. Especially when previous released versions (and even latest stable version) supports connection caching, I call this a *behavior change* which causes inconvenience for users. I understand you have some service layer on top of HBase there, but it just proves HBase is not convenient enough to use so you wrapped it up. Honestly I think this is disadvantage of HBase rather than advantage. OTOH, if we depend on the way user uses HBase to make sure of some correctness (like only create a connection per process to avoid too many connections setup to Zookeeper/RS), I think we are not doing good. Maybe this is not the right place to discuss this connection caching topic, but we already brought it up so just let it be (Smile). [~Apache9] [~stack] Thanks. > Make the initialization of AsyncConnection asynchronous > ------------------------------------------------------- > > Key: HBASE-16991 > URL: https://issues.apache.org/jira/browse/HBASE-16991 > Project: HBase > Issue Type: Sub-task > Components: Client > Affects Versions: 2.0.0 > Reporter: Duo Zhang > Assignee: Duo Zhang > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16991-v1.patch, HBASE-16991.patch > > > Now the ConnectionFactory.createAsyncConnection is still blocking. We should make it return a CompletableFuture to make the async client fully asynchronous. -- This message was sent by Atlassian JIRA (v6.3.4#6332)