Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

See #132353 (comment) for the failure explanation.

Related to: #132353

@idegtiarenko idegtiarenko requested a review from smalyshev August 12, 2025 06:54
@idegtiarenko idegtiarenko added >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.2.0 labels Aug 12, 2025
@elasticsearchmachine
Copy link
Collaborator

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

public static final ParseField DETAILS_FIELD = new ParseField("details");
public static final ParseField TOOK = new ParseField("took");
public static final ParseField IS_PARTIAL_FIELD = new ParseField("is_partial");
private static final Logger log = LogManager.getLogger(EsqlExecutionInfo.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the log was for debugging? We probably don't need it anymore here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes, that is correct, let me remove it

@idegtiarenko idegtiarenko requested a review from smalyshev August 12, 2025 15:15
out.writeCollection(clusterInfo.values());
// .stream().toList() creates an immutable copy of the cluster info entries
// as today they might be still changing while serialization is happening
out.writeCollection(clusterInfo.values().stream().toList());
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 pretty sure this will fix it, but I am not entirely happy about this because the only place where this is needed is when we're initializing the cluster list, which is a very brief moment in the life of the query, but we're paying for it with having to copy this structure every time, even though most of the time it's not needed. I wonder if there's a better way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly. Lets merge this fix to address the issue and I will take a look if we could avoid underlying concurrent modification as part of another change.

@idegtiarenko idegtiarenko merged commit dcb0913 into elastic:main Aug 13, 2025
33 checks passed
@idegtiarenko idegtiarenko deleted the fix_testBadAsyncId branch August 13, 2025 05:57
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) v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants