You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by iv...@apache.org on 2022/09/01 07:19:15 UTC

[ignite] branch master updated: IGNITE-17600 Fix documentation of control.sh indexes_force_rebuild task (#10228)

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

ivandasch 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 acf9e77bca8 IGNITE-17600 Fix documentation of control.sh indexes_force_rebuild task (#10228)
acf9e77bca8 is described below

commit acf9e77bca886a2569ab8b0c82c7ed7e4d56cbd9
Author: nao <56...@users.noreply.github.com>
AuthorDate: Thu Sep 1 10:19:07 2022 +0300

    IGNITE-17600 Fix documentation of control.sh indexes_force_rebuild task (#10228)
---
 docs/_docs/tools/control-script.adoc                                  | 4 ++--
 .../ignite/internal/commandline/cache/CacheIndexesForceRebuild.java   | 4 +---
 .../GridCommandHandlerClusterByClassTest_cache_help.output            | 2 +-
 .../GridCommandHandlerClusterByClassWithSSLTest_cache_help.output     | 2 +-
 4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/docs/_docs/tools/control-script.adoc b/docs/_docs/tools/control-script.adoc
index bd4189ad21e..bf3d787bccc 100644
--- a/docs/_docs/tools/control-script.adoc
+++ b/docs/_docs/tools/control-script.adoc
@@ -854,12 +854,12 @@ To trigger the rebuild process of all indexes for the specified caches or the ca
 tab:Unix[]
 [source,shell]
 ----
-control.sh --cache indexes_force_rebuild --node-id nodeId --cache-name cacheName1,...cacheNameN|--group-name groupName1,...groupNameN
+control.sh --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN
 ----
 tab:Window[]
 [source,shell]
 ----
-control.bat --cache indexes_force_rebuild --node-id nodeId --cache-name cacheName1,...cacheNameN|--group-name groupName1,...groupNameN
+control.bat --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN
 ----
 --
 
diff --git a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheIndexesForceRebuild.java b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheIndexesForceRebuild.java
index fc32e67d1cd..6060b1fb840 100644
--- a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheIndexesForceRebuild.java
+++ b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheIndexesForceRebuild.java
@@ -44,8 +44,6 @@ import static org.apache.ignite.internal.commandline.CommandLogger.or;
 import static org.apache.ignite.internal.commandline.cache.argument.IndexForceRebuildCommandArg.CACHE_NAMES;
 import static org.apache.ignite.internal.commandline.cache.argument.IndexForceRebuildCommandArg.GROUP_NAMES;
 import static org.apache.ignite.internal.commandline.cache.argument.IndexForceRebuildCommandArg.NODE_ID;
-import static org.apache.ignite.internal.commandline.cache.argument.IndexListCommandArg.CACHE_NAME;
-import static org.apache.ignite.internal.commandline.cache.argument.IndexListCommandArg.GRP_NAME;
 
 /**
  * Cache subcommand that triggers indexes force rebuild.
@@ -70,7 +68,7 @@ public class CacheIndexesForceRebuild extends AbstractCommand<CacheIndexesForceR
             desc,
             map,
             NODE_ID.argName() + " nodeId",
-            or(CACHE_NAME + " cacheName1,...cacheNameN", GRP_NAME + " groupName1,...groupNameN")
+            or("--cache-names cacheName1,...cacheNameN", "--group-names groupName1,...groupNameN")
         );
     }
 
diff --git a/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassTest_cache_help.output b/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassTest_cache_help.output
index 3b634f9658e..fd31a941bfc 100644
--- a/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassTest_cache_help.output
+++ b/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassTest_cache_help.output
@@ -75,7 +75,7 @@ Arguments: --cache help --yes
     Parameters:
       --node-id nodeId  - Specify node for job execution. If not specified explicitly, info will be gathered from all nodes
 
-  --cache indexes_force_rebuild --node-id nodeId --cache-name cacheName1,...cacheNameN|--group-name groupName1,...groupNameN
+  --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN
     Triggers rebuild of all indexes for specified caches or cache groups.
 
     Parameters:
diff --git a/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassWithSSLTest_cache_help.output b/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassWithSSLTest_cache_help.output
index 3b634f9658e..fd31a941bfc 100644
--- a/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassWithSSLTest_cache_help.output
+++ b/modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassWithSSLTest_cache_help.output
@@ -75,7 +75,7 @@ Arguments: --cache help --yes
     Parameters:
       --node-id nodeId  - Specify node for job execution. If not specified explicitly, info will be gathered from all nodes
 
-  --cache indexes_force_rebuild --node-id nodeId --cache-name cacheName1,...cacheNameN|--group-name groupName1,...groupNameN
+  --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN
     Triggers rebuild of all indexes for specified caches or cache groups.
 
     Parameters: