-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Add ?storage arg to mount API #68431
Conversation
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.
Pinging @elastic/es-distributed (Team:Distributed) |
@elasticmachine please run elasticsearch-ci/2 (unrelated failure, reproduces without these changes) |
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
@@ -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) |
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.
just randomFrom(Storage.values())
?
@elasticmachine please run elasticsearch-ci/2 |
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 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}). |
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.
Maybe drop (or adjust the doc) here?
YOLO merge to the feature branch, a PR to master is impending. |
This commit introduces a new flag,
?storage
, controlling the storageof the local copy of a searchable snapshot.