Skip to content

Conversation

@fcofdez
Copy link
Contributor

@fcofdez fcofdez commented Jul 10, 2025

This commit adds two new methods to SharedBlobCacheService, fetchRange and fetchRegion.
This new methods provide the same functionality as their maybe version, but the main difference
is that they take a new boolean parameter (force) that allows the caller to specify if fetching the
range/region should force an eviction if there are no free regions available.
It also removes the unused method maybeFetchFullEntry.

This commit adds two new methods to SharedBlobCacheService,
fetchRange and fetchRegion. This new methods provide the same
functionality as their maybe version, but the main difference is
that they take a new boolean parameter (force) that allows the caller
to specify if fetching the range/region should force an eviction
if there are no free regions available.
@fcofdez fcofdez added >non-issue Team:Distributed Indexing Meta label for Distributed Indexing team :Distributed Indexing/Searchable Snapshots Searchable snapshots / frozen indices. v9.2.0 labels Jul 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

@fcofdez fcofdez requested a review from kingherc July 10, 2025 09:31
Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Francisco

* </p>
* <p>
* This method returns as soon as the download tasks are instantiated, but the tasks themselves
* are run on the bulk executor.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* are run on the bulk executor.
* are run on the fetch executor.

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Jul 10, 2025
@kingherc
Copy link
Contributor

Hi, due to workload this week, I might get to this next week. Feel free to replace me if need-be, else I'll review as soon as possible.

@fcofdez
Copy link
Contributor Author

fcofdez commented Jul 11, 2025

Hi, due to workload this week, I might get to this next week. Feel free to replace me if need-be, else I'll review as soon as possible.

Thanks for the heads up @kingherc. I'm going to merge this PR once CI is green so we can experiment on QA next week. But I'll appreciate your review once you have the bandwidth and I'll tackle any comments you may have.

@fcofdez
Copy link
Contributor Author

fcofdez commented Jul 11, 2025

@elasticmachine update branch

@fcofdez
Copy link
Contributor Author

fcofdez commented Jul 11, 2025

@elasticmachine update branch

@fcofdez fcofdez merged commit 8d83ede into elastic:main Jul 11, 2025
33 checks passed
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
)

This commit adds two new methods to SharedBlobCacheService,
fetchRange and fetchRegion. This new methods provide the same
functionality as their maybe version, but the main difference is
that they take a new boolean parameter (force) that allows the caller
to specify if fetching the range/region should force an eviction
if there are no free regions available.
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
)

This commit adds two new methods to SharedBlobCacheService,
fetchRange and fetchRegion. This new methods provide the same
functionality as their maybe version, but the main difference is
that they take a new boolean parameter (force) that allows the caller
to specify if fetching the range/region should force an eviction
if there are no free regions available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Searchable Snapshots Searchable snapshots / frozen indices. >non-issue serverless-linked Added by automation, don't add manually Team:Distributed Indexing Meta label for Distributed Indexing team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants