Skip to content

Commit

Permalink
Fix testHistoryRetention (#46799) (#46805)
Browse files Browse the repository at this point in the history
Suppress the reasonable-history check in this test to guarantee we're always getting ops based recovery even after a background sync.

Closes #45953

Co-Authored-By: David Turner <[email protected]>
  • Loading branch information
original-brownbear and DaveCTurner authored Sep 18, 2019
1 parent f983b67 commit 142b106
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,8 @@ public void testHistoryRetention() throws Exception {
final String indexName = "test";
client().admin().indices().prepareCreate(indexName).setSettings(Settings.builder()
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 2)).get();
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 2)
.put(IndexSettings.FILE_BASED_RECOVERY_THRESHOLD_SETTING.getKey(), 1.0)).get();
ensureGreen(indexName);

// Perform some replicated operations so the replica isn't simply empty, because ops-based recovery isn't better in that case
Expand Down

0 comments on commit 142b106

Please sign in to comment.