Skip to content

DataFrameTransformIT.testGetStats failure - date formatting error on 7.x #43324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pgomulka opened this issue Jun 18, 2019 · 5 comments · Fixed by #43446
Closed

DataFrameTransformIT.testGetStats failure - date formatting error on 7.x #43324

pgomulka opened this issue Jun 18, 2019 · 5 comments · Fixed by #43446
Assignees
Labels
:ml/Transform Transform >test-failure Triaged test failures from CI

Comments

@pgomulka
Copy link
Contributor

the tests fails non reproducibly

REPRODUCE WITH: ./gradlew :client:rest-high-level:integTestRunner --tests "org.elasticsearch.client.DataFrameTransformIT.testGetStats" -Dtests.seed=20C411A7A28CEBE -Dtests.security.manager=true -Dtests.locale=fr -Dtests.timezone=Asia/Urumqi -Dcompiler.java=12 -Druntime.java=8

https://scans.gradle.com/s/7ewwtblzmrbtc/tests/43nmsh6ur4gh6-t7wzgf4duds5a

Assertion stacktrace


java.lang.AssertionError: expected:<STARTED> but was:<STOPPED>
--
at __randomizedtesting.SeedInfo.seed([20C411A7A28CEBE:953D9FEC55DC36EB]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.elasticsearch.client.DataFrameTransformIT.lambda$testGetStats$4(DataFrameTransformIT.java:367)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:900)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:874)
at org.elasticsearch.client.DataFrameTransformIT.testGetStats(DataFrameTransformIT.java:363)


From logs that looks suspicious

[2019-06-18T08:46:06,487][ERROR][o.e.x.m.j.p.a.w.JsonDataToProcessWriter] [node-0] Cannot parse timestamp '' as epoch value
[2019-06-18T08:47:38,826][ERROR][o.e.x.i.IndexLifecycleRunner] [node-0] policy [my_policy] for index [my_index] failed on step [{"phase":"warm","action":"shrink","name":"shrink"}]. Moving to ERROR step
--
java.lang.IllegalArgumentException: the number of target shards [3] must be less that the number of source shards [2]
at org.elasticsearch.cluster.metadata.IndexMetaData.selectShrinkShards(IndexMetaData.java:1599) ~[elasticsearch-7.3.0-SNAPSHOT.jar:7.3.0-SNAPSHOT]

[2019-06-18T08:47:38,826][ERROR][o.e.x.i.IndexLifecycleRunner] [node-0] policy [my_policy] for index [my_index] failed on step [{"phase":"warm","action":"shrink","name":"shrink"}]. Moving to ERROR step
--
java.lang.IllegalArgumentException: the number of target shards [3] must be less that the number of source shards [2]
at org.elasticsearch.cluster.metadata.IndexMetaData.selectShrinkShards(IndexMetaData.java:1599) ~[elasticsearch-7.3.0-SNAPSHOT.jar:7.3.0-SNAPSHOT]
@pgomulka pgomulka added :Core/Infra/Core Core issues without another label >test-failure Triaged test failures from CI labels Jun 18, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@pgomulka pgomulka changed the title DataFrameTransformIT.testGetStats failure - date formatting error DataFrameTransformIT.testGetStats failure - date formatting error on 7.x Jun 18, 2019
@pgomulka pgomulka added the :ml/Transform Transform label Jun 18, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@pgomulka pgomulka removed the :Core/Infra/Core Core issues without another label label Jun 18, 2019
@pgomulka
Copy link
Contributor Author

Not sure how this '' timestamp could end up here. Could this be a left over from previous tests?
All the tests are using the same index transform-source. Would randomizing the suffix of that index help here? (can't reproduce :[ )
the test that run just before is testCreateDelete

@jbaiera
Copy link
Member

jbaiera commented Jun 19, 2019

@jbaiera
Copy link
Member

jbaiera commented Jun 19, 2019

This has been failing intermittently for at least the last week. I'm going to go ahead and mute this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml/Transform Transform >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants