[
https://issues.apache.org/jira/browse/HBASE-7205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527245#comment-13527245
]
Ted Yu commented on HBASE-7205:
-------------------------------
When classLoadersCache.remove(path) is added in the catch block, I got:
{code}
testClassLoadingFromHDFS(org.apache.hadoop.hbase.coprocessor.TestClassLoading)
Time elapsed: 9.779 sec <<< FAILURE!
java.lang.AssertionError: Some CP classloaders for region
TestClassLoading,,1354995818580.7fbabc669828f0c6435df9b6c0a57709. are not
cached. ClassLoader
Cache:[org.apache.hadoop.hbase.coprocessor.CoprocessorClassLoader@6cd86cae,
org.apache.hadoop.hbase.coprocessor.CoprocessorClassLoader@7b0c81a6] Region
ClassLoaders:[org.apache.hadoop.hbase.coprocessor.CoprocessorClassLoader@29ab0eef,
org.apache.hadoop.hbase.coprocessor.CoprocessorClassLoader@7b0c81a6]
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at
org.apache.hadoop.hbase.coprocessor.TestClassLoading.testClassLoadingFromHDFS(TestClassLoading.java:294)
{code}
Will take a closer look.
> Coprocessor classloader is replicated for all regions in the HRegionServer
> --------------------------------------------------------------------------
>
> Key: HBASE-7205
> URL: https://issues.apache.org/jira/browse/HBASE-7205
> Project: HBase
> Issue Type: Bug
> Components: Coprocessors
> Affects Versions: 0.92.2, 0.94.2
> Reporter: Adrian Muraru
> Assignee: Ted Yu
> Priority: Critical
> Fix For: 0.96.0, 0.94.4
>
> Attachments: 7205-v1.txt, 7205-v3.txt, 7205-v4.txt, 7205-v5.txt,
> 7205-v6.txt, 7205-v7.txt, 7205-v8.txt, HBASE-7205_v2.patch
>
>
> HBASE-6308 introduced a new custom CoprocessorClassLoader to load the
> coprocessor classes and a new instance of this CL is created for each single
> HRegion opened. This leads to OOME-PermGen when the number of regions go
> above hundres / region server.
> Having the table coprocessor jailed in a separate classloader is good however
> we should create only one for all regions of a table in each HRS.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira