You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by la...@apache.org on 2019/05/31 02:59:42 UTC

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5231 Configurable Stats Cache; addendum, use the thread's class loader for services.

This is an automated email from the ASF dual-hosted git repository.

larsh pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
     new ae98f84  PHOENIX-5231 Configurable Stats Cache; addendum, use the thread's class loader for services.
ae98f84 is described below

commit ae98f84798dfad2444030a1a4d76e3c051f5e45a
Author: Lars Hofhansl <la...@apache.org>
AuthorDate: Thu May 30 19:58:27 2019 -0700

    PHOENIX-5231 Configurable Stats Cache; addendum, use the thread's class loader for services.
---
 .../src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java b/phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java
index cd66cfe..73e2f72 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java
@@ -33,7 +33,7 @@ public class GuidePostsCacheProvider {
         if (guidePostsCacheFactory == null) {
             try {
 
-                Class clazz = ClassLoader.getSystemClassLoader().loadClass(classString);
+                Class clazz = Class.forName(classString);
                 if (!GuidePostsCacheFactory.class.isAssignableFrom(clazz)) {
                     String msg = String.format(
                             "Could not load/instantiate class %s is not an instance of GuidePostsCacheFactory",