From 292a5d8b5c12b93803d5af80b250fc6e3ee2b403 Mon Sep 17 00:00:00 2001 From: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com> Date: Tue, 26 Jan 2021 09:35:54 +0100 Subject: [PATCH] [ML] Unmute RegressionIT.testSingleNumericFeatureAndMixedTrainingAndNonTrainingRows (#67904) Besides unmuting the test I added debug-level logging to facilitate finding the root cause of the test failure. --- .../xpack/ml/integration/RegressionIT.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RegressionIT.java b/x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RegressionIT.java index 46bb24d9a50d5..ad5f104517034 100644 --- a/x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RegressionIT.java +++ b/x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/RegressionIT.java @@ -72,9 +72,23 @@ public class RegressionIT extends MlNativeDataFrameAnalyticsIntegTestCase { private String sourceIndex; private String destIndex; + @Before + public void setupLogging() { + client().admin().cluster() + .prepareUpdateSettings() + .setTransientSettings(Settings.builder() + .put("logger.org.elasticsearch.xpack.ml.process.logging.CppLogMessageHandler", "DEBUG")) + .get(); + } + @After public void cleanup() { cleanUp(); + client().admin().cluster() + .prepareUpdateSettings() + .setTransientSettings(Settings.builder() + .putNull("logger.org.elasticsearch.xpack.ml.process.logging.CppLogMessageHandler")) + .get(); } @Override @@ -86,7 +100,6 @@ protected NamedXContentRegistry xContentRegistry() { return new NamedXContentRegistry(entries); } - @AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/59413") public void testSingleNumericFeatureAndMixedTrainingAndNonTrainingRows() throws Exception { initialize("regression_single_numeric_feature_and_mixed_data_set"); String predictedClassField = DEPENDENT_VARIABLE_FIELD + "_prediction";