Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1558

Instance clone should be able to clone the root instance

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0, 3.0.0
    • Component/s: karaf-instance
    • Labels:
      None

      Description

      The instance service doesn't allow to clone the root instance:

      if (instance.isRoot())

      { throw new IllegalArgumentException("Root instance cannot be cloned"); }

      if (instance.getPid() != 0)

      { throw new IllegalStateException("Instances not stopped"); }

      It doesn't make sense and the instance service should be able to start from the root instance.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: