From a3180fd136f01e94299872e89b88a38ec334c089 Mon Sep 17 00:00:00 2001
From: Martijn van Groningen <martijn.v.groningen@gmail.com>
Date: Mon, 21 Jan 2019 13:58:16 +0100
Subject: [PATCH] Decrease ccr.auto_follow.wait_for_metadata_timeout in ccr
 rolling upgrade test, in order to reduce the likelihood the test fails
 because of timeing issues.

Relates #37231
---
 x-pack/qa/rolling-upgrade/build.gradle | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x-pack/qa/rolling-upgrade/build.gradle b/x-pack/qa/rolling-upgrade/build.gradle
index d154a1e2486..c6c4634e58b 100644
--- a/x-pack/qa/rolling-upgrade/build.gradle
+++ b/x-pack/qa/rolling-upgrade/build.gradle
@@ -186,6 +186,10 @@ subprojects {
         setting 'xpack.watcher.encrypt_sensitive_data', 'true'
       }
 
+      if (version.onOrAfter('6.6.0')) {
+        setting 'ccr.auto_follow.wait_for_metadata_timeout', '1s'
+      }
+
       // Old versions of the code contain an invalid assertion that trips
       // during tests.  Versions 5.6.9 and 6.2.4 have been fixed by removing
       // the assertion, but this is impossible for released versions.