Skip to content

Commit

Permalink
Manually invoking refresh on ITs
Browse files Browse the repository at this point in the history
Signed-off-by: Shourya Dutta Biswas <[email protected]>
  • Loading branch information
shourya035 committed Jul 25, 2023
1 parent d380d1d commit 4a866ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ public void testDownloadStatsCorrectnessSinglePrimarySingleReplica() throws Exce
);
ensureGreen(INDEX_NAME);

// Manually invoke a refresh
refresh(INDEX_NAME);

// Get zero state values
// Extract and assert zero state primary stats
RemoteStoreStatsResponse zeroStateResponse = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, "0").get();
Expand Down Expand Up @@ -525,6 +528,7 @@ public void testNonZeroPrimaryStatsOnNewlyCreatedIndexWithZeroDocs() throws Exce
// Create an index with one primary and one replica shard
createIndex(INDEX_NAME, remoteStoreIndexSettings(1, 1));
ensureGreen(INDEX_NAME);
refresh(INDEX_NAME);

// Ensure that the index has 0 documents in it
assertEquals(0, client().admin().indices().prepareStats(INDEX_NAME).get().getTotal().docs.getCount());
Expand Down

0 comments on commit 4a866ae

Please sign in to comment.