Skip to content

Add ?storage arg to mount API #68431

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

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Feb 3, 2021

This commit introduces a new flag, ?storage, controlling the storage
of the local copy of a searchable snapshot.

This commit introduces a new flag, `?partial_local_copy`, indicating
that the local copy of a searchable snapshot should be partial rather
than complete, enabling the frozen tier functionality.
@DaveCTurner DaveCTurner added >enhancement :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Feb 3, 2021
@DaveCTurner DaveCTurner requested a review from ywelsch February 3, 2021 09:43
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 3, 2021
@elasticmachine
Copy link
Collaborator

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

@DaveCTurner
Copy link
Contributor Author

@elasticmachine please run elasticsearch-ci/2 (unrelated failure, reproduces without these changes)

@DaveCTurner DaveCTurner changed the title Add ?partial_local_copy arg to mount API Add ?storage arg to mount API Feb 3, 2021
Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -72,7 +72,8 @@ private void executeTest(final String indexName, final Client client) throws Exc
indexName,
Settings.builder().put(IndexMetadata.SETTING_INDEX_HIDDEN, randomBoolean()).build(),
Strings.EMPTY_ARRAY,
true
true,
randomFrom(MountSearchableSnapshotRequest.Storage.FULL_COPY, MountSearchableSnapshotRequest.Storage.SHARED_CACHE)
Copy link
Contributor

Choose a reason for hiding this comment

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

just randomFrom(Storage.values())?

@DaveCTurner
Copy link
Contributor Author

@elasticmachine please run elasticsearch-ci/2

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

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

LGTM 2

@@ -162,6 +186,13 @@ public Settings indexSettings() {
return ignoredIndexSettings;
}

/**
* @return whether the local copy of the snapshot is partial ({@code true}) or complete ({@code false}).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe drop (or adjust the doc) here?

@DaveCTurner DaveCTurner merged commit 6a34532 into elastic:frozen-proto Feb 4, 2021
@DaveCTurner DaveCTurner deleted the 2021-02-02-partial_local_copy-api branch February 4, 2021 09:16
@DaveCTurner
Copy link
Contributor Author

YOLO merge to the feature branch, a PR to master is impending.

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 >enhancement Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants