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

Enable smoke-test-watcher with logging #39169

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented Feb 20, 2019

SmokeTestWatcherTestSuiteIT.testMonitorClusterHealth has failed a few
times with various causes (not all of which we have logs for).

This change enables the test again.

  1. The fix from Resolve concurrency with watcher trigger service #39092 should resolve any issues in assertWatchCount
  2. In at least 1 case, getWatchHistoryEntry failed due to a
    ResponseException, which is not caught by assertBusy.
    This commit catches those and calls "fail" so that assertBusy will
    sleep and retry
  3. Additional logging has been included to help diagnose any other
    failures causes.

Relates: #32299

SmokeTestWatcherTestSuiteIT.testMonitorClusterHealth has failed a few
times with various causes (not all of which we have logs for).

This change enables the test again.

1. The fix from elastic#39092 should resolve any issues in assertWatchCount
2. In at least 1 case, getWatchHistoryEntry failed due to a
   ResponseException, which is not caught by assertBusy.
   This commit catches those and calls "fail" so that assertBusy will
   sleep and retry
3. Additional logging has been included to help diagnose any other
   failures causes.
@tvernum tvernum added >test Issues or PRs that are addressing/adding tests v7.0.0 :Data Management/Watcher v6.7.0 v8.0.0 v7.2.0 labels Feb 20, 2019
@tvernum tvernum requested a review from jakelandis February 20, 2019 08:17
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

Copy link
Contributor

@jakelandis jakelandis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , thanks for the additional logging and error handling !

@tvernum tvernum merged commit ddd055a into elastic:master Feb 20, 2019
@tvernum
Copy link
Contributor Author

tvernum commented Feb 20, 2019

I'm going to hold off on the backport of this until it's been through a few days of CI runs.

weizijun pushed a commit to weizijun/elasticsearch that referenced this pull request Feb 22, 2019
SmokeTestWatcherTestSuiteIT.testMonitorClusterHealth has failed a few
times with various causes (not all of which we have logs for).

This change enables the test again.

1. The fix from elastic#39092 should resolve any issues in assertWatchCount
2. In at least 1 case, getWatchHistoryEntry failed due to a
   ResponseException, which is not caught by assertBusy.
   This commit catches those and calls "fail" so that assertBusy will
   sleep and retry
3. Additional logging has been included to help diagnose any other
   failures causes.
weizijun pushed a commit to weizijun/elasticsearch that referenced this pull request Feb 22, 2019
SmokeTestWatcherTestSuiteIT.testMonitorClusterHealth has failed a few
times with various causes (not all of which we have logs for).

This change enables the test again.

1. The fix from elastic#39092 should resolve any issues in assertWatchCount
2. In at least 1 case, getWatchHistoryEntry failed due to a
   ResponseException, which is not caught by assertBusy.
   This commit catches those and calls "fail" so that assertBusy will
   sleep and retry
3. Additional logging has been included to help diagnose any other
   failures causes.
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Jun 29, 2019
…history

Catch exceptions and fail (which allows the assertBusy to retry)
if an error happens from the search against .watcher-history.

Related: elastic#42409
Related: elastic#39169
jakelandis added a commit that referenced this pull request Jul 1, 2019
Retry if failures searching .watcher-history

Catch exceptions and fail (which allows the assertBusy to retry)
if an error happens from the search against .watcher-history.

Related: #42409
Related: #39169
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Jul 1, 2019
…43781)

Retry if failures searching .watcher-history

Catch exceptions and fail (which allows the assertBusy to retry)
if an error happens from the search against .watcher-history.

Related: elastic#42409
Related: elastic#39169
@jpountz
Copy link
Contributor

jpountz commented Jul 5, 2019

@tvernum I'm assuming there is nothing left to backport and removed the backport pending label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Watcher >test Issues or PRs that are addressing/adding tests v6.8.2 v7.3.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants