Uploaded image for project: 'Corda'
  1. CORDA-1634

Nodes started by gradle task are not stopped when the gradle task exits.

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Corda 3.3
    • Component/s: None
    • Labels:
      None

      Description

      When I start for example the demo nodes for the node explorer with `./gradlew tools:explorer:runDemoNodes` and later terminate the gradle task with CTRL-C, the java processes of the nodes keep running.

      This is counter-intuitive, I would have assumed that the processes nodes are terminated as well. It's problematic because the processes are not exactly light-weight.
      This behaviour differs by OS, on Windows & Mac it's apparently not an issue.

      I talked to Viktor Kolomeyko, he agreed to my suggestion that adding a shutDownHook that terminates the Processes created by DriverDSLImplementation.startOutOfProcessNode might be a good idea.

        Attachments

          Activity

            People

            • Assignee:
              Florian.Friemel Florian.Friemel@r3.com
              Reporter:
              Florian.Friemel Florian.Friemel@r3.com
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: