Hi,
I'm setting up a develoment environment to contribute to the elasticsearch project. I'm currently trying to run the complete test suite to ensure everything is ok before grabbing an issue to work on. I'm getting a couple of errors in org.elasticsearch.client.MachineLearningIT:
REPRODUCE WITH: ./gradlew ':client:rest-high-level:asyncIntegTestRunner' --tests "org.elasticsearch.client.MachineLearningIT.testStopDatafeed" -Dtests.seed=6D962F6EB915A9AA -Dtests.security.manager=true -Dtests.locale=sr-ME -Dtests.timezone=Etc/GMT-12 -Dcompiler.java=13
Elasticsearch exception [type=status_exception, reason=Could not open job because no ML nodes with sufficient capacity were found]
org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=status_exception, reason=Could not open job because no ML nodes with sufficient capacity were found]
at __randomizedtesting.SeedInfo.seed([6D962F6EB915A9AA:9969ABDEC8D633C2]:0)
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1877)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1854)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1611)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1550)
at org.elasticsearch.client.MachineLearningClient.openJob(MachineLearningClient.java:353)
at org.elasticsearch.client.MachineLearningIT.openJob(MachineLearningIT.java:2531)
at org.elasticsearch.client.MachineLearningIT.testStopDatafeed(MachineLearningIT.java:683)
...
Caused by: org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=illegal_state_exception, reason=Could not open job because no suitable nodes were found, allocation explanation [Not opening job [test-stop-datafeed3] on node [{asyncIntegTest-0}{ml.machine_memory=8182083584}{ml.max_open_jobs=20}], because this node has insufficient available memory. Available memory for ML [2454625075], memory required by existing jobs [2199912448], estimated memory required for this job [1084227584]]]
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:496)
at org.elasticsearch.ElasticsearchException.fromXContent(ElasticsearchException.java:407)
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:437)
at org.elasticsearch.ElasticsearchException.failureFromXContent(ElasticsearchException.java:603)
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:169)
... 44 more
REPRODUCE WITH: ./gradlew ':client:rest-high-level:asyncIntegTestRunner' --tests "org.elasticsearch.client.MachineLearningIT.testStartDataFrameAnalyticsConfig" -Dtests.seed=6D962F6EB915A9AA -Dtests.security.manager=true -Dtests.locale=sr-ME -Dtests.timezone=Etc/GMT-12 -Dcompiler.java=13
Expected: <STOPPED>
but: was <FAILED>
java.lang.AssertionError:
Expected: <STOPPED>
but: was <FAILED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:887)
at org.elasticsearch.client.MachineLearningIT.testStartDataFrameAnalyticsConfig(MachineLearningIT.java:1548)
...
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <STARTED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <REINDEXING>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <FAILED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <FAILED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <FAILED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Suppressed: java.lang.AssertionError:
Expected: <STOPPED>
but: was <FAILED>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.elasticsearch.client.MachineLearningIT.lambda$testStartDataFrameAnalyticsConfig$17(MachineLearningIT.java:1548)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:875)
... 37 more
Are there any specific requirements for them to run successfully, specially regarding memory?
I'm using Arch Linux, 6-core i7, 8GiB RAM, 8GiB swap, OpenJDK 13.0.2. I run the tests with IntelliJ IDEA CE 2020.1 and directly with gradle through the command line, with the same results. I'm also using --max-workers=1.
Thanks!