Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a cluster client after a cluster restart
Browse files Browse the repository at this point in the history
After a cluster restart an old client could be using a node that's
restarting still (throwing `NodeClosedException`).
andreidan committed Feb 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e87f58d commit 529b124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -56,7 +56,6 @@ protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
return settings.build();
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/99520")
@TestLogging(value = "org.elasticsearch.datastreams.lifecycle:TRACE", reason = "debugging")
public void testDataStreamLifecycleDownsampleRollingRestart() throws Exception {
final InternalTestCluster cluster = internalCluster();
@@ -132,7 +131,8 @@ public boolean validateClusterForming() {
final String targetIndex = "downsample-5m-" + sourceIndex;
assertBusy(() -> {
try {
GetSettingsResponse getSettingsResponse = client().admin()
GetSettingsResponse getSettingsResponse = cluster.client()
.admin()
.indices()
.getSettings(new GetSettingsRequest().indices(targetIndex))
.actionGet();

0 comments on commit 529b124

Please sign in to comment.