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

Hadoop maven surefire-plugin uses must set heap size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.7.0
    • build
    • None
    • java 8

    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

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

              Dates

                Created:
                Updated:
                Resolved: