-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Extract CacheBufferedIndexInput from CacheDirectory #53879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract CacheBufferedIndexInput from CacheDirectory #53879
Conversation
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
...src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInput.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I left a couple of suggestions.
...-snapshots/src/main/java/org/elasticsearch/index/store/BaseSearchableSnapshotIndexInput.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInput.java
Show resolved
Hide resolved
...src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInput.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; one nit about an unused field.
@@ -48,6 +50,8 @@ | |||
*/ | |||
public class SearchableSnapshotIndexInput extends BaseSearchableSnapshotIndexInput { | |||
|
|||
private static final Logger logger = LogManager.getLogger(SearchableSnapshotIndexInput.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't used? I mean it probably will be in future, but I think I'd prefer to add it when it's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️ Thanks, I removed it.
Thanks David |
Following #53860, this pull request extracts the
CacheBufferedIndexInput
class from theCacheDirectory
so that it can be merged withSearchableSnapshotDirectory
.