You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by av...@apache.org on 2021/02/16 07:38:43 UTC
[ignite] branch master updated: IGNITE-14168 fix description of
validate_indexes command (#8798)
This is an automated email from the ASF dual-hosted git repository.
av 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 3d2bf5f IGNITE-14168 fix description of validate_indexes command (#8798)
3d2bf5f is described below
commit 3d2bf5f9135a27e7f79aacf16cb4d0b57b952551
Author: Alexey Plotnik <od...@gmail.com>
AuthorDate: Tue Feb 16 07:38:11 2021 +0000
IGNITE-14168 fix description of validate_indexes command (#8798)
---
.../internal/commandline/cache/CacheValidateIndexes.java | 13 +++----------
.../GridCommandHandlerClusterByClassTest_cache_help.output | 2 +-
...ommandHandlerClusterByClassWithSSLTest_cache_help.output | 2 +-
3 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheValidateIndexes.java b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheValidateIndexes.java
index fb2ffae..e48df75 100644
--- a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheValidateIndexes.java
+++ b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheValidateIndexes.java
@@ -49,12 +49,9 @@ import static org.apache.ignite.internal.commandline.CommandLogger.join;
import static org.apache.ignite.internal.commandline.CommandLogger.optional;
import static org.apache.ignite.internal.commandline.CommandLogger.or;
import static org.apache.ignite.internal.commandline.TaskExecutor.executeTaskByNameOnNode;
-import static org.apache.ignite.internal.commandline.cache.CacheCommandList.IDLE_VERIFY;
import static org.apache.ignite.internal.commandline.cache.CacheCommands.OP_NODE_ID;
import static org.apache.ignite.internal.commandline.cache.CacheCommands.usageCache;
import static org.apache.ignite.internal.commandline.cache.CacheSubcommands.VALIDATE_INDEXES;
-import static org.apache.ignite.internal.commandline.cache.argument.IdleVerifyCommandArg.CACHE_FILTER;
-import static org.apache.ignite.internal.commandline.cache.argument.IdleVerifyCommandArg.EXCLUDE_CACHES;
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_CRC;
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_FIRST;
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_SIZES;
@@ -67,13 +64,9 @@ public class CacheValidateIndexes extends AbstractCommand<CacheValidateIndexes.A
/** {@inheritDoc} */
@Override public void printUsage(Logger logger) {
String CACHES = "cacheName1,...,cacheNameN";
- String description = "Verify counters and hash sums of primary and backup partitions for the specified " +
- "caches/cache groups on an idle cluster and print out the differences, if any. " +
- "Cache filtering options configure the set of caches that will be processed by " + IDLE_VERIFY + " command. " +
- "Default value for the set of cache names (or cache group names) is all cache groups. Default value for " +
- EXCLUDE_CACHES + " is empty set. Default value for " + CACHE_FILTER + " is no filtering. Therefore, " +
- "the set of all caches is sequently filtered by cache name " +
- "regexps, by cache type and after all by exclude regexps.";
+ String description = "Validates indexes for the specified caches/cache groups on an idle cluster " +
+ "on all or specified cluster nodes. " + VALIDATE_INDEXES + " checks consistence between primary/secondary " +
+ "indexes against each other and data entries.";
Map<String, String> map = U.newLinkedHashMap(16);
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 b9d45f0..4beb72c 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
@@ -30,7 +30,7 @@ Arguments: --cache help --yes
--seq - print information about sequences.
--cache validate_indexes [cacheName1,...,cacheNameN] [nodeId] [--check-first N|--check-through K|--check-crc|--check-sizes]
- Verify counters and hash sums of primary and backup partitions for the specified caches/cache groups on an idle cluster and print out the differences, if any. Cache filtering options configure the set of caches that will be processed by idle_verify command. Default value for the set of cache names (or cache group names) is all cache groups. Default value for --exclude-caches is empty set. Default value for --cache-filter is no filtering. Therefore, the set of all caches is sequently [...]
+ Validates indexes for the specified caches/cache groups on an idle cluster on all or specified cluster nodes. validate_indexes checks consistence between primary/secondary indexes against each other and data entries.
Parameters:
--check-first N - validate only the first N keys
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 b9d45f0..4beb72c 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
@@ -30,7 +30,7 @@ Arguments: --cache help --yes
--seq - print information about sequences.
--cache validate_indexes [cacheName1,...,cacheNameN] [nodeId] [--check-first N|--check-through K|--check-crc|--check-sizes]
- Verify counters and hash sums of primary and backup partitions for the specified caches/cache groups on an idle cluster and print out the differences, if any. Cache filtering options configure the set of caches that will be processed by idle_verify command. Default value for the set of cache names (or cache group names) is all cache groups. Default value for --exclude-caches is empty set. Default value for --cache-filter is no filtering. Therefore, the set of all caches is sequently [...]
+ Validates indexes for the specified caches/cache groups on an idle cluster on all or specified cluster nodes. validate_indexes checks consistence between primary/secondary indexes against each other and data entries.
Parameters:
--check-first N - validate only the first N keys