-
Notifications
You must be signed in to change notification settings - Fork 499
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
[Internal] Query: Adds environment variable for overriding EnableOptimisticDirectExecution default #4299
Merged
microsoft-github-policy-service
merged 6 commits into
master
from
users/adityasa/EnvironmentVariableForODE
Feb 2, 2024
Merged
[Internal] Query: Adds environment variable for overriding EnableOptimisticDirectExecution default #4299
microsoft-github-policy-service
merged 6 commits into
master
from
users/adityasa/EnvironmentVariableForODE
Feb 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adityasa
requested review from
khdang,
sboshra,
neildsh,
kirankumarkolli,
ealsur,
FabianMeiswinkel and
kirillg
as code owners
February 1, 2024 20:10
adityasa
changed the title
[Internal] Query: Adds environment variable configuration support for overriding default value for EnableOptimisticDirectExecution setting
[Internal] Query: Adds environment variable for overriding default value for EnableOptimisticDirectExecution setting
Feb 1, 2024
adityasa
changed the title
[Internal] Query: Adds environment variable for overriding default value for EnableOptimisticDirectExecution setting
[Internal] Query: Adds environment variable for overriding EnableOptimisticDirectExecution default
Feb 1, 2024
Microsoft.Azure.Cosmos/src/RequestOptions/QueryRequestOptions.cs
Outdated
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/RequestOptions/QueryRequestOptions.cs
Outdated
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/RequestOptions/QueryRequestOptions.cs
Outdated
Show resolved
Hide resolved
…thub.com/Azure/azure-cosmos-dotnet-v3 into users/adityasa/EnvironmentVariableForODE
sboshra
approved these changes
Feb 2, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kirankumarkolli
approved these changes
Feb 2, 2024
microsoft-github-policy-service
bot
deleted the
users/adityasa/EnvironmentVariableForODE
branch
February 2, 2024 02:34
adityasa
added a commit
that referenced
this pull request
Feb 3, 2024
…misticDirectExecution default (#4299) * Configured default value for EnableOptimisticDirectExecution setting to honor environment variable. * Updated tests to include case insensitive checks no environment variable name. * Addressed comments. * Removed unused using.
1 task
1 task
kundadebdatta
pushed a commit
that referenced
this pull request
Feb 7, 2024
…misticDirectExecution default (#4299) * Configured default value for EnableOptimisticDirectExecution setting to honor environment variable. * Updated tests to include case insensitive checks no environment variable name. * Addressed comments. * Removed unused using.
1 task
kundadebdatta
pushed a commit
that referenced
this pull request
Feb 7, 2024
…misticDirectExecution default (#4299) * Configured default value for EnableOptimisticDirectExecution setting to honor environment variable. * Updated tests to include case insensitive checks no environment variable name. * Addressed comments. * Removed unused using.
kundadebdatta
pushed a commit
that referenced
this pull request
Feb 7, 2024
…misticDirectExecution default (#4299) * Configured default value for EnableOptimisticDirectExecution setting to honor environment variable. * Updated tests to include case insensitive checks no environment variable name. * Addressed comments. * Removed unused using.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
This change adds an ability to override the default value of EnableOptimisticDirectExecution setting using an environment variable named "AZURE_COSMOS_OPTIMISTIC_DIRECT_EXECUTION_ENABLED".
The environment variable should have a value that can be parsed as a boolean in order for the override to work.
As before the default value is true and also the backend setting using clientDisableOptimisticDirectExecution acts as a master switch and acts as global account-level override to disable/enable ODE behavior (in clients).
The environment variable can be used while upgrading the sdk package to 3.38 onwards, which turns on ODE by default. As mentioned in the release notes (of 3.38), due to the use of a new type of continuation token, applications that execute queries (and their continuations) in a stateless manner on machines that can be using different versions of sdk, failures can be observed.
This environment variable can be set to true before upgrading the sdk package to avoid such failures during the sdk deployment process in production environment. Once the upgrade is complete the environment variable can be removed or set to false.
Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #IssueNumber