Skip to content

[7.x] [ML] Add DatafeedTimingStats to datafeed GetDatafeedStatsAction.Response (#43045) #44118

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

Merged
merged 4 commits into from
Jul 10, 2019

Conversation

przemekwitek
Copy link
Contributor

Backports the following commits to 7.x:

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

public void datafeedTimingStats(List<String> jobIds, Consumer<Map<String, DatafeedTimingStats>> handler,
Consumer<Exception> errorHandler) {
if (jobIds.isEmpty()) {
handler.accept(new HashMap<>());
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't matter this time but for an empty map you could use Collections.emptyMap() to avoid creating a new object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Let's save some memory ;)

@przemekwitek przemekwitek merged commit 44781e4 into elastic:7.x Jul 10, 2019
@przemekwitek przemekwitek deleted the backport/7.x/pr-43045 branch July 10, 2019 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants