Skip to content

Commit b783c83

Browse files
committed
WaitForSecurityIndices in XPackCluster
This commit calls WaitForSecurityIndices when seeding an XPack cluster, to ensure that the security index is ready before executing calls. (cherry picked from commit d624044)
1 parent a03c168 commit b783c83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Tests.Core/ManagedElasticsearch/Clusters/XPackCluster.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ protected virtual ConnectionSettings ConnectionSettings(ConnectionSettings s) =>
5050
protected sealed override void SeedCluster()
5151
{
5252
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
53+
Client.WaitForSecurityIndices();
5354
SeedNode();
5455
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
56+
Client.WaitForSecurityIndices();
5557
}
5658

5759
protected virtual void SeedNode() => new DefaultSeeder(Client).SeedNode();

0 commit comments

Comments
 (0)