Skip to content
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

HistoryTemplateHttpMappingsTests#testHttpFields failure #65117

Closed
jimczi opened this issue Nov 17, 2020 · 2 comments
Closed

HistoryTemplateHttpMappingsTests#testHttpFields failure #65117

jimczi opened this issue Nov 17, 2020 · 2 comments
Labels
:Data Management/Watcher Team:Data Management Meta label for data/management team >test-failure Triaged test failures from CI

Comments

@jimczi
Copy link
Contributor

jimczi commented Nov 17, 2020

Build scan:

Last failure
Other failure

Repro line:

./gradlew ':x-pack:plugin:watcher:internalClusterTest' --tests "org.elasticsearch.xpack.watcher.history.HistoryTemplateHttpMappingsTests.testHttpFields" \
  -Dtests.seed=7B65E35E8F2C5B8A \
  -Dtests.security.manager=true \
  -Dtests.locale=ar-IQ \
  -Dtests.timezone=America/Fort_Wayne \
  -Druntime.java=11

Reproduces locally?:
Could not reproduce locally after 1,000 iterations.

Applicable branches:

master only

Failure history:

Could be related to #64252

Failure:

java.lang.AssertionError: watch was triggered on [0] schedulers, expected [1]
Expected: a value equal to or greater than <1L>
     but: <0L> was less than <1L>
	at __randomizedtesting.SeedInfo.seed([E2D763563C560E94:3D3C8E6F2D1B6E6F]:0)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
	at org.junit.Assert.assertThat(Assert.java:956)
	at org.elasticsearch.xpack.watcher.test.AbstractWatcherIntegrationTestCase$TimeWarp.trigger(AbstractWatcherIntegrationTestCase.java:606)
	at org.elasticsearch.xpack.watcher.test.AbstractWatcherIntegrationTestCase$TimeWarp.trigger(AbstractWatcherIntegrationTestCase.java:591)
	at org.elasticsearch.xpack.watcher.history.HistoryTemplateHttpMappingsTests.testHttpFields(HistoryTemplateHttpMappingsTests.java:84)
@jimczi jimczi added >test-failure Triaged test failures from CI :Data Management/Watcher labels Nov 17, 2020
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Nov 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

probakowski added a commit that referenced this issue Nov 18, 2020
When we trigger watcher in tests we may fail if scheduler is paused.
That can happen when watcher is reloading due to changes in its shards. This is transient state and retry should fix it.
This change adds assertBusy around triggering code so we will try again.

Closes #65183 #65176 #65117 #65091 #65089 #65086 #65064 #65063
@probakowski
Copy link
Contributor

Should be fixed by #65186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Watcher Team:Data Management Meta label for data/management team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

3 participants