ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntikho...@apache.org
Subject [13/30] incubator-ignite git commit: GG-10591 Force stop prev node before start new one.
Date Fri, 24 Jul 2015 12:50:54 GMT
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/dd92a5a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/dd92a5a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/dd92a5a0

Branch: refs/heads/master
Commit: dd92a5a0785a84f0d2a8226a9199a1fb78c4db93
Parents: a749ed8
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Jul 22 18:23:52 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Jul 22 18:23:52 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/dd92a5a0/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