You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by il...@apache.org on 2020/03/25 16:27:12 UTC

[ignite] branch master updated: IGNITE-12757 Visor CMD: Fixed invalid properties - Fixes #7505.

This is an automated email from the ASF dual-hosted git repository.

ilyak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new d0bae90  IGNITE-12757 Visor CMD: Fixed invalid properties - Fixes #7505.
d0bae90 is described below

commit d0bae90bce33dbed8b9f3cd52663ce5efa545d97
Author: zzzadruga <zz...@gmail.com>
AuthorDate: Wed Mar 25 19:26:24 2020 +0300

    IGNITE-12757 Visor CMD: Fixed invalid properties - Fixes #7505.
    
    Signed-off-by: Ilya Kasnacheev <il...@gmail.com>
---
 .../ignite/visor/commands/open/VisorOpenCommand.scala       | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

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 f62ba3c..d69d5b8 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
@@ -179,18 +179,8 @@ class VisorOpenCommand extends VisorConsoleCommand {
                 // Setting up 'Config URL' for properly print in console.
                 System.setProperty(IgniteSystemProperties.IGNITE_CONFIG_URL, url.getPath)
 
-                var cpuCnt = Runtime.getRuntime.availableProcessors
-
-                if (cpuCnt < 4)
-                    cpuCnt = 4
-
                 cfg.setConnectorConfiguration(null)
 
-                // All thread pools are overridden to have size equal to number of CPUs.
-                cfg.setPublicThreadPoolSize(cpuCnt)
-                cfg.setSystemThreadPoolSize(cpuCnt)
-                cfg.setPeerClassLoadingThreadPoolSize(cpuCnt)
-
                 var ioSpi = cfg.getCommunicationSpi
 
                 if (ioSpi == null)
@@ -230,10 +220,11 @@ class VisorOpenCommand extends VisorConsoleCommand {
         }
         catch {
             case e: IgniteException =>
-                warn(e.getMessage)
                 warn("Type 'help open' to see how to use this command.")
 
                 status("q")
+
+                throw e;
         }
     }