Skip to content

Commit

Permalink
Fix IndexStatsIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Deng committed Sep 28, 2023
1 parent 7dabb05 commit a2425a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public void testFieldDataStats() {
ensureGreen();
client().prepareIndex("test").setId("1").setSource("field", "value1", "field2", "value1").execute().actionGet();
client().prepareIndex("test").setId("2").setSource("field", "value2", "field2", "value2").execute().actionGet();
indexRandomForConcurrentSearch("test");
client().admin().indices().prepareRefresh().execute().actionGet();

NodesStatsResponse nodesStats = client().admin().cluster().prepareNodesStats("data:true").setIndices(true).execute().actionGet();
Expand Down Expand Up @@ -304,6 +305,7 @@ public void testClearAllCaches() throws Exception {
client().admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
client().prepareIndex("test").setId("1").setSource("field", "value1").execute().actionGet();
client().prepareIndex("test").setId("2").setSource("field", "value2").execute().actionGet();
indexRandomForConcurrentSearch("test");
client().admin().indices().prepareRefresh().execute().actionGet();

NodesStatsResponse nodesStats = client().admin().cluster().prepareNodesStats("data:true").setIndices(true).execute().actionGet();
Expand Down

0 comments on commit a2425a3

Please sign in to comment.