Skip to content

BulkIngester requestsInFlightCount thread-safety #483

Closed
@ginkel

Description

@ginkel

Java API client version

main

Java version

17

Elasticsearch Version

n/a

Problem description

While going through the new BulkIngester's sources I noticed that the requestsInFlightCount is manipulated by multiple threads, but it is not obvious whether that happens in a thread-safe fashion in all cases (it probably is, just not very obvious).

In addition (this is more like a feature request), I think it would be nice to expose the requestsInFlightCount (just like operationsCount()) for external consumption by metrics as this is probably some very valuable information about the BulkIngester's performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions