Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Brooks committed Sep 13, 2024
1 parent b8e0f00 commit f6a7a0d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,15 @@ public void testBulkWithIncrementalDisabled() throws IOException {
final Response indexSuccessFul = getRestClient().performRequest(firstBulkRequest);
assertThat(indexSuccessFul.getStatusLine().getStatusCode(), equalTo(OK.getStatus()));

clusterAdmin().prepareUpdateSettings()
.setPersistentSettings(Settings.builder().put(IncrementalBulkService.INCREMENTAL_BULK.getKey(), false).build())
.get();
updateClusterSettings(Settings.builder().put(IncrementalBulkService.INCREMENTAL_BULK.getKey(), false));

internalCluster().getInstances(IncrementalBulkService.class).forEach(i -> i.setForTests(false));

try {
sendLargeBulk();
} finally {
internalCluster().getInstances(IncrementalBulkService.class).forEach(i -> i.setForTests(true));
clusterAdmin().prepareUpdateSettings()
.setPersistentSettings(Settings.builder().put(IncrementalBulkService.INCREMENTAL_BULK.getKey(), (String) null).build())
.get();
updateClusterSettings(Settings.builder().put(IncrementalBulkService.INCREMENTAL_BULK.getKey(), (String) null));
}
}

Expand Down

0 comments on commit f6a7a0d

Please sign in to comment.