Skip to content

Commit

Permalink
[ML] Unmute RegressionIT.testSingleNumericFeatureAndMixedTrainingAndN…
Browse files Browse the repository at this point in the history
…onTrainingRows (elastic#67904)

Besides unmuting the test I added debug-level logging to facilitate finding the root cause of the test failure.
  • Loading branch information
valeriy42 committed Jan 26, 2021
1 parent 968e68d commit 292a5d8
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 292a5d8

Please sign in to comment.