Skip to content

ESQL: iterations in profile/task status lies #122967

@nik9000

Description

@nik9000

Elasticsearch Version

all

Installed Plugins

No response

Java Version

bundled

OS Version

all

Problem Description

The iterations field is not trustworthy in ESQL's profile output. If the driver doesn't have to yield we report the status every second. And we report iter new iterations. And then the next second we report another iter + n iterations where n is however many iterations we made in a second. So the reported iterations is accurate for short queries, but for those longer than a second it's a vast, vast, vast overestimate.

Steps to Reproduce

Use tasks API with ESQL.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions