This is an automated email from the ASF dual-hosted git repository.
NSAmelchev 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 9e3e58ef677 IGNITE-28872 Fixed reset lost partitions command help text
(#13369)
9e3e58ef677 is described below
commit 9e3e58ef6777694271f8e4b60e690af97cd3e06e
Author: Aleksandr Chesnokov <[email protected]>
AuthorDate: Wed Jul 15 17:42:12 2026 +0300
IGNITE-28872 Fixed reset lost partitions command help text (#13369)
---
docs/_docs/configuring-caches/partition-loss-policy.adoc | 2 +-
docs/_docs/tools/control-script.adoc | 4 ++--
.../reset_lost_partitions/CacheResetLostPartitionsTask.java | 4 ++--
.../management/cache/CacheResetLostPartitionsCommand.java | 2 +-
.../management/cache/CacheResetLostPartitionsCommandArg.java | 12 ++++++------
.../GridCommandHandlerClusterByClassTest_cache_help.output | 4 ++--
...CommandHandlerClusterByClassWithSSLTest_cache_help.output | 4 ++--
7 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/docs/_docs/configuring-caches/partition-loss-policy.adoc
b/docs/_docs/configuring-caches/partition-loss-policy.adoc
index 63a8acd2889..0645b2808dd 100644
--- a/docs/_docs/configuring-caches/partition-loss-policy.adoc
+++ b/docs/_docs/configuring-caches/partition-loss-policy.adoc
@@ -118,7 +118,7 @@ The control script command:
[source, shell]
----
-control.sh --cache reset_lost_partitions myCache
+control.sh --cache reset_lost_partitions myCacheGroup
----
diff --git a/docs/_docs/tools/control-script.adoc
b/docs/_docs/tools/control-script.adoc
index 3329f1c4156..445e6e2b19b 100644
--- a/docs/_docs/tools/control-script.adoc
+++ b/docs/_docs/tools/control-script.adoc
@@ -629,12 +629,12 @@ control.sh|bat --cache scan cache1 --limit 10
== Resetting Lost Partitions
-You can use the control script to reset lost partitions for specific caches.
+You can use the control script to reset lost partitions for specific cache
groups.
Refer to link:configuring-caches/partition-loss-policy[Partition Loss Policy]
for details.
[source, shell]
----
-control.sh --cache reset_lost_partitions cacheName1,cacheName2,...
+control.sh --cache reset_lost_partitions cacheGroupName1,cacheGroupName2,...
----
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/reset_lost_partitions/CacheResetLostPartitionsTask.java
b/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/reset_lost_partitions/CacheResetLostPartitionsTask.java
index 2e05091abd1..765b5b25eac 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/reset_lost_partitions/CacheResetLostPartitionsTask.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/reset_lost_partitions/CacheResetLostPartitionsTask.java
@@ -65,10 +65,10 @@ public class CacheResetLostPartitionsTask extends
VisorOneNodeTask<CacheResetLos
final CacheResetLostPartitionsTaskResult res = new
CacheResetLostPartitionsTaskResult();
res.setMessageMap(new HashMap<>());
- if (F.isEmpty(arg.caches()))
+ if (F.isEmpty(arg.cacheGroups()))
return res;
- for (String grpName : arg.caches()) {
+ for (String grpName : arg.cacheGroups()) {
final int grpId = CU.cacheId(grpName);
CacheGroupContext grp =
ignite.context().cache().cacheGroup(grpId);
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommand.java
b/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommand.java
index 838f34ee284..88733a2ec54 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommand.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommand.java
@@ -27,7 +27,7 @@ public class CacheResetLostPartitionsCommand
implements ComputeCommand<CacheResetLostPartitionsCommandArg,
CacheResetLostPartitionsTaskResult> {
/** {@inheritDoc} */
@Override public String description() {
- return "Reset the state of lost partitions for the specified caches";
+ return "Reset the state of lost partitions for the specified cache
groups";
}
/** {@inheritDoc} */
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommandArg.java
b/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommandArg.java
index 4861247c6e1..68e8331d71c 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommandArg.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommandArg.java
@@ -30,16 +30,16 @@ public class CacheResetLostPartitionsCommandArg extends
IgniteDataTransferObject
/** */
@Order(0)
@Positional
- @Argument(example = "cacheName1,...,cacheNameN")
- String[] caches;
+ @Argument(example = "cacheGroupName1,...,cacheGroupNameN")
+ String[] cacheGroups;
/** */
- public String[] caches() {
- return caches;
+ public String[] cacheGroups() {
+ return cacheGroups;
}
/** */
- public void caches(String[] caches) {
- this.caches = caches;
+ public void cacheGroups(String[] cacheGroups) {
+ this.cacheGroups = cacheGroups;
}
}
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 dc1fc55f1cb..fbb731ec85d 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
@@ -93,8 +93,8 @@ Arguments: --cache help --yes
Prints the information about partition distribution:
control.(sh|bat) --cache distribution nodeId|null
[cacheName1,...,cacheNameN] [--user-attributes attrName1,...,attrNameN]
- Reset the state of lost partitions for the specified caches:
- control.(sh|bat) --cache reset_lost_partitions cacheName1,...,cacheNameN
+ Reset the state of lost partitions for the specified cache groups:
+ control.(sh|bat) --cache reset_lost_partitions
cacheGroupName1,...,cacheGroupNameN
Find and optionally delete garbage from shared cache groups which could be
left after cache destroy:
control.(sh|bat) --cache find_garbage [groupName1,...,groupNameN] [nodeId]
[--delete]
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 dc1fc55f1cb..fbb731ec85d 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
@@ -93,8 +93,8 @@ Arguments: --cache help --yes
Prints the information about partition distribution:
control.(sh|bat) --cache distribution nodeId|null
[cacheName1,...,cacheNameN] [--user-attributes attrName1,...,attrNameN]
- Reset the state of lost partitions for the specified caches:
- control.(sh|bat) --cache reset_lost_partitions cacheName1,...,cacheNameN
+ Reset the state of lost partitions for the specified cache groups:
+ control.(sh|bat) --cache reset_lost_partitions
cacheGroupName1,...,cacheGroupNameN
Find and optionally delete garbage from shared cache groups which could be
left after cache destroy:
control.(sh|bat) --cache find_garbage [groupName1,...,groupNameN] [nodeId]
[--delete]