-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Rename SearchableSnapshotIndexInput and move cache classes into store package #54075
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
Rename SearchableSnapshotIndexInput and move cache classes into store package #54075
Conversation
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
@elasticmachine update branch |
@elasticmachine update branch |
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.
My concern with DirectBufferedIndexInput
is that it sounds very general and, with this change, is not even in a package suggesting its relationship to searchable snapshots. How about DirectBlobContainerIndexInput
vs CachedBlobContainerIndexInput
?
This is a good suggestion, I use it to rename the classes. Let me know what you think. |
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, but for one nit.
|
||
import org.elasticsearch.ElasticsearchException; | ||
import org.elasticsearch.action.ActionListener; | ||
import org.elasticsearch.cluster.coordination.DeterministicTaskQueue; | ||
import org.elasticsearch.common.settings.Settings; | ||
import org.elasticsearch.index.store.cache.SparseFileTracker; |
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.
Strange, this import is unnecessary but checkstyle is happy.
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 like a checkstyle limitation :/ I removed it in df9bc92
Thanks David |
This pull request suggests to rename the
SearchableSnapshotIndexInput
class toDirectBufferedIndexInput
(in comparison toCacheBufferedIndexInput
) and places it into aorg.elasticsearch.index.store.direct
package.It also moves
CacheBufferedIndexInput
and associated classes to theorg.elasticsearch.index.store.cache
package so that it is colocated with thedirect
package.The
IndexInputStats
class is moved toorg.elasticsearch.index.store
.