Skip to content

Conversation

@adityasa
Copy link
Contributor

@adityasa adityasa commented Apr 12, 2024

Pull Request Template

Description

This change fixes the issue with persisted continuation tokens by turning off ODE by Default. The issue is hit by DataVerse team where continuation tokens for a given query are persisted for long periods of time. If query that originally started with ODE resumes execution after partition split has occurred, it currently fails with following error message:
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: BadRequest (400); Substatus: 20007; ActivityId: ; Reason: (Response status code does not indicate success: BadRequest (400); Substatus: 20007; ActivityId: ; Reason: (Invalid format for continuation token {"OptimisticDirectExecutionToken":{"token":"{"OptimisticDirectExecutionToken". . .

Currently this issue is tracked by #4432, however the fix for that issue is much more involved, since it requires hydrate a continuation token required by non-ODE pipelines from original ODE continuation token.

As a mitigation, this change turns off ODE by default, unless a continuation of an ODE query is being executed.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #IssueNumber

@adityasa adityasa force-pushed the users/adityasa/TurnOffOde branch from ab760df to 139d6e6 Compare April 19, 2024 18:32
@adityasa
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

sboshra
sboshra previously approved these changes Apr 23, 2024
Copy link
Contributor

@sboshra sboshra left a comment

Choose a reason for hiding this comment

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

:shipit:

@adityasa adityasa marked this pull request as ready for review April 23, 2024 20:11
@adityasa adityasa added the auto-merge Enables automation to merge PRs label Apr 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot enabled auto-merge (squash) April 23, 2024 21:12
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit 1463345 into master Apr 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the users/adityasa/TurnOffOde branch April 24, 2024 13:42
adityasa added a commit that referenced this pull request May 15, 2024
…default (#4413)

* Turn of ODE by default.

* Updated tests

* Update

* Test fix

* Added test for query resumption with ODE token with partition split container (failure case).

* Update.

* Update Benchmark

* Addressed comments.
adityasa added a commit that referenced this pull request May 16, 2024
…default (#4413)

* Turn of ODE by default.

* Updated tests

* Update

* Test fix

* Added test for query resumption with ODE token with partition split container (failure case).

* Update.

* Update Benchmark

* Addressed comments.
microsoft-github-policy-service bot pushed a commit that referenced this pull request May 16, 2024
…ch (#4498)

* Fix bug in OrderByCrossPartitionQueryPipelineStage to ensure that failures in creating the inner pipeline stage are bubbled up to the higher stages (#4419)

* Query: Fixes Persisted continuationToken issue by turning off ODE by default (#4413)

* Turn of ODE by default.

* Updated tests

* Update

* Test fix

* Added test for query resumption with ODE token with partition split container (failure case).

* Update.

* Update Benchmark

* Addressed comments.

---------

Co-authored-by: neildsh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants