* Added ability to accept the AllowOptimisticDirectExecution flag from the backend and use that flag to decide if the Ode pipeline should be used or not.
* Added comment and removed extra spacing
* Added test coverage
* Added exception handling logic
* Resolved comments
* Added null check for key parameter
* Removed changes to common test infra
* Removed all changes from QueryPartitionProviderTestInstance
* Remove changes pt2
* Removed the dictionary in QueryPartitionProvider and added a bool instead
* Updated GetClientDisableOptimisticDirectExecution()
* Fixed comments
* Revert QueryIterator.cs
* Undoing changes to settings.json
* Undoing changes to QueryIterator.cs
* Updated error message
* Made functions static
* Cast to bool instead of recasting in GetClientDisableOptimisticDirectExecution()
* Added clientQLCompatibilityLevel support on client
* Updated assert
* Updated client tests to use Data Contract serializer and deserializer
* Added support to obtain the distribution plan payload on the client
* Added binary support
* Removed CheckCompatibilityLevelFlagInQuerySpec()
* Renamed ParseElementsFromRestStream()
* Updated test response
* Switched to using binary json navigator
* Using local variable before type check
* Updated name to DistributionPlanSpec
* Added support to test multiple distribution plan samples
* Removed binary sample
* Updated binary test
* Added ignore flag
* Fixed merge conflicts 2.0
* Resolved comments
* Updated function name
* Removed an unnecessary assert
* Fixed comment
* Improved debug assert message
* Added checks to confirm that resourceType is document before getting distributionPlan
* Removed changes to resourceManagement.yml
* Added ability to accept the AllowOptimisticDirectExecution flag from the backend and use that flag to decide if the Ode pipeline should be used or not.
* Added comment and removed extra spacing
* Added test coverage
* Added exception handling logic
* Resolved comments
* Added null check for key parameter
* Removed changes to common test infra
* Removed all changes from QueryPartitionProviderTestInstance
* Remove changes pt2
* Removed the dictionary in QueryPartitionProvider and added a bool instead
* Updated GetClientDisableOptimisticDirectExecution()
* Fixed comments
* Revert QueryIterator.cs
* Undoing changes to settings.json
* Undoing changes to QueryIterator.cs
* Updated error message
* Made functions static
* Cast to bool instead of recasting in GetClientDisableOptimisticDirectExecution()
* Added ignore flag
* Fixed merge conflicts
* Updated GetPartitionedQueryExecutionInfoAndPartitionProvider()
* Updated return type in OffsetLimitPageSize()
* Updated change log and bumped up the patch version.
* Updated change log and bumped up the minor version.
* Updated change log to reflect correct version.
* [Internal] CodeAnalsis: Fixing CA2200 for test projects
* Making code warning clean
* fixing the usages projects
* Removing the insource overrides
* One mroe small fix
---------
Co-authored-by: Sourabh Jain <sourabhjain@microsoft.com>
* Upset status codes clarification
* Upgrade Resiliency: Adds Code to Enable Advanced Replica Selection Feature for Preview (#4180)
* Code changes to enable replica validation for preview.
* Code changes to enable replica validation for preview and GA.
---------
Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
* Code changes to fix duplicate channel and thread pool on refresh flow.
* Code changes to fix failed tests.
* Code changes to add global semaphore for concurrency control in address cache.
* Code changes to refactor the refresh async method.
* Code changes to address review comments.
* Code changes to update summary.
* Fix logic in CosmosQueryExecutionContextFactory where we determine optimal page size for ORDER BY queries that have an OFFSET/LIMIT clause. Previously, the logic was only being applied to TOP and not OFFSET/LIMIT.
* Changes based on PR feedback
* Change based on PR feedback
* Code changes to add retry logic for GW returned 503.9002.
* Revert "Code changes to add retry logic for GW returned 503.9002."
This reverts commit 53ef5f3c1b.
* Code changes to clean up the PPAF retry logic fix.
* Code changes to add retry logic for GW returned 503.9002.
* Revert "Code changes to add retry logic for GW returned 503.9002."
This reverts commit 53ef5f3c1b.
* Code changes to clean up the PPAF retry logic fix.
* Code changes to revert location cache changes.
* Code changes ro revert location cache changes.
* Code changes to fix some of the failing tests.
* Code changes to fix unit tests.
* Code changes to add unit tests for client options.
* Code changes to draft docs for PPAF design approach.
* Code changes to add SDK side design docs for PPAF.
* Code changes to modify the PPAF design.
* Code changes to fix unit test.
* Code changes to rename test name.
* Code changes to add some cosmetic changes.
* Code changes to enable retry on write for all regions in single master accounts.
* Code changes to add code comments.
* Code changes to clean up and handle endpoints in location cache.
* Code changes to fix unit tests. Added detailed code comments.
* Code changes to clean up the account read endpoints generation logic.
* Code changes to fix unit tests.
* Code changes to disable retry when ppaf is not enabled. Also validated application preferred region.
* Code changes to fix unit tests.
* Code changes to update md file.
* Code changes to remove chache expiry check for account read endpoints.
* Code changes to fix unit test.
* Code changes to fix more tests.
* Code changes to address review comments.
* Code changes to fix verbaige in design document.
* Initial commit
* Update
* Updated the test
* Updated the test
* Sample fix; to validate Suite0.
* Skipped the ConflictsTest (which depends on azure cosmosdb account)
* Addressed comments
* Added Unit Test.
* Reverted unnecessary change.
* issue 4115 initial checkin. need insight from issuer on reproducing this issue
* test refactoring and adding more coverage for other NotFound scenarios
* commit on some actionables
* setting JsonConvert.DefaultSettings to null so that other tests will not fail
* as requested, removed catches from test methods
* direct version bump
* Code changes to fix emulator tests to comply with direct release 3.31.5.
---------
Co-authored-by: Debdatta Kunda <dkunda@microsoft.com>
* Allow ComosClientOptions to take ApplicationRegion and ApplicationPreferredRegions in multiple region name formats.
This is a proposed fix for - https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2330
* Address PR comment to avoid duplicating list of names.
* Remove the map table cache
The map table is only used on initialization, so there's no need to keep a cache of it for the lifetime of the application
* Only convert the region names when the client is initializing
The cache is created before converting all the names, so it only needs created once, but doesn't remain for the entire lifetime of the application
* Update tests
* Make RegionNameMapper an instantiable class
Instead of having a prepare/clear cache system on a static class, make RegionNameMapper a class that gets instantiated for use and let the ctor handle it.
* Remove debugging
* Update tests to actually test things
---------
Co-authored-by: Pradeep Chellappan <Pradeep.Chellappan@docusign.com>
Co-authored-by: Pradeep Chellappan <94089783+pradeep-chellappan@users.noreply.github.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
* Showing Estimated Cost only when new container is getting created
* read container to get container response
* disable client telemetry by default
* removed unused imports
* resolve merge conflict
* fixed name
* fix container not found
* removed the message
* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
* removed line space
---------
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
* Add support for translation to REgexmatch
* Add test and fix some indexing issues
* remove visit explicit, add some comment. Update public contract and added the baseline for the test
* add the missing baseline
* added test
* address code review
* update csproj
---------
Co-authored-by: Minh Le <leminh@microsoft.com>
* Added query validity function on Ode code path
* Fixed syntax
* Updated to use string search instead of query parsing
* Updated string search to now be regex
* Changed location of caller for QueryValidityCheck()
* Updated regex string
* Added extra test coverage
* Added const string to error messages
* Added compile flag to Regex
* Fixed comments
* Added missing null reference coverage
* Removed extra foreach loop in test
* Removed useQueryPlan bool in test code