[TEST] Disables monitoring for full cluster restart tests (elastic/x-pack-elasticsearch#3971)
relates elastic/x-pack-elasticsearch#3957
Original commit: elastic/x-pack-elasticsearch@8044eb8316dada714e0162560ef28a30ace90df5
@@ -165,6 +165,11 @@ subprojects {
setting 'xpack.ssl.keystore.password', 'testnode'
dependsOn copyTestNodeKeystore
extraConfigFile 'testnode.jks', new File(outputDir + '/testnode.jks')
+ if (version.before('5.1.2')) {
+ // Disable monitoring if version is before 5.1.2 because form 5.1.2 we changed how we get DocStats
+ // and we can get a negative value which cannot because serialised by <5.1.2 as it writes VLongs
+ setting 'xpack.monitoring.enabled', 'false'
+ }
if (withSystemKey) {
if (version.onOrAfter('5.1.0') && version.before('6.0.0')) {
// The setting didn't exist until 5.1.0
