Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6460

TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails with the following logs:
      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.hadoop.mapreduce.v2.app.rm.TestRMContainerAllocator
      Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 94.525 sec <<< FAILURE! - in org.apache.hadoop.mapreduce.v2.app.rm.TestRMContainerAllocator
      testAttemptNotFoundCausesRMCommunicatorException(org.apache.hadoop.mapreduce.v2.app.rm.TestRMContainerAllocator) Time elapsed: 2.606 sec <<< FAILURE!
      java.lang.AssertionError: Expected exception: org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocationException
      at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:32)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

      Results :

      Failed tests:
      TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException Expected exception: org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocationException

      Tests run: 24, Failures: 1, Errors: 0, Skipped: 0

        Activity

        Hide
        vinodkv Vinod Kumar Vavilapalli added a comment -

        Closing the JIRA as part of 2.7.3 release.

        Show
        vinodkv Vinod Kumar Vavilapalli added a comment - Closing the JIRA as part of 2.7.3 release.
        Hide
        jlowe Jason Lowe added a comment -

        I committed this to branch-2.7.

        Show
        jlowe Jason Lowe added a comment - I committed this to branch-2.7.
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #396 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/396/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #396 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/396/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk #2334 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2334/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/CHANGES.txt
        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2334 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2334/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/CHANGES.txt hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Hadoop-Yarn-trunk #1155 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1155/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #1155 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1155/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #423 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/423/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/CHANGES.txt
        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #423 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/423/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/CHANGES.txt hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #2361 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2361/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2361 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2361/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #415 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/415/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #415 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/415/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-trunk-Commit #8491 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8491/)
        MAPREDUCE-6460. TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29)

        • hadoop-mapreduce-project/CHANGES.txt
        • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8491 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8491/ ) MAPREDUCE-6460 . TestRMContainerAllocator.testAttemptNotFoundCausesRMCommunicatorException fails. Contributed by Zhihai Xu. (zxu: rev e3ace31e2b7e3a8dc6cf3dc044d5ef2a9aa12e29) hadoop-mapreduce-project/CHANGES.txt hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/rm/TestRMContainerAllocator.java
        Hide
        zxu zhihai xu added a comment -

        Committed it to branch-2 and trunk.

        Show
        zxu zhihai xu added a comment - Committed it to branch-2 and trunk.
        Hide
        zxu zhihai xu added a comment -

        Thanks for the review Robert Kanter! I will commit it shortly.

        Show
        zxu zhihai xu added a comment - Thanks for the review Robert Kanter ! I will commit it shortly.
        Hide
        rkanter Robert Kanter added a comment -

        +1 LGTM

        Show
        rkanter Robert Kanter added a comment - +1 LGTM
        Hide
        hadoopqa Hadoop QA added a comment -



        +1 overall



        Vote Subsystem Runtime Comment
        0 pre-patch 6m 33s Pre-patch trunk compilation is healthy.
        +1 @author 0m 0s The patch does not contain any @author tags.
        +1 tests included 0m 0s The patch appears to include 1 new or modified test files.
        +1 javac 8m 12s There were no new javac warning messages.
        +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings.
        +1 checkstyle 0m 35s There were no new checkstyle issues.
        +1 whitespace 0m 0s The patch has no lines that end in whitespace.
        +1 install 1m 33s mvn install still works.
        +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse.
        +1 findbugs 1m 8s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
        +1 mapreduce tests 9m 10s Tests passed in hadoop-mapreduce-client-app.
            28m 8s  



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12757123/MAPREDUCE-6460.000.patch
        Optional Tests javac unit findbugs checkstyle
        git revision trunk / 58d1a02
        hadoop-mapreduce-client-app test log https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/artifact/patchprocess/testrun_hadoop-mapreduce-client-app.txt
        Test Results https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/testReport/
        Java 1.7.0_55
        uname Linux asf905.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Console output https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - +1 overall Vote Subsystem Runtime Comment 0 pre-patch 6m 33s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. +1 tests included 0m 0s The patch appears to include 1 new or modified test files. +1 javac 8m 12s There were no new javac warning messages. +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 35s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 33s mvn install still works. +1 eclipse:eclipse 0m 32s The patch built with eclipse:eclipse. +1 findbugs 1m 8s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 mapreduce tests 9m 10s Tests passed in hadoop-mapreduce-client-app.     28m 8s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12757123/MAPREDUCE-6460.000.patch Optional Tests javac unit findbugs checkstyle git revision trunk / 58d1a02 hadoop-mapreduce-client-app test log https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/artifact/patchprocess/testrun_hadoop-mapreduce-client-app.txt Test Results https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/testReport/ Java 1.7.0_55 uname Linux asf905.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/6000/console This message was automatically generated.
        Hide
        zxu zhihai xu added a comment -

        The failure is because the test didn't wait for the app attempt unregistered from ApplicationMasterService (ApplicationMasterService#unregisterAttempt). The fix is to wait for the app entering state RMAppState.KILLED which will make sure appAttempt.masterService.unregisterAttempt(appAttemptId) being called. I uploaded the patch MAPREDUCE-6460.000.patch for review.

        Show
        zxu zhihai xu added a comment - The failure is because the test didn't wait for the app attempt unregistered from ApplicationMasterService (ApplicationMasterService#unregisterAttempt). The fix is to wait for the app entering state RMAppState.KILLED which will make sure appAttempt.masterService.unregisterAttempt(appAttemptId) being called. I uploaded the patch MAPREDUCE-6460 .000.patch for review.

          People

          • Assignee:
            zxu zhihai xu
            Reporter:
            zxu zhihai xu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development