From e31736706a1fe6b06909b82e8a70bcd34d051ad1 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 6 Feb 2018 22:49:35 -0500 Subject: [PATCH] Skip verify versions for buggy cgroup2 handling Versions 5.1.1 to 5.3.0 of Elasticsearch had a problem where these versions did not handle new kernels properly due to improper handling of cgroup v2. On Linux kernels that support cgroup2 and the unified hierarchy is mounted, Elasticsearch would never start. This means tests on such systems where we try to start Elasticsearch will never succeed. This commit skips these tests on OS that have the unified cgroup v2 hierarchy. --- qa/verify-version-constants/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/verify-version-constants/build.gradle b/qa/verify-version-constants/build.gradle index 1d31db6898b7b..8709747ac1878 100644 --- a/qa/verify-version-constants/build.gradle +++ b/qa/verify-version-constants/build.gradle @@ -32,6 +32,10 @@ task bwcTest { } for (Version version : versionCollection.versionsIndexCompatibleWithCurrent) { + // the BWC version under test will fail to start in this situation so we skip creating the test task + if (project.cgroupsV2Enabled && version.isVersionBrokenIfCgroupsV2Enabled()) { + continue + } String baseName = "v${version}" Task oldClusterTest = tasks.create(name: "${baseName}#oldClusterTest", type: RestIntegTestTask) { mustRunAfter(precommit)