Skip to content

Commit

Permalink
[7.11][ML] Unmute RegressionIT.testSingleNumericFeatureAndMixedTraini…
Browse files Browse the repository at this point in the history
…ngAndNonTrainingRows (#67966)

Besides unmuting the test I added debug-level logging to facilitate finding the root cause of the test failure.

Backport of #67904.
  • Loading branch information
valeriy42 committed Jan 26, 2021
1 parent 968e68d commit 93f6518
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
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.time.Instant;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -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
Expand All @@ -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";
Expand Down

0 comments on commit 93f6518

Please sign in to comment.