Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Apr 10, 2020

This replaces a reference to the result of partially reducing
aggregations that async search keeps with a reference to the serialized
form of the result of the partial reduction which we need to keep
anyway.

This replaces a reference to the result of partially reducing
aggregations that async search keeps with a reference to the serialized
form of the result of the partial reduction which we need to keep
anyway.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

@nik9000
Copy link
Member Author

nik9000 commented Apr 10, 2020

I've marked this a blocker for 7.8.0 because we'd really like to avoid releasing with the aggs referenced twice in async search. We have plenty of time to get it or something like it merged.

@nik9000
Copy link
Member Author

nik9000 commented Apr 10, 2020

Follow up to #54758 (review)

@nik9000
Copy link
Member Author

nik9000 commented Apr 10, 2020

Test failures are real. Looks like I should have run more of the tests before opening!

@nik9000
Copy link
Member Author

nik9000 commented Apr 14, 2020

I could have made aggs from remote clusters delayed but that'd have effected the transport client and, maybe, other things. I'll investigate it, but I don't want to "sneak" that in.

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

The change makes sense to me. I left one comment regarding the usage of InternalSearchResponse#aggregations that should be addressed.

if (aggregations == null) {
throw new IllegalStateException("aggregations already consumed");
}
return aggregations.get();
Copy link
Contributor

Choose a reason for hiding this comment

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

I am worried about the hidden cost of calling this on serialized aggs. Can we at least ensure that we don't get aggregations twice like here ?

@nik9000
Copy link
Member Author

nik9000 commented Apr 23, 2020

I took another look at this one with a week's distance and I hate it. I'm going to give it another shot in another way. This morning I'll be experimenting with async search locally to see how it all works.....

@nik9000
Copy link
Member Author

nik9000 commented Apr 28, 2020

Replaced by #55683.

@nik9000 nik9000 closed this Apr 28, 2020
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