[ 
https://issues.apache.org/jira/browse/HADOOP-5236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676697#action_12676697
 ] 

Hadoop QA commented on HADOOP-5236:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12400933/patch-5236.txt
  against trunk revision 747675.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified 
tests.
                        Please justify why no tests are needed for this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac 
compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 Eclipse classpath. The patch retains Eclipse classpath integrity.

    +1 release audit.  The applied patch does not increase the total number of 
release audit warnings.

    -1 core tests.  The patch failed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: 
http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3917/testReport/
Findbugs warnings: 
http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3917/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: 
http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3917/artifact/trunk/build/test/checkstyle-errors.html
Console output: 
http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3917/console

This message is automatically generated.

> Unreachable code in TaskInProgress.inCompleteSubTask
> ----------------------------------------------------
>
>                 Key: HADOOP-5236
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5236
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: mapred
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>            Priority: Minor
>             Fix For: 0.21.0
>
>         Attachments: patch-5236.txt
>
>
> TaskInProgress.incompleteSubTask has the following unreachable-code :
> {noformat}
>     if (taskState != TaskStatus.State.FAILED && 
>           taskState != TaskStatus.State.KILLED &&
>           taskState != TaskStatus.State.FAILED_UNCLEAN &&
>           taskState != TaskStatus.State.KILLED_UNCLEAN) {
>         LOG.info("Task '" + taskid + "' running on '" + trackerName + 
>                 "' in state: '" + taskState + "' being failed!");
>         status.setRunState(TaskStatus.State.FAILED);
>         taskState = TaskStatus.State.FAILED;
>       }
> {noformat}
> It would never reach this code, because it is never called from other places, 
> where taskState is not FAILED, KILLED, FAILED_UNCLEAN and KILLED_UNCLEAN.
> Also status != null is not required, since status is never null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to