ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject incubator-ignite git commit: GG-10591 Force stop prev node before start new one.
Date Wed, 22 Jul 2015 02:55:03 GMT
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 <akuznetsov@gridgain.com>
Authored: Wed Jul 22 09:54:53 2015 +0700
Committer: AKuznetsov <akuznetsov@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 {


Mime
View raw message