|
@@ -14,6 +14,7 @@ import org.elasticsearch.action.get.GetResponse;
|
|
|
import org.elasticsearch.action.index.IndexRequest;
|
|
|
import org.elasticsearch.action.search.SearchResponse;
|
|
|
import org.elasticsearch.action.support.WriteRequest;
|
|
|
+import org.elasticsearch.common.settings.Settings;
|
|
|
import org.elasticsearch.common.unit.ByteSizeUnit;
|
|
|
import org.elasticsearch.common.unit.ByteSizeValue;
|
|
|
import org.elasticsearch.common.xcontent.XContentType;
|
|
@@ -48,6 +49,12 @@ public class RunDataFrameAnalyticsIT extends MlNativeDataFrameAnalyticsIntegTest
|
|
|
@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 {
|
|
@@ -266,9 +273,14 @@ public class RunDataFrameAnalyticsIT extends MlNativeDataFrameAnalyticsIntegTest
|
|
|
"Finished analysis");
|
|
|
}
|
|
|
|
|
|
- @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/53007")
|
|
|
public void testStopOutlierDetectionWithEnoughDocumentsToScroll() throws Exception {
|
|
|
String sourceIndex = "test-stop-outlier-detection-with-enough-docs-to-scroll";
|
|
|
+ client().admin().cluster()
|
|
|
+ .prepareUpdateSettings()
|
|
|
+ .setTransientSettings(Settings.builder()
|
|
|
+ .put("logger.org.elasticsearch.xpack.ml.action", "DEBUG")
|
|
|
+ .put("logger.org.elasticsearch.xpack.ml.dataframe", "DEBUG"))
|
|
|
+ .get();
|
|
|
|
|
|
client().admin().indices().prepareCreate(sourceIndex)
|
|
|
.setMapping("numeric_1", "type=double", "numeric_2", "type=float", "categorical_1", "type=keyword")
|