Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12502

Script /dev/run-tests fails when IBM Java is used

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.1, 2.0.0
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      IBM Java

      Description

      When execute ./dev/run-tests with IBM Java, an exception occurs.
      This is due to difference of a "java version" format.

      $ JAVA_HOME=~/ibmjava8 ./dev/run-tests
      Traceback (most recent call last):
      File "run-tests.py", line 571, in <module>
      main()
      File "run-tests.py", line 474, in main
      java_version = determine_java_version(java_exe)
      File "run-tests.py", line 169, in determine_java_version
      major = int(match.group(1))
      AttributeError: 'NoneType' object has no attribute 'group'
      $ ~/ibmjava8/bin/java -version
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build pxa6480sr2-20151023_01(SR2))
      IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20151019_272764 (JIT enabled, AOT enabled)
      J9VM - R28_Java8_SR2_20151019_2144_B272764
      JIT - tr.r14.java_20151006_102517.04
      GC - R28_Java8_SR2_20151019_2144_B272764_CMPRSS
      J9CL - 20151019_272764)
      JCL - 20151022_01 based on Oracle jdk8u65-b17
      $ ~/openjdk8/bin/java -version
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
      $

        Attachments

          Activity

            People

            • Assignee:
              kiszk Kazuaki Ishizaki
              Reporter:
              kiszk Kazuaki Ishizaki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: