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

Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable #38388

Conversation

FabianMeiswinkel
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel commented Jan 19, 2024

This PR adds an option to opt-out of applying End-to-end timeouts for non-point operations like queries when the end-to-end timeout is defined on the CosmosClientBuilder. When the end-to-end timeout is specified on the CosmosQueryRequestOptions it is always applied independent of this override.

The opt-out can happen either via System property COSMOS.E2E_FOR_NON_POINT_DISABLED == true or environment variable COSMOS_E2E_FOR_NON_POINT_DISABLED == true

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

…to users/fabianm/AllowDisablingE2eForNonPointOperations
@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - tests

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995
Copy link
Member

jeet1995 commented Feb 2, 2024

This PR would need a changelog entry.

Copy link
Member

@jeet1995 jeet1995 left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - tests

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel FabianMeiswinkel merged commit 291bb01 into Azure:main Feb 3, 2024
70 checks passed
FabianMeiswinkel added a commit to FabianMeiswinkel/azure-sdk-for-java that referenced this pull request Feb 3, 2024
…m property or environment variable (Azure#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

* Update utils.py

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
…se (#38626)

* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <xinlian@microsoft.com>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <64233642+xinlian12@users.noreply.github.com>
Co-authored-by: annie-mac <xinlian@microsoft.com>
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