[
https://issues.apache.org/jira/browse/HBASE-10061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841802#comment-13841802
]
Nick Dimiduk commented on HBASE-10061:
--------------------------------------
Sounds good guys, I'll get this committed this afternoon.
This isn't the first bug I've seen related to OSGi classloaders. [~amitsela]
any chance you could dream up a unit or integration test that will
realistically exercise this scenario? Have a look at TestTableMapReduce and
IntegrationTestTableMapReduceUtil for examples. I'm not very familiar with this
environment, so I appreciate any advice you can provide.
> TableMapReduceUtil.findOrCreateJar calls updateMap(null, ) resulting in
> thrown NPE
> ----------------------------------------------------------------------------------
>
> Key: HBASE-10061
> URL: https://issues.apache.org/jira/browse/HBASE-10061
> Project: HBase
> Issue Type: Bug
> Components: mapreduce
> Affects Versions: 0.94.12
> Reporter: Amit Sela
> Priority: Minor
> Fix For: 0.98.0, 0.96.1, 0.94.15
>
> Attachments: 10061-trunk.txt, 10061-trunk.txt, HBASE-10061.patch
>
>
> TableMapReduceUtil.findOrCreateJar line 596:
> jar = getJar(my_class);
> updateMap(jar, packagedClasses);
> In case getJar returns null, updateMap will throw NPE.
> Should check null==jar before calling updateMap.
--
This message was sent by Atlassian JIRA
(v6.1#6144)