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

Seems that copypasted code from ignite.sh is irrelevant in control.sh

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: control.sh
    • Labels:
      None
    • Ignite Flags:
      Docs Required

      Description

      That piece of code in control.sh is copypasted from ignite.sh, however, as main class for control utility is CommandHandler instead of CommandLineStartup, the whole loop until $RESTART_SUCCESS_FILE is created logic just never works.

      ERRORCODE="-1"
      
      while [ "${ERRORCODE}" -ne "130" ]
      do
          if [ "${INTERACTIVE:-}" == "1" ] ; then
              case $osname in
                  Darwin*)
                      "$JAVA" ${JVM_OPTS} ${QUIET:-} "${DOCK_OPTS}" "${RESTART_SUCCESS_OPT}" ${JMX_MON:-} \
                      -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_HOME="${IGNITE_HOME}" \
                      -DIGNITE_PROG_NAME="$0" ${JVM_XOPTS:-} -cp "${CP}" ${MAIN_CLASS} $@
                  ;;
                  *)
                      "$JAVA" ${JVM_OPTS} ${QUIET:-} "${RESTART_SUCCESS_OPT}" ${JMX_MON:-} \
                      -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_HOME="${IGNITE_HOME}" \
                      -DIGNITE_PROG_NAME="$0" ${JVM_XOPTS:-} -cp "${CP}" ${MAIN_CLASS} $@
                  ;;
              esac
          else
              case $osname in
                  Darwin*)
                      "$JAVA" ${JVM_OPTS} ${QUIET:-} "${DOCK_OPTS}" "${RESTART_SUCCESS_OPT}" ${JMX_MON:-} \
                       -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_HOME="${IGNITE_HOME}" \
                       -DIGNITE_PROG_NAME="$0" ${JVM_XOPTS:-} -cp "${CP}" ${MAIN_CLASS} $@
                  ;;
                  *)
                      "$JAVA" ${JVM_OPTS} ${QUIET:-} "${RESTART_SUCCESS_OPT}" ${JMX_MON:-} \
                       -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_HOME="${IGNITE_HOME}" \
                       -DIGNITE_PROG_NAME="$0" ${JVM_XOPTS:-} -cp "${CP}" ${MAIN_CLASS} $@
                  ;;
              esac
          fi
      
          ERRORCODE="$?"
      
          if [ ! -f "${RESTART_SUCCESS_FILE}" ] ; then
              break
          else
              rm -f "${RESTART_SUCCESS_FILE}"
          fi
      done
      
      if [ -f "${RESTART_SUCCESS_FILE}" ] ; then
          rm -f "${RESTART_SUCCESS_FILE}"
      fi
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mshonichev Max Shonichev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: