You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/07/22 04:55:03 UTC

incubator-ignite git commit: GG-10591 Force stop prev node before start new one.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-gg-10591 [created] 2a2c0984e


GG-10591 Force stop prev node before start new one.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2a2c0984
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2a2c0984
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2a2c0984

Branch: refs/heads/ignite-gg-10591
Commit: 2a2c0984e875849d72ad480bb52eefa69c8e79e2
Parents: 8e1492a
Author: AKuznetsov <ak...@gridgain.com>
Authored: Wed Jul 22 09:54:53 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Wed Jul 22 09:54:53 2015 +0700

----------------------------------------------------------------------
 .../org/apache/ignite/visor/commands/open/VisorOpenCommand.scala  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2a2c0984/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/open/VisorOpenCommand.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/open/VisorOpenCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/open/VisorOpenCommand.scala
index 632a96b..5ec4cd0 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/open/VisorOpenCommand.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/open/VisorOpenCommand.scala
@@ -241,6 +241,9 @@ class VisorOpenCommand extends VisorConsoleCommand {
             cfg.setGridLogger(new NullLogger)
 
         val startedGridName = try {
+            // We need to stop previous daemon node before to start new one.
+            Ignition.stopAll(true)
+
             Ignition.start(cfg).name
         }
         finally {