Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEC9211A6A for ; Fri, 2 May 2014 03:59:37 +0000 (UTC) Received: (qmail 85883 invoked by uid 500); 2 May 2014 03:59:37 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 85797 invoked by uid 500); 2 May 2014 03:59:36 -0000 Mailing-List: contact dev-help@phoenix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.incubator.apache.org Delivered-To: mailing list dev@phoenix.incubator.apache.org Received: (qmail 85789 invoked by uid 99); 2 May 2014 03:59:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 03:59:36 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 May 2014 03:59:35 +0000 Received: (qmail 85597 invoked by uid 99); 2 May 2014 03:59:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 03:59:14 +0000 Date: Fri, 2 May 2014 03:59:14 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-962) Basic querying fails if the current thread's context classloader is changed 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 [ https://issues.apache.org/jira/browse/PHOENIX-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987300#comment-13987300 ] James Taylor commented on PHOENIX-962: -------------------------------------- +1, but wow this is ugly :-( If there's not an HBase JIRA for this, please file one. > Basic querying fails if the current thread's context classloader is changed > --------------------------------------------------------------------------- > > Key: PHOENIX-962 > URL: https://issues.apache.org/jira/browse/PHOENIX-962 > Project: Phoenix > Issue Type: Bug > Affects Versions: 3.0.0 > Reporter: Gabriel Reid > Assignee: Gabriel Reid > Attachments: PHOENIX-962.patch, PHOENIX-962b.patch > > > When using Phoenix 3.0.0 with HBase 0.94.x, any kind of basic querying fails if the connection is used by a thread that has a custom context classloader that doesn't link back up to the root classloader. > This sounds like a somewhat contrived situation, but it is the case in clients where, for example, a Connection is instantiated within a background thread within a thread pool, and then passed in to a UI framework that uses a custom context classloader. > The underlying cause is that there is a static call to HBaseConfiguration.create() within the HBase FilterList class, which is instantiated for many query calls. The HBaseConfiguration.create() call adds hbase-default (and other) resources to the underlying Configuration object, but these underlying resources can no longer be loaded because they are dependent on the context classloader for loading. Ensuring that the FilterList class is loaded with a context classloader that is used for loading other Phoenix classes will resolve this issue. -- This message was sent by Atlassian JIRA (v6.2#6252)