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: Fixes Persisted continuationToken issue by turning off ODE by default #4413

Merged
merged 9 commits into from
Apr 24, 2024

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
Copy link
Contributor Author

/azp run

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 merged commit 1463345 into master Apr 24, 2024
23 checks passed
@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 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 <35383880+neildsh@users.noreply.github.com>
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.

None yet

3 participants