Skip to content

Commit 843ea8e

Browse files
odiszapcMmuzaf
authored andcommitted
IGNITE-14168 fix description of validate_indexes command (#8798)
1 parent 9b6aa64 commit 843ea8e

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/cache/CacheValidateIndexes.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,9 @@
4949
import static org.apache.ignite.internal.commandline.CommandLogger.optional;
5050
import static org.apache.ignite.internal.commandline.CommandLogger.or;
5151
import static org.apache.ignite.internal.commandline.TaskExecutor.executeTaskByNameOnNode;
52-
import static org.apache.ignite.internal.commandline.cache.CacheCommandList.IDLE_VERIFY;
5352
import static org.apache.ignite.internal.commandline.cache.CacheCommands.OP_NODE_ID;
5453
import static org.apache.ignite.internal.commandline.cache.CacheCommands.usageCache;
5554
import static org.apache.ignite.internal.commandline.cache.CacheSubcommands.VALIDATE_INDEXES;
56-
import static org.apache.ignite.internal.commandline.cache.argument.IdleVerifyCommandArg.CACHE_FILTER;
57-
import static org.apache.ignite.internal.commandline.cache.argument.IdleVerifyCommandArg.EXCLUDE_CACHES;
5855
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_CRC;
5956
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_FIRST;
6057
import static org.apache.ignite.internal.commandline.cache.argument.ValidateIndexesCommandArg.CHECK_SIZES;
@@ -67,13 +64,9 @@ public class CacheValidateIndexes extends AbstractCommand<CacheValidateIndexes.A
6764
/** {@inheritDoc} */
6865
@Override public void printUsage(Logger logger) {
6966
String CACHES = "cacheName1,...,cacheNameN";
70-
String description = "Verify counters and hash sums of primary and backup partitions for the specified " +
71-
"caches/cache groups on an idle cluster and print out the differences, if any. " +
72-
"Cache filtering options configure the set of caches that will be processed by " + IDLE_VERIFY + " command. " +
73-
"Default value for the set of cache names (or cache group names) is all cache groups. Default value for " +
74-
EXCLUDE_CACHES + " is empty set. Default value for " + CACHE_FILTER + " is no filtering. Therefore, " +
75-
"the set of all caches is sequently filtered by cache name " +
76-
"regexps, by cache type and after all by exclude regexps.";
67+
String description = "Validates indexes for the specified caches/cache groups on an idle cluster " +
68+
"on all or specified cluster nodes. " + VALIDATE_INDEXES + " checks consistence between primary/secondary " +
69+
"indexes against each other and data entries.";
7770

7871
Map<String, String> map = U.newLinkedHashMap(16);
7972

modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassTest_cache_help.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Arguments: --cache help --yes
3030
--seq - print information about sequences.
3131

3232
--cache validate_indexes [cacheName1,...,cacheNameN] [nodeId] [--check-first N|--check-through K|--check-crc|--check-sizes]
33-
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.
33+
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.
3434

3535
Parameters:
3636
--check-first N - validate only the first N keys

modules/core/src/test/resources/org.apache.ignite.util/GridCommandHandlerClusterByClassWithSSLTest_cache_help.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Arguments: --cache help --yes
3030
--seq - print information about sequences.
3131

3232
--cache validate_indexes [cacheName1,...,cacheNameN] [nodeId] [--check-first N|--check-through K|--check-crc|--check-sizes]
33-
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.
33+
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.
3434

3535
Parameters:
3636
--check-first N - validate only the first N keys

0 commit comments

Comments
 (0)