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

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


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

commit 32e8255252d6a6b525585d7221d4892f06930f8e
Author: Lars Hofhansl <[email protected]>
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",

Reply via email to