From ea37ca479f75bcae6bb2beefbd8c9e4398b880cd Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Tue, 5 Feb 2019 11:35:08 -0500 Subject: [PATCH] Types removal fix FullClusterRestartIT warnings Backport PR #38389 for 6.7 produces warnings for rollover test. This fixes FullClusterRestartIT warning expectations for rollover request Relates to #38389 --- .../java/org/elasticsearch/upgrades/FullClusterRestartIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java b/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java index a5d939af5e405..9740ff4222d7e 100644 --- a/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java +++ b/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java @@ -518,6 +518,7 @@ public void testRollover() throws IOException { if (isRunningAgainstOldCluster()) { Request rolloverRequest = new Request("POST", "/" + index + "_write/_rollover"); + rolloverRequest.setOptions(allowTypeRemovalWarnings()); rolloverRequest.setJsonEntity("{" + " \"conditions\": {" + " \"max_docs\": 5"