Skip to content

Add Azure support for ranged read blob operations #54358

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

Merged

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Mar 27, 2020

This pull request adds support for ranged read blob operations to the repository azure plugin. It adds the necessary plumbing down to the Azure SDK with additionnal unit tests and also adds a QA test for searchable snapshots.

Relates #50999

@tlrx tlrx added >enhancement :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Mar 27, 2020
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM :)

@@ -128,7 +135,7 @@ private BlobContainer createBlobContainer(final int maxRetries) {
final AzureStorageService service = new AzureStorageService(clientSettings.build()) {
@Override
RetryPolicyFactory createRetryPolicy(final AzureStorageSettings azureStorageSettings) {
return new RetryExponentialRetry(1, 100, 500, azureStorageSettings.getMaxRetries());
return new RetryExponentialRetry(1, 10, 100, azureStorageSettings.getMaxRetries());
Copy link
Member

Choose a reason for hiding this comment

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

Why make this way more aggressive? I don't see the harm in doing so ... seems like we don't need these long timeout here, just wondering? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

While looking at this class I found them a bit high, specially when a high number of retries (5) is picked up so I lowered them. If that causes any issue on CI I'll restore the previous values.

@tlrx
Copy link
Member Author

tlrx commented Mar 31, 2020

@elasticmachine run elasticsearch-ci/2

@tlrx
Copy link
Member Author

tlrx commented Apr 1, 2020

@elasticmachine update branch

@tlrx
Copy link
Member Author

tlrx commented Apr 1, 2020

@elasticmachine run elasticsearch-ci/1 (unrelated failure)
@elasticmachine run elasticsearch-ci/2 (IML related failure)

@tlrx tlrx merged commit f879268 into elastic:feature/searchable-snapshots Apr 1, 2020
@tlrx tlrx deleted the add-azure-range-blob-dl branch April 1, 2020 09:58
@tlrx
Copy link
Member Author

tlrx commented Apr 1, 2020

Thanks a lot Armin!

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants