Skip to content

Commit 9e3e58e

Browse files
authored
IGNITE-28872 Fixed reset lost partitions command help text (#13369)
1 parent f88fddd commit 9e3e58e

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

docs/_docs/configuring-caches/partition-loss-policy.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The control script command:
118118

119119
[source, shell]
120120
----
121-
control.sh --cache reset_lost_partitions myCache
121+
control.sh --cache reset_lost_partitions myCacheGroup
122122
----
123123

124124

docs/_docs/tools/control-script.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,12 @@ control.sh|bat --cache scan cache1 --limit 10
629629

630630
== Resetting Lost Partitions
631631

632-
You can use the control script to reset lost partitions for specific caches.
632+
You can use the control script to reset lost partitions for specific cache groups.
633633
Refer to link:configuring-caches/partition-loss-policy[Partition Loss Policy] for details.
634634

635635
[source, shell]
636636
----
637-
control.sh --cache reset_lost_partitions cacheName1,cacheName2,...
637+
control.sh --cache reset_lost_partitions cacheGroupName1,cacheGroupName2,...
638638
----
639639

640640

modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/reset_lost_partitions/CacheResetLostPartitionsTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public CacheResetLostPartitionsJob(@Nullable CacheResetLostPartitionsCommandArg
6565
final CacheResetLostPartitionsTaskResult res = new CacheResetLostPartitionsTaskResult();
6666
res.setMessageMap(new HashMap<>());
6767

68-
if (F.isEmpty(arg.caches()))
68+
if (F.isEmpty(arg.cacheGroups()))
6969
return res;
7070

71-
for (String grpName : arg.caches()) {
71+
for (String grpName : arg.cacheGroups()) {
7272
final int grpId = CU.cacheId(grpName);
7373

7474
CacheGroupContext grp = ignite.context().cache().cacheGroup(grpId);

modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class CacheResetLostPartitionsCommand
2727
implements ComputeCommand<CacheResetLostPartitionsCommandArg, CacheResetLostPartitionsTaskResult> {
2828
/** {@inheritDoc} */
2929
@Override public String description() {
30-
return "Reset the state of lost partitions for the specified caches";
30+
return "Reset the state of lost partitions for the specified cache groups";
3131
}
3232

3333
/** {@inheritDoc} */

modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheResetLostPartitionsCommandArg.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ public class CacheResetLostPartitionsCommandArg extends IgniteDataTransferObject
3030
/** */
3131
@Order(0)
3232
@Positional
33-
@Argument(example = "cacheName1,...,cacheNameN")
34-
String[] caches;
33+
@Argument(example = "cacheGroupName1,...,cacheGroupNameN")
34+
String[] cacheGroups;
3535

3636
/** */
37-
public String[] caches() {
38-
return caches;
37+
public String[] cacheGroups() {
38+
return cacheGroups;
3939
}
4040

4141
/** */
42-
public void caches(String[] caches) {
43-
this.caches = caches;
42+
public void cacheGroups(String[] cacheGroups) {
43+
this.cacheGroups = cacheGroups;
4444
}
4545
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Arguments: --cache help --yes
9393
Prints the information about partition distribution:
9494
control.(sh|bat) --cache distribution nodeId|null [cacheName1,...,cacheNameN] [--user-attributes attrName1,...,attrNameN]
9595

96-
Reset the state of lost partitions for the specified caches:
97-
control.(sh|bat) --cache reset_lost_partitions cacheName1,...,cacheNameN
96+
Reset the state of lost partitions for the specified cache groups:
97+
control.(sh|bat) --cache reset_lost_partitions cacheGroupName1,...,cacheGroupNameN
9898

9999
Find and optionally delete garbage from shared cache groups which could be left after cache destroy:
100100
control.(sh|bat) --cache find_garbage [groupName1,...,groupNameN] [nodeId] [--delete]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Arguments: --cache help --yes
9393
Prints the information about partition distribution:
9494
control.(sh|bat) --cache distribution nodeId|null [cacheName1,...,cacheNameN] [--user-attributes attrName1,...,attrNameN]
9595

96-
Reset the state of lost partitions for the specified caches:
97-
control.(sh|bat) --cache reset_lost_partitions cacheName1,...,cacheNameN
96+
Reset the state of lost partitions for the specified cache groups:
97+
control.(sh|bat) --cache reset_lost_partitions cacheGroupName1,...,cacheGroupNameN
9898

9999
Find and optionally delete garbage from shared cache groups which could be left after cache destroy:
100100
control.(sh|bat) --cache find_garbage [groupName1,...,groupNameN] [nodeId] [--delete]

0 commit comments

Comments
 (0)