Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13609 Unified CLI tool
  3. IGNITE-13783

Prevent starting nodes with the same consistent ID

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha1
    • None
    • Docs Required, Release Notes Required

    Description

      Currently, it is possible to start two or more nodes with the same consistent ID. Trying to stop using that ID succeeds for all the nodes, but an error appears in the output: Stop of node n1 was failed.

      Here is the full output:

      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ ./ignite node start n1
      Started ignite node.
      PID: 40644
      Consistent Id: n1
      Log file: /Users/vkulichenko/GridGain/cli-demo/ignite-work/n1.log
      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ ./ignite node start n1
      Started ignite node.
      PID: 40648
      Consistent Id: n1
      Log file: /Users/vkulichenko/GridGain/cli-demo/ignite-work/n1.log
      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ ./ignite node list
      +-------+---------------+---------------------------------------------------------+
      | PID   | Consistent Id | Log                                                     |
      +-------+---------------+---------------------------------------------------------+
      | 40644 | n1            | /Users/vkulichenko/GridGain/cli-demo/ignite-work/n1.log |
      +-------+---------------+---------------------------------------------------------+
      | 40648 | n1            | /Users/vkulichenko/GridGain/cli-demo/ignite-work/n1.log |
      +-------+---------------+---------------------------------------------------------+
      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ ./ignite node stop n1
      Stop of node n1 was failed
      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ ./ignite node list
      No running nodes
      Valentin-Kulichenko-MacBook-Pro-1772:cli-demo vkulichenko$ 
      

      We should have a mechanism that prevents starting multiple nodes with the same ID.

      Attachments

        Activity

          People

            kgusakov Kirill Gusakov
            vkulichenko Valentin Kulichenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: