mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
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:
parent
68050e9502
commit
1c56d68f49
3 changed files with 6 additions and 6 deletions
|
@ -124,7 +124,7 @@ public class PartiallyCachedShardAllocationIntegTests extends BaseFrozenSearchab
|
||||||
.stream()
|
.stream()
|
||||||
.anyMatch(
|
.anyMatch(
|
||||||
d -> d.getExplanation().contains(SHARED_CACHE_SIZE_SETTING.getKey())
|
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")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class DedicatedFrozenNodeAllocationDecider extends AllocationDecider {
|
||||||
private static final Decision YES_IS_PARTIAL_SEARCHABLE_SNAPSHOT = Decision.single(
|
private static final Decision YES_IS_PARTIAL_SEARCHABLE_SNAPSHOT = Decision.single(
|
||||||
Decision.Type.YES,
|
Decision.Type.YES,
|
||||||
NAME,
|
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(
|
private static final Decision NO = Decision.single(
|
||||||
|
@ -39,7 +39,7 @@ public class DedicatedFrozenNodeAllocationDecider extends AllocationDecider {
|
||||||
NAME,
|
NAME,
|
||||||
"this node's data roles are exactly ["
|
"this node's data roles are exactly ["
|
||||||
+ DATA_FROZEN_NODE_ROLE.roleName()
|
+ 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
|
@Override
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class HasFrozenCacheAllocationDecider extends AllocationDecider {
|
||||||
private static final Decision HAS_FROZEN_CACHE = Decision.single(
|
private static final Decision HAS_FROZEN_CACHE = Decision.single(
|
||||||
Decision.Type.YES,
|
Decision.Type.YES,
|
||||||
NAME,
|
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(
|
private static final Decision NO_FROZEN_CACHE = Decision.single(
|
||||||
|
@ -39,13 +39,13 @@ public class HasFrozenCacheAllocationDecider extends AllocationDecider {
|
||||||
NAME,
|
NAME,
|
||||||
"node setting ["
|
"node setting ["
|
||||||
+ SHARED_CACHE_SIZE_SETTING.getKey()
|
+ 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(
|
private static final Decision UNKNOWN_FROZEN_CACHE = Decision.single(
|
||||||
Decision.Type.NO,
|
Decision.Type.NO,
|
||||||
NAME,
|
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;
|
private final FrozenCacheInfoService frozenCacheService;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue