We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b922f commit 2c9392eCopy full SHA for 2c9392e
test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java
@@ -546,8 +546,14 @@ protected boolean preserveTemplatesUponCompletion() {
546
*/
547
protected boolean resetFeatureStates() {
548
try {
549
+ final Version minimumNodeVersion = minimumNodeVersion();
550
+ // Reset feature state API was introduced in 7.13.0
551
+ if (minimumNodeVersion.before(Version.V_7_13_0)) {
552
+ return false;
553
+ }
554
+
555
// ML reset fails when ML is disabled in versions before 8.7
- if (isMlEnabled() == false && minimumNodeVersion().before(Version.V_8_7_0)) {
556
+ if (isMlEnabled() == false && minimumNodeVersion.before(Version.V_8_7_0)) {
557
return false;
558
}
559
} catch (IOException e) {
0 commit comments