Skip to content

Conversation

@original-brownbear
Copy link
Contributor

This class is only used by the blob store repository
and CCR and the abstractions didn't really make sense
with CCR ignoring the concrete restoreFiles method
completely and having a method used only by the blobstore
overriden as unsupported.
=> Moved to a more fitting set of abstractions
=> Dried up the stream wrapping in BlobStoreRepository a little
now that the restoreFile method could be simplified

Relates #48110 as it makes changing the API of FileRestoreContext
to what is needed for async restores simpler

back port of #48173

This class is only used by the blob store repository
and CCR and the abstractions didn't really make sense
with CCR ignoring the concrete `restoreFiles` method
completely and having a method used only by the blobstore
overriden as unsupported.
=> Moved to a more fitting set of abstractions
=> Dried up the stream wrapping in `BlobStoreRepository` a little
now that the `restoreFile` method could be simplified

Relates elastic#48110 as it makes changing the API of `FileRestoreContext`
to what is needed for async restores simpler
@original-brownbear original-brownbear added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Oct 21, 2019
@elasticmachine
Copy link
Collaborator

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

@original-brownbear original-brownbear merged commit e65c609 into elastic:7.x Oct 21, 2019
@original-brownbear original-brownbear deleted the 48173-7.x branch October 21, 2019 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants