sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Fine (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-2602) Sqoop2: Static initialization of ClassUtils defaultClassloader is fragile
Date Mon, 05 Oct 2015 18:57:28 GMT
Abraham Fine created SQOOP-2602:
-----------------------------------

             Summary: Sqoop2: Static initialization of ClassUtils defaultClassloader is fragile
                 Key: SQOOP-2602
                 URL: https://issues.apache.org/jira/browse/SQOOP-2602
             Project: Sqoop
          Issue Type: Bug
    Affects Versions: 1.99.6
            Reporter: Abraham Fine


While working with [~jarcec] on SQOOP-2490 we discovered an issue relating to the way that
{{ClassUtils}} reads the current class loader from the thread. In an integration testing use
case, we may want to append a new jar to the classpath (or remove jars) between tests. 

Currently, the {{defaultClassloader}} for {{ClassUtils}} is set in a {{static}} block, this
means that, should the connectors that are being used change between tests, {{ClassUtils}}
will be unable to reflect this change. We should change {{defaultClassloader}} to a method
that reads the class loader from the thread each time that it is called.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message