Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13858

TestGridmixMemoryEmulation and TestResourceUsageEmulators fail on the environment other than Linux or Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: test
    • Labels:
      None
    • Environment:

      other than Linux or Windows, such as Mac

      Description

      TestGridmixMemoryEmulation.testTotalHeapUsageEmulatorPlugin fails on Mac.

      Running org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation
      Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.896 sec <<< FAILURE! - in org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation
      testTotalHeapUsageEmulatorPlugin(org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation)  Time elapsed: 0.009 sec  <<< ERROR!
      java.lang.UnsupportedOperationException: Could not determine OS
      	at org.apache.hadoop.util.SysInfo.newInstance(SysInfo.java:43)
      	at org.apache.hadoop.yarn.util.ResourceCalculatorPlugin.<init>(ResourceCalculatorPlugin.java:42)
      	at org.apache.hadoop.mapred.gridmix.DummyResourceCalculatorPlugin.<init>(DummyResourceCalculatorPlugin.java:32)
      	at org.apache.hadoop.mapred.gridmix.TestGridmixMemoryEmulation.testTotalHeapUsageEmulatorPlugin(TestGridmixMemoryEmulation.java:131)
      

      The following tests fail on Mac as well:

      • TestResourceUsageEmulators.testCumulativeCpuUsageEmulatorPlugin
      • TestResourceUsageEmulators.testCpuUsageEmulator
      • TestResourceUsageEmulators.testResourceUsageMatcherRunner

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11157 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11157/)
        HADOOP-13858. TestGridmixMemoryEmulation and TestResourceUsageEmulators (aajisaka: rev 98c35bb1a4faf794060612bee7494d501701b698)

        • (edit) hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/DummyResourceCalculatorPlugin.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11157 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11157/ ) HADOOP-13858 . TestGridmixMemoryEmulation and TestResourceUsageEmulators (aajisaka: rev 98c35bb1a4faf794060612bee7494d501701b698) (edit) hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/DummyResourceCalculatorPlugin.java
        Hide
        ajisakaa Akira Ajisaka added a comment -

        Committed this to trunk and branch-2. Thanks Steve Loughran for reviewing this.

        Show
        ajisakaa Akira Ajisaka added a comment - Committed this to trunk and branch-2. Thanks Steve Loughran for reviewing this.
        Hide
        stevel@apache.org Steve Loughran added a comment -

        +1

        Show
        stevel@apache.org Steve Loughran added a comment - +1
        Hide
        ajisakaa Akira Ajisaka added a comment -

        Hi Steve Loughran, would you review this?

        Show
        ajisakaa Akira Ajisaka added a comment - Hi Steve Loughran , would you review this?
        Hide
        hadoopqa Hadoop QA added a comment -
        +1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 18s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
        +1 mvninstall 7m 29s trunk passed
        +1 compile 0m 18s trunk passed
        +1 checkstyle 0m 13s trunk passed
        +1 mvnsite 0m 24s trunk passed
        +1 mvneclipse 0m 17s trunk passed
        +1 findbugs 0m 27s trunk passed
        +1 javadoc 0m 13s trunk passed
        +1 mvninstall 0m 17s the patch passed
        +1 compile 0m 16s the patch passed
        +1 javac 0m 16s the patch passed
        +1 checkstyle 0m 11s the patch passed
        +1 mvnsite 0m 21s the patch passed
        +1 mvneclipse 0m 13s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 0m 31s the patch passed
        +1 javadoc 0m 11s the patch passed
        +1 unit 15m 2s hadoop-gridmix in the patch passed.
        +1 asflicense 0m 17s The patch does not generate ASF License warnings.
        28m 16s



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:a9ad5d6
        JIRA Issue HADOOP-13858
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12841632/HADOOP-13858.01.patch
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux 680e165a7198 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / f885160
        Default Java 1.8.0_111
        findbugs v3.0.0
        Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/11193/testReport/
        modules C: hadoop-tools/hadoop-gridmix U: hadoop-tools/hadoop-gridmix
        Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/11193/console
        Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - +1 overall Vote Subsystem Runtime Comment 0 reexec 0m 18s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 7m 29s trunk passed +1 compile 0m 18s trunk passed +1 checkstyle 0m 13s trunk passed +1 mvnsite 0m 24s trunk passed +1 mvneclipse 0m 17s trunk passed +1 findbugs 0m 27s trunk passed +1 javadoc 0m 13s trunk passed +1 mvninstall 0m 17s the patch passed +1 compile 0m 16s the patch passed +1 javac 0m 16s the patch passed +1 checkstyle 0m 11s the patch passed +1 mvnsite 0m 21s the patch passed +1 mvneclipse 0m 13s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 0m 31s the patch passed +1 javadoc 0m 11s the patch passed +1 unit 15m 2s hadoop-gridmix in the patch passed. +1 asflicense 0m 17s The patch does not generate ASF License warnings. 28m 16s Subsystem Report/Notes Docker Image:yetus/hadoop:a9ad5d6 JIRA Issue HADOOP-13858 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12841632/HADOOP-13858.01.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 680e165a7198 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / f885160 Default Java 1.8.0_111 findbugs v3.0.0 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/11193/testReport/ modules C: hadoop-tools/hadoop-gridmix U: hadoop-tools/hadoop-gridmix Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/11193/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        ajisakaa Akira Ajisaka added a comment -

        01 patch

        • Make DummyResourceCalculatorPlugin not to call SysInfo.newInstance().
        Show
        ajisakaa Akira Ajisaka added a comment - 01 patch Make DummyResourceCalculatorPlugin not to call SysInfo.newInstance().
        Hide
        ajisakaa Akira Ajisaka added a comment -

        Thanks. I'll fix the tests instead of skipping them.

        Show
        ajisakaa Akira Ajisaka added a comment - Thanks. I'll fix the tests instead of skipping them.
        Hide
        stevel@apache.org Steve Loughran added a comment -

        these are meant to be emulated tests; they should be cross platform. Somehow that's stopped working

        Show
        stevel@apache.org Steve Loughran added a comment - these are meant to be emulated tests; they should be cross platform. Somehow that's stopped working

          People

          • Assignee:
            ajisakaa Akira Ajisaka
            Reporter:
            ajisakaa Akira Ajisaka
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development