-
Notifications
You must be signed in to change notification settings - Fork 524
[Internal] Query: Adds Split Support for Ode #3572
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
Merged
Changes from 36 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
1dbfc8a
Added tests to test different aspects of merge/split support with Opt…
akotalwar 2fc0b89
Added gone exception simulation tests.
akotalwar 36d18bb
Added new tests and improved test infra
akotalwar 924b24a
Removed ParalleContEvocation test. Fixed comments
akotalwar 095a44d
Removed CreateParallelCrossPartitionPipelineStateAsync() as it is not…
akotalwar 9115fcf
Removed while loop in CreateDocumentContainerAsync()
akotalwar c054909
Fixed comments.
akotalwar 5807da9
Merge branch 'master' into users/akotalwar/TestsForMergeSplitSupport
akotalwar bfb4110
Updated ExecuteGoneExceptionOnODEPipeline()
akotalwar ea0aac4
Added type Assert for ExecuteGoneExceptionOnODEPipeline()
akotalwar b886f40
Replaced try-catch with if statement in MoveNextAsync()
akotalwar 04389e0
Added delegate to access TryCreateCoreContextAsync()
akotalwar 4af2036
Added check to confirm Ode pipeline is not called in fallback plan
akotalwar 1257ad3
Updated method name from OptimisticDirectExecutionContext() to TryCre…
akotalwar bd4c195
Using delegate instead of Func<>.
akotalwar 661b4f8
Ode fallback plan always calls Specialized pipeline
akotalwar 039fbe8
Using ServiceInterop/Gateway to get QueryPlan for Specialized Pipeline
akotalwar 60392ad
Added new test to check handling of failing fallback pipeline
akotalwar f9fbd8a
Code cleanup
akotalwar c230837
Added logic for handling non ODE continuation tokens
akotalwar c66be0f
Moved delegate away from member variables
akotalwar 758c07f
Added tests for Merge case
akotalwar d442b99
Updated method names
akotalwar d1dcd7e
Added checks for tryCatch
akotalwar 294d173
Updated SetCancellationToken() to use Try
akotalwar 0621090
Updated TryUnwrapContinuationToken()
akotalwar 87c9916
Removed changes in FlakyDocumentContainer.cs
akotalwar c4b0546
Removed unused imports
akotalwar 3de111c
Updated comments
akotalwar 7543ec7
Fixed comments and cleaned up test code
akotalwar 134dcc8
Added CosmosElement null check in TryUnwrapContinuationToken()
akotalwar 9d37c12
Removed FlakyDocumentContainer.cs from pull request
akotalwar a009e53
Removed unused imports
akotalwar 400d4f5
Updated TryUnwrapContinuationToken()
akotalwar 6179112
Update MoveNextAsync() call in OptimisticDirectExecutionQueryBaseline…
akotalwar c94db62
Made MergeTestUtil.IsFailedFallbackPipelineTest a readonly property
akotalwar 2416a89
Added IsPartitionSplitException() overload to take CosmosElement
akotalwar bc8fa42
Resolved git conflicts
akotalwar c129afe
Fixed bug regarding syntax error queries
akotalwar a68dd2c
Merge branch 'master' into users/akotalwar/SplitSupport
akotalwar 0d5390e
Merge branch 'master' into users/akotalwar/SplitSupport
akotalwar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
18 changes: 18 additions & 0 deletions
18
Microsoft.Azure.Cosmos/src/Query/Core/Pipeline/CosmosExceptionExtensions.cs
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // ------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // ------------------------------------------------------------ | ||
|
|
||
| namespace Microsoft.Azure.Cosmos.Query.Core.Pipeline | ||
| { | ||
| using System; | ||
|
|
||
| internal static class CosmosExceptionExtensions | ||
| { | ||
| public static bool IsPartitionSplitException(this Exception ex) | ||
| { | ||
| return ex is CosmosException cosmosException | ||
| && (cosmosException.StatusCode == System.Net.HttpStatusCode.Gone) | ||
| && (cosmosException.SubStatusCode == (int)Documents.SubStatusCodes.PartitionKeyRangeGone); | ||
| } | ||
akotalwar marked this conversation as resolved.
Show resolved
Hide resolved
akotalwar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
326 changes: 240 additions & 86 deletions
326
Microsoft.Azure.Cosmos/src/Query/Core/Pipeline/CosmosQueryExecutionContextFactory.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
319 changes: 211 additions & 108 deletions
319
...ry/Core/Pipeline/OptimisticDirectExecution/OptimisticDirectExecutionQueryPipelineStage.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.