From 706bf1c26d536924bb2f316dd849abb2ecc6f68b 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 | 14 +++++++++++++- 1 file changed, 13 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 4c499c6d336b2..4f7d18ef24ba7 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 @@ -69,10 +69,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 @@ -84,7 +97,6 @@ protected NamedXContentRegistry xContentRegistry() { return new NamedXContentRegistry(entries); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/60340") public void testSingleNumericFeatureAndMixedTrainingAndNonTrainingRows() throws Exception { initialize("regression_single_numeric_feature_and_mixed_data_set"); String predictedClassField = DEPENDENT_VARIABLE_FIELD + "_prediction";