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

Hadoop QA commented on MAPREDUCE-5146:
--------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12578332/MAPREDUCE-5146.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
                        Please justify why no new tests are needed for this 
patch.
                        Also please list what manual steps were performed to 
verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in 
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: 
https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/3521//testReport/
Console output: 
https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/3521//console

This message is automatically generated.
                
> application classloader may be used too early to load classes
> -------------------------------------------------------------
>
>                 Key: MAPREDUCE-5146
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5146
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 2.0.3-alpha
>            Reporter: Sangjin Lee
>            Priority: Minor
>         Attachments: MAPREDUCE-5146.patch
>
>
> At least in the case of YarnChild, the application classloader is set fairly 
> early (both in Configuration and as a TCCL). This has an effect of using the 
> application classloader unexpectedly early.
> There is a fair amount of code that gets invoked between setting the 
> classloader and executing mapper/reducer task.
> For example, I saw that the application classloader was asked to load a DOM 
> parser class (com.sun.org.apache.xerces...) as part of initializing the 
> filesystem. Luckily, in most cases this would be delegated to the parent 
> classloader as the job classpath would not have those classes.
> However, in general, this behavior carries the risk of loading classes with 
> the app classloader accidentally, and potentially causing problems such as 
> ClassCastException. Those would turn into nasty bugs that are hard to fix.
> It would be good to either set the application classloader as late as 
> possible or place clearer limitations so it loads only the mapper/reducer 
> classes and their dependencies.

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

Reply via email to