Skip to content

Commit

Permalink
Ignore template warnings in IndexingIT (#59962) (#60482)
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann authored Jul 30, 2020
1 parent 2d2b74d commit da69644
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* duplication but for now we have no real way to share code.
*/
public class IndexingIT extends AbstractRollingTestCase {

public void testIndexing() throws IOException {
switch (CLUSTER_TYPE) {
case OLD:
Expand Down Expand Up @@ -103,11 +104,13 @@ public void testIndexing() throws IOException {
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
createIndexWithReplicas.setJsonEntity(recoverQuickly);
useIgnoreMultipleMatchingTemplatesWarningsHandler(createIndexWithReplicas);
client().performRequest(createIndexWithReplicas);

Request createEmptyIndex = new Request("PUT", "/empty_index");
// Ask for recovery to be quick
createEmptyIndex.setJsonEntity(recoverQuickly);
useIgnoreMultipleMatchingTemplatesWarningsHandler(createEmptyIndex);
client().performRequest(createEmptyIndex);

bulk("test_index", "_OLD", 5);
Expand Down

0 comments on commit da69644

Please sign in to comment.