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

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
@elasticmachine
Copy link
Collaborator

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

@original-brownbear
Copy link
Contributor Author

Jenkins run elasticsearch-ci/packaging-sample (Vagrant randomness)

@original-brownbear
Copy link
Contributor Author

Jenkins run elasticsearch-ci/packaging-sample (Vagrant randomness)

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

@original-brownbear
Copy link
Contributor Author

Thanks Tanguy!

@original-brownbear original-brownbear merged commit 7a0c050 into elastic:master Oct 21, 2019
@original-brownbear original-brownbear deleted the cleanup-restore-context-abstractions branch October 21, 2019 13:44
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Oct 21, 2019
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 added a commit that referenced this pull request Oct 21, 2019
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
@original-brownbear original-brownbear restored the cleanup-restore-context-abstractions branch January 6, 2021 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants