Skip to content

Commit

Permalink
Fix testZeroRemoteStoreStatsOnNonRemoteStoreIndex in IndexStatsIT
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <ssashish@amazon.com>
  • Loading branch information
ashking94 committed Sep 2, 2023
1 parent d945660 commit 6ab5add
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1426,10 +1426,13 @@ public void testConcurrentIndexingAndStatsRequests() throws BrokenBarrierExcepti
assertThat(executionFailures.get(), emptyCollectionOf(Exception.class));
}

public void testZeroRemoteStoreStatsOnNonRemoteStoreIndex() {
public void testZeroRemoteStoreStatsOnNonRemoteStoreIndex() throws Exception {
String indexName = "test-index";
createIndex(indexName, Settings.builder().put("index.number_of_shards", 1).put("index.number_of_replicas", 0).build());
ensureGreen(indexName);
if (isIndexRemoteStoreEnabled(indexName)) {
return;
}
assertEquals(
RestStatus.CREATED,
client().prepareIndex(indexName)
Expand Down

0 comments on commit 6ab5add

Please sign in to comment.