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

Fail workflow task with BadSearchAttributes cause if search attributes mapper returned an error #3919

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

alexshtin
Copy link
Member

What changed?
Fail workflow task with BadSearchAttributes cause if search attributes mapper returned an error.

Why?
Just returning an error from handleCommands causes workflow task to timeout but not to fail, which is wrong.
Failing workflow task allow to write error message to the history and expose error message in WebUI/tctl.

How did you test it?
Upcomming functional tests.

Potential risks
No risks but there is small behaviour change: WTFail event will be written to the history instead of WTTimeout.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner February 8, 2023 18:56
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.

2 participants