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

Hadoop maven surefire-plugin uses must set heap size

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.0
    • Component/s: build
    • Labels:
      None
    • Environment:

      java 8

    • Target Version/s:

      Description

      Some of the hadoop tests (especially HBase) are running out of memory on Java 8, due to there not being enough heap for them

      The heap size of surefire test runs is not set in MAVEN_OPTS, it needs to be explicitly set as an argument to the test run.

      I propose

      1. hadoop-project/pom.xml defines the maximum heap size and test timeouts for surefire builds as properties
      2. modules which run tests use these values for their memory & timeout settings.
      3. these modules should also set the surefire version they want to use

        Attachments

        1. HADOOP-11363-002.patch
          2 kB
          Steve Loughran
        2. HADOOP-11363-001.patch
          2 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: