Skip to content

Query Failure#6947

Merged
bergundy merged 1 commit intotemporalio:mainfrom
bergundy:query-failure
Dec 19, 2024
Merged

Query Failure#6947
bergundy merged 1 commit intotemporalio:mainfrom
bergundy:query-failure

Conversation

@bergundy
Copy link
Member

@bergundy bergundy commented Dec 6, 2024

What changed?

Attach a Failure object from query failures to the QueryFailure serviceerror.

Why?

Allows encryption of failure messages and stack traces.

See also temporalio/api/pull/503.

@bergundy bergundy requested a review from a team as a code owner December 6, 2024 17:48
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a small comment explaining the purpose of the second half of the test? I don't quite see the difference to the first half.

Copy link
Contributor

Choose a reason for hiding this comment

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

q: why not just a single test, with both "QueryWorkflow" and "PollWorkflowTaskQueue/RespondQueryTaskCompleted" in a separate goroutines? What are you testing by testing like that?

Copy link
Member Author

Choose a reason for hiding this comment

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

I only need two concurrent routines, so I'm using the test routine as one of those.

Copy link
Member Author

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Thanks for the reviews.

I'll add more comments to clarify.

@bergundy bergundy merged commit b8c1228 into temporalio:main Dec 19, 2024
@bergundy bergundy deleted the query-failure branch December 19, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants