Skip to content
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

[plugin] repository-azure: add configuration settings for connect/write/response/read timeouts #1789

Merged
merged 3 commits into from
Dec 22, 2021

Conversation

reta
Copy link
Collaborator

@reta reta commented Dec 22, 2021

Signed-off-by: Andriy Redko andriy.redko@aiven.io

Description

The Azure Repository Plugin supports only single timeout setting which translates to operation timeout in Azure SDK v12. However, there are connect/write/response/read timeouts which could be fine tuned for a particular environment but there is no convenient way to configure those right now.

The following new settings have been introduced:

azure.client.<client>.connect.timeout
azure.client.<client>.write.timeout
azure.client.<client>.read.timeout
azure.client.<client>.response.timeout

Issues Resolved

Closes #1762

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…te/response/read timeouts

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta reta requested a review from a team as a code owner December 22, 2021 14:28
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 78e5405
Log 1622

Reports 1622

@dblock dblock requested a review from andrross December 22, 2021 15:57
Copy link
Member

@andrross andrross left a comment

Choose a reason for hiding this comment

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

It's probably worth adding a comment to the existing timeout setting to explain what it means now that there are additional timeout settings.

// See please NettyAsyncHttpClientBuilder#DEFAULT_CONNECT_TIMEOUT
public static final AffixSetting<TimeValue> CONNECTION_TIMEOUT_SETTING = Setting.affixKeySetting(
AZURE_CLIENT_PREFIX_KEY,
"connection.timeout",
Copy link
Member

Choose a reason for hiding this comment

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

Minor, but what do you think about using "connect" instead of "connection" for this setting and the variable names to keep it consistent with the underlying Azure property?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@andrross thank you, sure, no objections, renaming

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta
Copy link
Collaborator Author

reta commented Dec 22, 2021

It's probably worth adding a comment to the existing timeout setting to explain what it means now that there are additional timeout settings.

I think the official docs for each plugin is the best way to describe the settings, but comment has been added

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 69d08a9
Log 1624

Reports 1624

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success d728932
Log 1625

Reports 1625

@andrross andrross merged commit 5f100c5 into opensearch-project:main Dec 22, 2021
reta added a commit to reta/OpenSearch that referenced this pull request Dec 23, 2021
…te/response/read timeouts (opensearch-project#1789)

* [plugin] repository-azure: add configuration settings for connect/write/response/read timeouts

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Addressing code review comments: renaming connectionXxx to connectXxx

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Addressing code review comments: adding timeout comment

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
andrross pushed a commit that referenced this pull request Dec 23, 2021
…te/response/read timeouts (#1789) (#1802)

* [plugin] repository-azure: add configuration settings for connect/write/response/read timeouts

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Addressing code review comments: renaming connectionXxx to connectXxx

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Addressing code review comments: adding timeout comment

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[plugin] repository-azure: add configuration settings for connect/write/response/read timeouts
3 participants