|
|
@@ -16,7 +16,6 @@ import org.elasticsearch.action.index.IndexAction;
|
|
|
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.TimeValue;
|
|
|
import org.elasticsearch.index.query.QueryBuilder;
|
|
|
import org.elasticsearch.index.query.QueryBuilders;
|
|
|
@@ -32,7 +31,6 @@ import org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Multi
|
|
|
import org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Precision;
|
|
|
import org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Recall;
|
|
|
import org.junit.After;
|
|
|
-import org.junit.Before;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
@@ -72,25 +70,9 @@ public class ClassificationIT extends MlNativeDataFrameAnalyticsIntegTestCase {
|
|
|
private String destIndex;
|
|
|
private boolean analysisUsesExistingDestIndex;
|
|
|
|
|
|
- @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();
|
|
|
}
|
|
|
|
|
|
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/53236")
|