Skip to content

Commit 3f4c703

Browse files
committed
Shard exceptions on CCR not always immediately available (rare but does happen and makes these integration test flakey on CI
1 parent 6889018 commit 3f4c703

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tests/Tests/XPack/CrossClusterReplication/CrossClusterReplicationFollowTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ private static void AssertErrorsOnShardStats(FollowIndexStats[] currentIndices)
275275
foreach (var s in i.Shards)
276276
{
277277
var because = $"index: {i.Index} shard: {s.ShardId}";
278+
279+
//We can call follow stats to quickly and read exceptions is not propagated yet
280+
if (s.ReadExceptions.Count == 0) continue;
281+
278282
s.ReadExceptions.Should().NotBeEmpty(because);
279283
foreach (var e in s.ReadExceptions)
280284
{

0 commit comments

Comments
 (0)