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

Ensure a unique WatchId for tests in SmokeTestWatcherWithSecurityIT #41659

Conversation

jakelandis
Copy link
Contributor

@jakelandis jakelandis commented Apr 29, 2019

This commit un-mutes SmokeTestWatcherWithSecurityIT by ensuring that between test invocations
a new WatchId is used. It is believed that since the same WatchId is used between tests,
and that Watch is never deleted, the test failures may be due to a race condition between
the current Watch execution, the new Watch (with the same ID), and the busy wait for the
Watcher history document.

This race condtion can be avoided by simply using a new WatchId and removing the Watch
between test invocations.

This commit also adds a minor change (XPackRestTestConstants.TEMPLATE_NAMES_NO_ILM) that is
needed since the test was muted.

Fixes #35361
Fixes #30777
Fixes #35361
Fixes #33291
Fixes #29893


Draft PR to manually run this through CI a few times.

This commit un-mutes SmokeTestWatcherWithSecurityIT by ensuring that between test invocations
a new WatchId is used. It is believed that since the same WatchId is used between tests,
and that Watch is never deleted, the test failures may be due to a race condition between
the current Watch execution, the new Watch (with the same ID), and the busy wait for the
Watcher history document.

This race condtion can be avoided by simply using a new WatchId and removing the Watch
between test invocations.

This commit also adds a minor change (XPackRestTestConstants.TEMPLATE_NAMES_NO_ILM) that is
needed since the test was muted.

Fixes elastic#35361
@jakelandis jakelandis changed the title Ensure a unique WatchId for test in SmokeTestWatcherWithSecurityIT Ensure a unique WatchId for tests in SmokeTestWatcherWithSecurityIT Apr 29, 2019
@jakelandis
Copy link
Contributor Author

closing in favor of #41765

@jakelandis jakelandis closed this May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment