Adjust wording in frozen tier allocation deciders (#88843)

The allocation deciders for dedicated/non-dedicated
frozen nodes use the "frozen searchable snapshot" terms
for what was renamed later (in #72699) to partially
mounted indices.

Hopefully not controversial, this changes makes the
wording of the deciders more coherent with the current
documentation.
This commit is contained in:
Tanguy Leroux 2022-08-04 09:23:42 +02:00 committed by GitHub
parent 68050e9502
commit 1c56d68f49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -124,7 +124,7 @@ public class PartiallyCachedShardAllocationIntegTests extends BaseFrozenSearchab
.stream()
.anyMatch(
d -> d.getExplanation().contains(SHARED_CACHE_SIZE_SETTING.getKey())
&& d.getExplanation().contains("frozen searchable snapshot shards cannot be allocated to this node")
&& d.getExplanation().contains("shards of partially mounted indices cannot be allocated to this node")
)
);
}

View file

@ -31,7 +31,7 @@ public class DedicatedFrozenNodeAllocationDecider extends AllocationDecider {
private static final Decision YES_IS_PARTIAL_SEARCHABLE_SNAPSHOT = Decision.single(
Decision.Type.YES,
NAME,
"this index is a frozen searchable snapshot so it can be assigned to this dedicated frozen node"
"this index is a partially mounted index so it can be assigned to this dedicated frozen node"
);
private static final Decision NO = Decision.single(
@ -39,7 +39,7 @@ public class DedicatedFrozenNodeAllocationDecider extends AllocationDecider {
NAME,
"this node's data roles are exactly ["
+ DATA_FROZEN_NODE_ROLE.roleName()
+ "] so it may only hold shards from frozen searchable snapshots, but this index is not a frozen searchable snapshot"
+ "] so it may only hold shards from partially mounted indices, but this index is not a partially mounted index"
);
@Override

View file

@ -31,7 +31,7 @@ public class HasFrozenCacheAllocationDecider extends AllocationDecider {
private static final Decision HAS_FROZEN_CACHE = Decision.single(
Decision.Type.YES,
NAME,
"this node has a frozen searchable snapshot shard cache"
"this node has a searchable snapshot shared cache"
);
private static final Decision NO_FROZEN_CACHE = Decision.single(
@ -39,13 +39,13 @@ public class HasFrozenCacheAllocationDecider extends AllocationDecider {
NAME,
"node setting ["
+ SHARED_CACHE_SIZE_SETTING.getKey()
+ "] is set to zero, so frozen searchable snapshot shards cannot be allocated to this node"
+ "] is set to zero, so shards of partially mounted indices cannot be allocated to this node"
);
private static final Decision UNKNOWN_FROZEN_CACHE = Decision.single(
Decision.Type.NO,
NAME,
"there was an error fetching the frozen cache state from this node"
"there was an error fetching the searchable snapshot shared cache state from this node"
);
private final FrozenCacheInfoService frozenCacheService;