Skip to content

Commit e1dc814

Browse files
committed
Recollect stats
1 parent 511f96e commit e1dc814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/org/elasticsearch/index/IndexServiceIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public void testGlobalCheckpointSync() throws Exception {
5454
final String id = Integer.toString(i);
5555
client().prepareIndex("test", "test", id).setSource("{\"foo\": " + id + "}", XContentType.JSON).get();
5656
}
57-
final IndicesStatsResponse stats = client().admin().indices().prepareStats().clear().get();
58-
final IndexStats indexStats = stats.getIndex("test");
5957
assertBusy(() -> {
58+
final IndicesStatsResponse stats = client().admin().indices().prepareStats().clear().get();
59+
final IndexStats indexStats = stats.getIndex("test");
6060
for (final IndexShardStats indexShardStats : indexStats.getIndexShards().values()) {
6161
Optional<ShardStats> maybePrimary =
6262
Stream.of(indexShardStats.getShards())

0 commit comments

Comments
 (0)