You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 06:04:00 UTC
[jira] [Closed] (HBASE-8445) regionserver can't load an updated coprocessor jar with the same jar path
[ https://issues.apache.org/jira/browse/HBASE-8445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-8445.
--------------------------------------
> regionserver can't load an updated coprocessor jar with the same jar path
> -------------------------------------------------------------------------
>
> Key: HBASE-8445
> URL: https://issues.apache.org/jira/browse/HBASE-8445
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.94.5
> Reporter: Wang Qiang
> Priority: Major
> Attachments: patch_20130426_01.txt
>
>
> when I update a coprocessor jar, then I disable and enable the table with the coprocessor, but the new features in the updated coprocessor jar doesn't make any sense. Follow into the class 'org.apache.hadoop.hbase.coprocessor.CoprocessorHost', I found that there's a coprocessor class loader cache , of which the key is the coprocessor jar path(although the key is a weak reference), so when I disable/enable the table, it got a cached coprocessor class loader from the cache with the jar path, and it didn't try to reload the coprocessor jar from the hdfs. Here I give a patch, in which I add an extra info which is 'FileCheckSum' with the coprocessor class loader cache, if the checksum is changed, try to reload the jar from the hdfs path
--
This message was sent by Atlassian Jira
(v8.20.7#820007)