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

Add more logging when failing watch history entry fails. #50931

Merged

Conversation

martijnvg
Copy link
Member

Relates to #30777

@martijnvg martijnvg added >test Issues or PRs that are addressing/adding tests :Data Management/Watcher labels Jan 13, 2020
@elasticmachine
Copy link
Collaborator

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

@martijnvg
Copy link
Member Author

@elasticmachine run elasticsearch-ci/2

});
} catch (AssertionError ae) {
{
Request request = new Request("GET", "/_watcher/stats");
Copy link
Contributor

Choose a reason for hiding this comment

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

you may want add metric=_all to include current and queued watches.

/_watcher/stats?metric=_all

logger.info("cluster_state: {}", EntityUtils.toString(response.getEntity()));
}
{
Request request = new Request("GET", "/.watcher-history-*/_search");
Copy link
Contributor

Choose a reason for hiding this comment

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

When this fails and is stuck for during the assertBusy, may result in alot of .watcher_history... should we increase the default size ?

@jakelandis
Copy link
Contributor

LGTM - a couple minor suggestions.

@martijnvg
Copy link
Member Author

@elasticmachine run elasticsearch-ci/2

@martijnvg martijnvg merged commit 625b65e into elastic:master Jan 16, 2020
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants