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

Fix and re-enable ClusterStatsNodesTests#testIngestStats #48704

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Oct 30, 2019

This commit creates random NodesStats until IngestStats is not null, so
that it can be properly tested. This is done as to not change the existing
behavior of createNodesStats since it depends on IngestStats being null
at times for serialization testing purposes. I think it is OK to do this since
it is unlikely that it will be null.

relates #48485

closes #48684

This commit creates random NodesStats until IngestStats is not null, so
that it can be properly tested. This is done as to not change the existing
behavior of createNodesStats since it depends on IngestStats being null
at times for serialization testing purposes. I think it is OK to do this since
it is unlikely that it will be null.

relates elastic#48485

closes elastic#48684
@talevy talevy added >test Issues or PRs that are addressing/adding tests :Data Management/Stats Statistics tracking and retrieval APIs v8.0.0 labels Oct 30, 2019
@talevy talevy requested a review from martijnvg October 30, 2019 17:02
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM

@talevy talevy merged commit 23a4e4a into elastic:master Oct 31, 2019
@talevy talevy deleted the fix-npe-ingeststats branch October 31, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Stats Statistics tracking and retrieval APIs >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE in ClusterStatsNodesTests#testIngestStats
4 participants