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 C502DE5F9 for ; Fri, 18 Jan 2013 18:34:14 +0000 (UTC) Received: (qmail 53878 invoked by uid 500); 18 Jan 2013 18:34:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 53839 invoked by uid 500); 18 Jan 2013 18:34:14 -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 53779 invoked by uid 99); 18 Jan 2013 18:34:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 18:34:14 +0000 Date: Fri, 18 Jan 2013 18:34:14 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-7623) Username is not available for HConnectionManager to use in HConnectionKey MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jimmy Xiang created HBASE-7623: ---------------------------------- Summary: Username is not available for HConnectionManager to use in HConnectionKey Key: HBASE-7623 URL: https://issues.apache.org/jira/browse/HBASE-7623 Project: HBase Issue Type: Improvement Components: Client Reporter: Jimmy Xiang Priority: Minor Sometimes, some non-IOException prevents User.getCurrent() to get a username. It makes it impossible to create a HConnection. We should catch all exception here: {noformat} try { User currentUser = User.getCurrent(); if (currentUser != null) { username = currentUser.getName(); } } catch (IOException ioe) { LOG.warn("Error obtaining current user, skipping username in HConnectionKey", ioe); } {noformat} Not just IOException, so that client can move forward. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira