Skip to content

Conversation

@thecoop
Copy link
Member

@thecoop thecoop commented Apr 30, 2025

This IOContext did use to do something, but does no longer. So just remove it.

@thecoop thecoop added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >refactoring labels Apr 30, 2025
@thecoop thecoop requested a review from tlrx April 30, 2025 16:11
@elasticsearchmachine elasticsearchmachine added Team:Distributed Coordination Meta label for Distributed Coordination team v9.1.0 labels Apr 30, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

recoveryState.getIndex().addFileDetail(file.physicalName(), file.length(), false);
try {
final IndexInput input = openInput(file.physicalName(), CachedBlobContainerIndexInput.CACHE_WARMING_CONTEXT);
final IndexInput input = openInput(file.physicalName(), IOContext.DEFAULT);
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this would be a behavior change? IOContext.DEFAULT uses DEFAULT_READADVICE which will use ReadAdvice.RANDOM unless the system property org.apache.lucene.store.defaultReadAdvice is set. The CachedBlobContainerIndexInput.CACHE_WARMING_CONTEXT instance was being created using ReadAdvice.NORMAL explicitly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Doh, yes of course it is. Nevermind.

@thecoop thecoop closed this May 1, 2025
@thecoop thecoop deleted the remove-cache-prewarm-context branch May 1, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >refactoring Team:Distributed Coordination Meta label for Distributed Coordination team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants