Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

Some cleanups I would like to merge before #126653

@idegtiarenko idegtiarenko added >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.1.0 labels Apr 11, 2025
@idegtiarenko idegtiarenko requested review from dnhatn and nik9000 April 11, 2025 08:09
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

) {
final long startTimeInNanos = System.nanoTime();
searchShards(rootTask, clusterAlias, requestFilter, concreteIndices, originalIndices, ActionListener.wrap(targetShards -> {
searchShards(requestFilter, concreteIndices, originalIndices, ActionListener.wrap(targetShards -> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both available as fields, no need to pass them

take(sent, 3),
containsInAnyOrder(nodeRequest(node1, shard1, shard5), nodeRequest(node4, shard2), nodeRequest(node2, shard3, shard4))
);
assertThat(take(sent, 2), containsInAnyOrder(nodeRequest(node2, shard2), nodeRequest(node3, shard5)));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lets compare domain objects rather than maps of lists

Copy link
Member

Choose a reason for hiding this comment

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

FWIW you can do matchesMap() and get lovely error messaging. If you want. But I have no objections to comparing any way you like.

take(sent, 3),
containsInAnyOrder(nodeRequest(node1, shard1, shard5), nodeRequest(node4, shard2), nodeRequest(node2, shard3, shard4))
);
assertThat(take(sent, 2), containsInAnyOrder(nodeRequest(node2, shard2), nodeRequest(node3, shard5)));
Copy link
Member

Choose a reason for hiding this comment

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

FWIW you can do matchesMap() and get lovely error messaging. If you want. But I have no objections to comparing any way you like.

@idegtiarenko idegtiarenko merged commit b96a2f6 into elastic:main Apr 11, 2025
17 checks passed
@idegtiarenko idegtiarenko deleted the cleanup_data_node_request_sender branch April 11, 2025 13:53
Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants