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 E533C17CCE for ; Thu, 2 Apr 2015 07:21:54 +0000 (UTC) Received: (qmail 78786 invoked by uid 500); 2 Apr 2015 07:21:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 78747 invoked by uid 500); 2 Apr 2015 07:21:53 -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 78710 invoked by uid 99); 2 Apr 2015 07:21:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2015 07:21:53 +0000 Date: Thu, 2 Apr 2015 07:21:53 +0000 (UTC) From: "Mikhail Antonov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13349) Reduce NeedUnmanagedConnectionException issues 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-13349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14392284#comment-14392284 ] Mikhail Antonov commented on HBASE-13349: ----------------------------------------- [~ndimiduk], [~sduskis] if we don't want to pull patch removing unmanaged connections altogether to 1.1, wondering what would be the better approach here, should we try to improve the usability of concepts which perhaps would be extinct after 1.1, or just leave things as they are? > Reduce NeedUnmanagedConnectionException issues > ---------------------------------------------- > > Key: HBASE-13349 > URL: https://issues.apache.org/jira/browse/HBASE-13349 > Project: HBase > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Solomon Duskis > Fix For: 1.1.0 > > > Managed connections are a bit of a pain when it comes to the new API. If a connection is managed, then connection.getAdmin() and connection.getTable(..) throw NeedUnmanagedConnectionException. Is that really necessary, i.e can we create Tables and Admins with a managed connection? If not, can we come up with something better than sprinkling NeedUnmanagedConnectionException try-catch blocks in the HBase code base to fix this problem? -- This message was sent by Atlassian JIRA (v6.3.4#6332)