mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
parent
990ac4ca83
commit
f6efc55556
@ -769,7 +769,9 @@ public class SnapshotResiliencyTests extends ESTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ClusterState stateForNode(ClusterState state, DiscoveryNode node) {
|
private static ClusterState stateForNode(ClusterState state, DiscoveryNode node) {
|
||||||
return ClusterState.builder(state).nodes(DiscoveryNodes.builder(state.nodes()).localNodeId(node.getId())).build();
|
// Remove and add back local node to update ephemeral id on restarts
|
||||||
|
return ClusterState.builder(state).nodes(DiscoveryNodes.builder(
|
||||||
|
state.nodes()).remove(node.getId()).add(node).localNodeId(node.getId())).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class TestClusterNodes {
|
private final class TestClusterNodes {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user