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

CPP: Do not start JVM if it is already started

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8
    • None
    • platforms

    Description

      Problem
      Consider the following scenario:
      1) User's app started JVM in the process somehow.
      2) User tries to start the node.
      3) Result: exception.

      Solution
      We need to check if JVM is already started. If yes - then try re-using. Note that we are likely to fail at this point because user might forgot to pass proper Ignite classpath. In this case we must throw extremely sensible exception, so that user understand how to fix the problem right away.

      E.g.: "Failed to start Ignite node with already started JVM due to invalid classpath; please add the following JARs to the classpath: [PATH TO IGNITE_HOME JARS]".

      Attachments

        Activity

          People

            Unassigned Unassigned
            vozerov Vladimir Ozerov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: