Skip to content

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

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Mar 20, 2020

Following #53860, this pull request extracts the CacheBufferedIndexInput class from the CacheDirectory so that it can be merged with SearchableSnapshotDirectory.

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

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

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.

Looks good, I left a couple of suggestions.

@tlrx tlrx requested a review from DaveCTurner March 20, 2020 16:29
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; one nit about an unused field.

@@ -48,6 +50,8 @@
*/
public class SearchableSnapshotIndexInput extends BaseSearchableSnapshotIndexInput {

private static final Logger logger = LogManager.getLogger(SearchableSnapshotIndexInput.class);
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂️ Thanks, I removed it.

@tlrx tlrx merged commit 815c861 into elastic:feature/searchable-snapshots Mar 20, 2020
@tlrx tlrx deleted the extract-cache-buffered-index-input branch March 20, 2020 18:02
@tlrx
Copy link
Member Author

tlrx commented Mar 20, 2020

Thanks David

tlrx added a commit that referenced this pull request Mar 24, 2020
Following #53860 and #53879, this commit now merges 
CacheDirectory into SearchableSnapshotDirectory.
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