You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Thomas Graves (JIRA)" <ji...@apache.org> on 2012/08/21 17:25:38 UTC

[jira] [Created] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Thomas Graves created MAPREDUCE-4569:
----------------------------------------

             Summary: TestHsWebServicesJobsQuery fails on jdk7
                 Key: MAPREDUCE-4569
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 0.23.3
            Reporter: Thomas Graves
            Assignee: Thomas Graves


TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.


testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
        at org.junit.Assert.fail(Assert.java:91)
        at org.junit.Assert.failNotEquals(Assert.java:645)
        at org.junit.Assert.assertEquals(Assert.java:126)
        at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)

It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated MAPREDUCE-4569:
-----------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0-alpha
                   3.0.0
                   0.23.3
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Pushed this to trunk, branch-2 and branch-23. Thanks Thomas!
                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>             Fix For: 0.23.3, 3.0.0, 2.2.0-alpha
>
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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

[jira] [Commented] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445877#comment-13445877 ] 

Hudson commented on MAPREDUCE-4569:
-----------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #360 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/360/])
    MAPREDUCE-4569. Fixed TestHsWebServicesJobsQuery to pass on JDK7 by not depending on test order. Contributed by Thomas Graves.
svn merge --ignore-ancestry -c 1379146 ../../trunk/ (Revision 1379150)

     Result = UNSTABLE
vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1379150
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java

                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>             Fix For: 0.23.3, 3.0.0, 2.2.0-alpha
>
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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

[jira] [Closed] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun C Murthy closed MAPREDUCE-4569.
------------------------------------

    
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.0.2-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>             Fix For: 0.23.3, 2.0.2-alpha
>
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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

[jira] [Updated] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-4569:
-------------------------------------

    Attachment: MAPREDUCE-4569.patch

fix by not relying on the state order.
                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445896#comment-13445896 ] 

Hudson commented on MAPREDUCE-4569:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk #1151 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1151/])
    MAPREDUCE-4569. Fixed TestHsWebServicesJobsQuery to pass on JDK7 by not depending on test order. Contributed by Thomas Graves. (Revision 1379146)

     Result = FAILURE
vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1379146
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java

                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>             Fix For: 0.23.3, 3.0.0, 2.2.0-alpha
>
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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

[jira] [Commented] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439098#comment-13439098 ] 

Hadoop QA commented on MAPREDUCE-4569:
--------------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12541822/MAPREDUCE-4569.patch
  against trunk revision .

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

    +1 tests included.  The patch appears to include 1 new or modified test files.

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

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

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

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

    +1 core tests.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs.

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

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

This message is automatically generated.
                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445287#comment-13445287 ] 

Vinod Kumar Vavilapalli commented on MAPREDUCE-4569:
----------------------------------------------------

+1. This looks good, the test does indeed potentially fail because of the ordering.

Pushing this in.
                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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

[jira] [Updated] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Thomas Graves (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Graves updated MAPREDUCE-4569:
-------------------------------------

     Target Version/s: 0.23.3, 3.0.0, 2.2.0-alpha
    Affects Version/s: 2.2.0-alpha
                       3.0.0
               Status: Patch Available  (was: Open)
    
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4569) TestHsWebServicesJobsQuery fails on jdk7

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445951#comment-13445951 ] 

Hudson commented on MAPREDUCE-4569:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk #1182 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1182/])
    MAPREDUCE-4569. Fixed TestHsWebServicesJobsQuery to pass on JDK7 by not depending on test order. Contributed by Thomas Graves. (Revision 1379146)

     Result = SUCCESS
vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1379146
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestHsWebServicesJobsQuery.java

                
> TestHsWebServicesJobsQuery fails on jdk7
> ----------------------------------------
>
>                 Key: MAPREDUCE-4569
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4569
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>              Labels: java7
>             Fix For: 0.23.3, 3.0.0, 2.2.0-alpha
>
>         Attachments: MAPREDUCE-4569.patch
>
>
> TestHsWebServicesJobsQuery fails on jdk7 due to the test order no longer being constant.
> testJobsQueryStateNone(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery)  Time elapsed: 0.279 sec  <<< FAILURE!
> java.lang.AssertionError: jobs is not null expected:<null> but was:<{"job":[{"startTime":1345559717819,"finishTime":1345560891194,"id":"job_1345560632472_0002","name":"RandomWriter","queue":"mockqueue","user":"mock","state":"KILL_WAIT","mapsTotal":0,"mapsCompleted":0,"reducesTotal":1,"reducesCompleted":1}]}>
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.failNotEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:126)
>         at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateNone(TestHsWebServicesJobsQuery.java:226)
> It looks like the issues is that the mock jobs just iterate through the JOBSTATE and since other tests run first we just happen to hit the state KILL_WAIT that we don't expect any jobs to be in.  

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