Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 48071 invoked from network); 10 Mar 2009 13:31:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 13:31:15 -0000 Received: (qmail 66606 invoked by uid 500); 10 Mar 2009 13:31:15 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 66428 invoked by uid 500); 10 Mar 2009 13:31:14 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 66417 invoked by uid 99); 10 Mar 2009 13:31:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 06:31:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 13:31:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 55B3B234C045 for ; Tue, 10 Mar 2009 06:30:53 -0700 (PDT) Message-ID: <267642565.1236691853349.JavaMail.jira@brutus> Date: Tue, 10 Mar 2009 06:30:53 -0700 (PDT) From: "Guilherme Mauro Germoglio Barbosa (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Created: (HBASE-1251) HConnectionManager.getConnection(HBaseConfiguration) returns same HConnection for different HBaseConfigurations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org HConnectionManager.getConnection(HBaseConfiguration) returns same HConnection for different HBaseConfigurations ---------------------------------------------------------------------------------------------------------------- Key: HBASE-1251 URL: https://issues.apache.org/jira/browse/HBASE-1251 Project: Hadoop HBase Issue Type: Bug Components: client Affects Versions: 0.19.0 Reporter: Guilherme Mauro Germoglio Barbosa This occurs when the following happens: 1. Consider a client that invokes HBaseAdmin.checkHBaseAvailable(config) before doing anything. Although this method copies the HBaseConfiguration object and sets hbase.client.retries.number to 1 (see HBaseAdmin, line 751), it creates an HBaseAdmin object, which invokes HConnectionManager.getConnection(conf). Please notice that this conf is that with hbase.client.retries.number equals to 1. 2. HConnectionManager.getConnection then creates a HConnection using this conf and puts it into a static map (see HConnectionManager, line 93) indexed by hbase.rootdir. 3. Then, if the same client now creates a HTable object (using, for instance, a HBaseConfiguration with hbase.client.retries.number equals to 10 but the same hbase.rootdir), it will invoke HConnectionManager.getConnection(conf) again (see HTable, line 109). However, when it checks the static map for a HConnection it finds one - the one previously created by the HBaseAdmin object and using hbase.client.retries.number 1 - and returns it without creating a new one with the correct HBaseConfiguration. However, the expected behavior is: HConnectionManager must return different HConnections for different HBaseConfigurations. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.