Skip to content

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

Merged
merged 8 commits into from
Mar 27, 2020

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Mar 24, 2020

This pull request suggests to rename the SearchableSnapshotIndexInput class to DirectBufferedIndexInput (in comparison to CacheBufferedIndexInput) and places it into a org.elasticsearch.index.store.direct package.

It also moves CacheBufferedIndexInput and associated classes to the org.elasticsearch.index.store.cache package so that it is colocated with the direct package.

The IndexInputStats class is moved to org.elasticsearch.index.store.

@tlrx tlrx added >non-issue :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Mar 24, 2020
@tlrx tlrx requested a review from DaveCTurner March 24, 2020 12:21
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@tlrx
Copy link
Member Author

tlrx commented Mar 24, 2020

@elasticmachine update branch

@tlrx
Copy link
Member Author

tlrx commented Mar 24, 2020

@elasticmachine update branch

Copy link
Contributor

@DaveCTurner DaveCTurner left a 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?

@tlrx
Copy link
Member Author

tlrx commented Mar 26, 2020

How about DirectBlobContainerIndexInput vs CachedBlobContainerIndexInput?

This is a good suggestion, I use it to rename the classes. Let me know what you think.

@tlrx tlrx requested a review from DaveCTurner March 26, 2020 09:05
Copy link
Contributor

@DaveCTurner DaveCTurner left a 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;
Copy link
Contributor

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.

Copy link
Member Author

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

@tlrx tlrx merged commit 4db29c0 into elastic:feature/searchable-snapshots Mar 27, 2020
@tlrx tlrx deleted the move-and-rename branch March 27, 2020 16:48
@tlrx
Copy link
Member Author

tlrx commented Mar 27, 2020

Thanks David

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 >non-issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants