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

Query: Refactors Optimistic Direct Execution to be turned on by default on .NET SDK #4225

Merged
Merged
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c5afef5
Turned on ODe by default
akotalwar Dec 21, 2023
1829fac
update subpartitioning tests to include ODE
NaluTripician Jan 2, 2024
1bac380
Updated contracts
akotalwar Jan 3, 2024
caf86c6
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 3, 2024
2fe5471
adds multihash test cases
NaluTripician Jan 3, 2024
f1aae84
Updated client serialization test output
akotalwar Jan 3, 2024
fa4b47f
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 3, 2024
492425c
Updated OffsetLimitPageSize() test
akotalwar Jan 4, 2024
255d13b
Revert changes to Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos…
akotalwar Jan 4, 2024
f4514db
Updated EndToEndTraceWriterBaselineTests.ReadManyAsync baseline test
akotalwar Jan 4, 2024
094e886
Removed account details
akotalwar Jan 5, 2024
cc1db80
Updated performance benchmark results
akotalwar Jan 5, 2024
ab69838
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 6, 2024
4fb4163
Set enableODE to true for some of the tests
akotalwar Jan 10, 2024
badcfd0
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 10, 2024
eb85e34
Updated Feed token tests to test ODE and non ODE cases
akotalwar Jan 10, 2024
426f6b0
Added ODE testing for Session token regression test
akotalwar Jan 12, 2024
8f0ce41
Updated AggregateQueryTests() and CosmosMultiHashTest()
akotalwar Jan 12, 2024
e30479f
Reverted changes to OffsetLimitPageSize()
akotalwar Jan 13, 2024
a8e01e8
Added ODE testing to AggregateFunctionAsync()
akotalwar Jan 15, 2024
53ed6dc
Removed account details from baseline tests
akotalwar Jan 15, 2024
0110e90
Added assert to confirm that the right document is being returned eve…
akotalwar Jan 16, 2024
07e1a9e
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 16, 2024
ac55208
Updated location of foreach loop for ODE
akotalwar Jan 16, 2024
2e2e35a
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 16, 2024
ddea7d0
Updated baselines
akotalwar Jan 17, 2024
5af47e4
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 17, 2024
0918378
Fixed comments
akotalwar Jan 19, 2024
021cad9
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 19, 2024
2b068e0
Cleaned up code
akotalwar Jan 19, 2024
78ea0e4
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 19, 2024
131112c
Fixed baselines
akotalwar Jan 19, 2024
f84c9d9
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 19, 2024
4ebd3a8
Updated more baselines
akotalwar Jan 19, 2024
3d3c7f7
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 19, 2024
cd871ad
Setting QueryRequestRateTest() to not use ODE
akotalwar Jan 22, 2024
ede9b21
Merge branch 'users/akotalwar/TurnOnODEByDefault' of https://github.c…
akotalwar Jan 22, 2024
d4df81c
Merge branch 'master' into users/akotalwar/TurnOnODEByDefault
akotalwar Jan 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ public async Task MultiHashReplaceItemTest()
}

[TestMethod]
public async Task MultiHashQueryItemTest()
[DataRow(true)]
[DataRow(false)]
akotalwar marked this conversation as resolved.
Show resolved Hide resolved
public async Task MultiHashQueryItemTest(bool odeEnabled)
{
Cosmos.PartitionKey pKey;
Cosmos.PartitionKey badPKey;
Expand Down Expand Up @@ -464,7 +466,7 @@ public async Task MultiHashQueryItemTest()
using (FeedIterator<Document> feedIterator = this.container.GetItemQueryIterator<Document>(
query,
null,
new QueryRequestOptions() { EnableOptimisticDirectExecution = true, PartitionKey = pKey }))
new QueryRequestOptions() { EnableOptimisticDirectExecution = odeEnabled, PartitionKey = pKey }))
{
Assert.IsTrue(feedIterator.HasMoreResults);

Expand All @@ -481,7 +483,7 @@ public async Task MultiHashQueryItemTest()
using (FeedIterator<Document> feedIterator = this.container.GetItemQueryIterator<Document>(
query,
null,
new QueryRequestOptions() { EnableOptimisticDirectExecution = true, PartitionKey = pKey }))
new QueryRequestOptions() { EnableOptimisticDirectExecution = odeEnabled, PartitionKey = pKey }))
{
Assert.IsTrue(feedIterator.HasMoreResults);

Expand All @@ -495,7 +497,7 @@ public async Task MultiHashQueryItemTest()
using (FeedIterator<Document> badFeedIterator = this.container.GetItemQueryIterator<Document>(
query,
null,
new QueryRequestOptions() { EnableOptimisticDirectExecution = true, PartitionKey = badPKey}))
new QueryRequestOptions() { EnableOptimisticDirectExecution = odeEnabled, PartitionKey = badPKey}))
{
FeedResponse<Document> queryDocBad = await badFeedIterator.ReadNextAsync();
Assert.ThrowsException<InvalidOperationException>(() =>
Expand Down
Loading