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

Protect against legacy queries when state is destroyed #1568

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Protect against legacy queries when workflow execution is destroyed. Previously the SDK would panic since legacy queries against a cached execution have no history.

closes #1567

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner July 29, 2024 01:03
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Nice. I can see how a 0-cache integration test didn't catch this because that disables sticky. I wonder if we should have some kind of test that still has cache/sticky enabled but clears cache after each task completion to exercise all the sticky history refetch behavior.

@Quinn-With-Two-Ns
Copy link
Contributor Author

Clearing cache actually wouldn't catch this, it requires a destroyed cached execution. Maybe the long term solution is to refactor the SDK to remove this concept of a destroyed cached execution.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit dd28ced into temporalio:master Jul 29, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants