accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1411) Cannot use iterators in MockAccumulo running in a secondary classloader
Date Tue, 14 May 2013 18:43:17 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657351#comment-13657351
] 

Hudson commented on ACCUMULO-1411:
----------------------------------

Integrated in Accumulo-Trunk-Hadoop-2.0 #226 (See [https://builds.apache.org/job/Accumulo-Trunk-Hadoop-2.0/226/])
    ACCUMULO-1411 - Classloader now inherits propertly (Revision 1482434)

     Result = SUCCESS
vines : 
Files : 
* /accumulo/trunk
* /accumulo/trunk/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java

                
> Cannot use iterators in MockAccumulo running in a secondary classloader
> -----------------------------------------------------------------------
>
>                 Key: ACCUMULO-1411
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1411
>             Project: Accumulo
>          Issue Type: Bug
>          Components: start
>            Reporter: John Vines
>            Assignee: John Vines
>            Priority: Minor
>             Fix For: 1.5.0
>
>
> We have a situation where there is a test client which spins off a Thread running a MockAccumulo,
and then we try to use iterators that are on the classpath for that Thread. Unfortunately,
they CNFE. We've traced it back, since the ReloadingClassLoader just uses the parent classloader
(AccumuloClassLoader) in absence of configurations. The AccumuloClassLoader.getClassLoader
uses ClassLoader.getSystemClassLoader() as it's parent, not AccumuloClassLoader.class.getClassLoader().
I believe that should preserve the way the classloaders work in the standard use cases while
not breaking in any other cases.

--
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

Mime
View raw message