Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12113

control.sh terminates silently when JAVA_HOME is not set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.6
    • Component/s: control.sh
    • Labels:
      None
    • Release Note:
      Fixed silent control.sh script termination when JAVA_HOME is not set
    • Ignite Flags:
      Release Notes Required

      Description

      Running control.sh from ignite-2.7.6 release candidate on MacOS with empty JAVA_HOME produces no output - the script terminates without any action.

      The reason is the following line in bin/control.sh:

      javaMajorVersion "${JAVA_HOME}/bin/java"
      

      Since JAVA_HOME is empty, the argument passed to the function is invalid and the function terminates the script. I suggest replacing the ${JAVA_HOME}/bin/java with just $JAVA because it is already determined earlier in the scope. The suggested fix works in my environment for all options of JAVA_HOME

        Attachments

          Activity

            People

            • Assignee:
              agoncharuk Alexey Goncharuk
              Reporter:
              agoncharuk Alexey Goncharuk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: