hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1074908 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Date Sat, 26 Feb 2011 19:27:17 GMT
Author: apurtell
Date: Sat Feb 26 19:27:16 2011
New Revision: 1074908

URL: http://svn.apache.org/viewvc?rev=1074908&view=rev
Log:
HBASE-3552 Coprocessors are unable to load if RegionServer is launched using a different classloader
than system default

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1074908&r1=1074907&r2=1074908&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Sat Feb 26 19:27:16 2011
@@ -52,6 +52,8 @@ Release 0.91.0 - Unreleased
    HBASE-3550  FilterList reports false positives (Bill Graham via Andrew
                Purtell)
    HBASE-3566  writeToWAL is not serialized for increment operation
+   HBASE-3552  Coprocessors are unable to load if RegionServer is launched
+               using a different classloader than system default
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java?rev=1074908&r1=1074907&r2=1074908&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java Sat
Feb 26 19:27:16 2011
@@ -84,7 +84,7 @@ public abstract class CoprocessorHost<E 
       if (findCoprocessor(className) != null) {
         continue;
       }
-      ClassLoader cl = ClassLoader.getSystemClassLoader();
+      ClassLoader cl = this.getClass().getClassLoader();
       Thread.currentThread().setContextClassLoader(cl);
       try {
         implClass = cl.loadClass(className);
@@ -154,7 +154,7 @@ public abstract class CoprocessorHost<E 
         paths.add((new File(st.nextToken())).getCanonicalFile().toURL());
       }
       ClassLoader cl = new URLClassLoader(paths.toArray(new URL[]{}),
-        ClassLoader.getSystemClassLoader());
+        this.getClass().getClassLoader());
       Thread.currentThread().setContextClassLoader(cl);
       try {
         implClass = cl.loadClass(className);



Mime
View raw message