Skip to content

Commit

Permalink
[ML] Unmute data frame analytics stop-and-restart tests (#70495)
Browse files Browse the repository at this point in the history
This commit unmutes outlier detection, classification and
regression stop-and-restart tests as it now seems that
all problems reported in #67581 have been fixed.

Closes #67581
  • Loading branch information
dimitris-athanasiou authored Mar 17, 2021
1 parent 10e637d commit a6ab061
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import org.elasticsearch.xpack.core.ml.inference.preprocessing.OneHotEncoding;
import org.elasticsearch.xpack.core.ml.inference.preprocessing.PreProcessor;
import org.junit.After;
import org.junit.Before;

import java.io.IOException;
import java.util.ArrayList;
Expand Down Expand Up @@ -103,25 +102,9 @@ public class ClassificationIT extends MlNativeDataFrameAnalyticsIntegTestCase {
private String destIndex;
private boolean analysisUsesExistingDestIndex;

@Before
public void setupLogging() {
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.put("logger.org.elasticsearch.xpack.ml.dataframe.inference", "DEBUG")
.put("logger.org.elasticsearch.xpack.core.ml.inference", "DEBUG"))
.get();
}

@After
public void cleanup() {
cleanUp();
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.putNull("logger.org.elasticsearch.xpack.ml.dataframe.inference")
.putNull("logger.org.elasticsearch.xpack.core.ml.inference"))
.get();
}

@Override
Expand Down Expand Up @@ -491,7 +474,6 @@ public void testWithOnlyTrainingRowsAndTrainingPercentIsFifty_DependentVariableI
"classification_training_percent_is_50_boolean", BOOLEAN_FIELD, BOOLEAN_FIELD_VALUES, "boolean");
}

@AwaitsFix(bugUrl="https://github.com/elastic/elasticsearch/issues/67581")
public void testStopAndRestart() throws Exception {
initialize("classification_stop_and_restart");
String predictedClassField = KEYWORD_FIELD + "_prediction";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,9 @@

public class RunDataFrameAnalyticsIT extends MlNativeDataFrameAnalyticsIntegTestCase {

@Before
public void enableLogging() {
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.put("logger.org.elasticsearch.xpack.ml.action", "DEBUG")
.put("logger.org.elasticsearch.xpack.ml.dataframe", "DEBUG"))
.get();
}

@After
public void cleanup() {
cleanUp();
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.putNull("logger.org.elasticsearch.xpack.ml.action")
.putNull("logger.org.elasticsearch.xpack.ml.dataframe"))
.get();
}

public void testOutlierDetectionWithFewDocuments() throws Exception {
Expand Down Expand Up @@ -616,7 +600,6 @@ public void testLazyAssignmentWithModelMemoryLimitTooHighForAssignment() throws
"Stopped analytics");
}

@AwaitsFix(bugUrl="https://github.com/elastic/elasticsearch/issues/67889")
public void testOutlierDetectionStopAndRestart() throws Exception {
String sourceIndex = "test-outlier-detection-stop-and-restart";

Expand Down

0 comments on commit a6ab061

Please sign in to comment.