Skip to content

Conversation

@cbuescher
Copy link
Member

SharedBlobCacheService keeps track of the free regions in a ConcurrentLinkedQueue. We use its "size()" method in three places outside of tests but unfortunately this is not a constant time operation because of the asynchronous nature of this queue. This change removes two of the uses where we only check if the queue is empty by calling the "isEmpty()" method instead.

…vice (elastic#128119)

SharedBlobCacheService keeps track of the free regions in a
ConcurrentLinkedQueue. We use its "size()" method in three places
outside of tests but unfortunately this is not a constant time operation
because of the asynchronous nature of this queue. This change removes
two of the uses where we only check if the queue is empty by calling the
"isEmpty()" method instead.
@cbuescher cbuescher added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. backport labels May 20, 2025
@cbuescher cbuescher added auto-backport Automatically create backport pull requests when merged v8.19.0 v9.0.2 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) and removed v9.0.2 labels May 20, 2025
@cbuescher
Copy link
Member Author

@elasticmachine run elasticsearch-ci/part-1

@elasticsearchmachine elasticsearchmachine merged commit c615db2 into elastic:9.0 May 20, 2025
16 checks passed
@cbuescher cbuescher deleted the backport-128119 branch May 20, 2025 15:13
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

cbuescher added a commit to cbuescher/elasticsearch that referenced this pull request May 20, 2025
…vice (elastic#128119) (elastic#128194)

SharedBlobCacheService keeps track of the free regions in a
ConcurrentLinkedQueue. We use its "size()" method in three places
outside of tests but unfortunately this is not a constant time operation
because of the asynchronous nature of this queue. This change removes
two of the uses where we only check if the queue is empty by calling the
"isEmpty()" method instead.
elasticsearchmachine pushed a commit that referenced this pull request May 20, 2025
…vice (#128119) (#128194) (#128203)

SharedBlobCacheService keeps track of the free regions in a
ConcurrentLinkedQueue. We use its "size()" method in three places
outside of tests but unfortunately this is not a constant time operation
because of the asynchronous nature of this queue. This change removes
two of the uses where we only check if the queue is empty by calling the
"isEmpty()" method instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >non-issue v8.19.0 v9.0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants