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 4398CD7D2 for ; Thu, 3 Jan 2013 23:40:13 +0000 (UTC) Received: (qmail 39758 invoked by uid 500); 3 Jan 2013 23:40:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 39708 invoked by uid 500); 3 Jan 2013 23:40:12 -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 39696 invoked by uid 99); 3 Jan 2013 23:40:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 23:40:12 +0000 Date: Thu, 3 Jan 2013 23:40:12 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7369) HConnectionManager should remove aborted connections 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-7369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543419#comment-13543419 ] Ted Yu commented on HBASE-7369: ------------------------------- {code} - HConnectionManager.deleteConnection(this, stopProxy, false); + if(aborted){ {code} nit: shift the if block left by two spaces (to align with the original position of 'H'). {code} + } + else { + HConnectionManager.deleteConnection(this, stopProxy, false); {code} Move 'else {' to the end of previous line. {code} + for (Entry entry : + HConnectionManager.HBASE_INSTANCES.entrySet()) { + oldHBaseInstances.put(entry.getKey(), entry.getValue()); + } {code} Utilize http://docs.oracle.com/javase/6/docs/api/java/util/Map.html#putAll%28java.util.Map%29 for the two copy actions. > HConnectionManager should remove aborted connections > ---------------------------------------------------- > > Key: HBASE-7369 > URL: https://issues.apache.org/jira/browse/HBASE-7369 > Project: HBase > Issue Type: Improvement > Components: Client > Affects Versions: 0.94.3 > Reporter: Bryan Baugher > Priority: Minor > Attachments: HBASE-7369_HCM-remove-aborted-cnxs-2.txt, HBASE-7369_HCM-remove-aborted-cnxs.txt, patch2.diff, patch3.diff, patch.diff > > > When an HConnection is abort()'ed (i.e. if numerous services are lost) the connection becomes unusable. HConnectionManager cache of HConnections currently does not have any logic around removing aborted connections automatically. Currently it is up to the consumer to do so using HConnectionManager.deleteStaleConnection(HConnection). -- 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