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

Gridmix unit tests fail on Windows and Linux

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-beta, 3.0.0-alpha1
    • Fix Version/s: 2.1.0-beta
    • Component/s: test, tools
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The following three Gridmix unit tests fail on both Windows and Linux:

      • TestGridmixSubmission
      • TestLoadJob
      • TestSleepJob
      • TestDistCacheEmulation

      For the first three unit tests, one common cause of failure for both Windows and Linux is that -1 was passed to scaleConfigParameter() as the default per-task memory request in GridmixJob.configureHighRamProperties() method.

      In additional to the memory setting issue, Windows also have a path issue. In CommonJobTest.doSubmission() method, "root" path is an HDFS path. However, it is initialized as a local file path. This lead to later failure to create "root" on HDFS.

      For TestDistCacheEmulation, the test asserts a different permission (0644) than the permission that GridmixGenerateDistCacheData job sets on those files.

        Attachments

        1. HADOOP-9656-trunk.patch
          2 kB
          Chuan Liu
        2. HADOOP-9656-trunk.patch
          2 kB
          Chuan Liu
        3. HADOOP-9656-trunk.2.patch
          5 kB
          Chuan Liu

          Issue Links

            Activity

              People

              • Assignee:
                chuanliu Chuan Liu
                Reporter:
                chuanliu Chuan Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: