Skip to content

Add ?storage arg to mount API#68431

Merged
DaveCTurner merged 5 commits intoelastic:frozen-protofrom
DaveCTurner:2021-02-02-partial_local_copy-api
Feb 4, 2021
Merged

Add ?storage arg to mount API#68431
DaveCTurner merged 5 commits intoelastic:frozen-protofrom
DaveCTurner:2021-02-02-partial_local_copy-api

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

@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/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 Meta label for distributed team. label Feb 3, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@DaveCTurner
Copy link
Copy Markdown
Member 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
Copy Markdown
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

Strings.EMPTY_ARRAY,
true
true,
randomFrom(MountSearchableSnapshotRequest.Storage.FULL_COPY, MountSearchableSnapshotRequest.Storage.SHARED_CACHE)
Copy link
Copy Markdown
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
Copy Markdown
Member Author

@elasticmachine please run elasticsearch-ci/2

Copy link
Copy Markdown
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

}

/**
* @return whether the local copy of the snapshot is partial ({@code true}) or complete ({@code false}).
Copy link
Copy Markdown
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
Copy Markdown
Member 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/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants