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

bugfix: consistently plumb failureConverter #956

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

asonawalla
Copy link
Contributor

What was changed

Literal definitions of workflowRunImpl now consistently plumb the failureConverter through, fixing a panic we've been observing since the implementation of failureConverter.

NOTE: some formatting nits included courtesy of gofmt

Why?

The recent addition of a failureConverter added implicit not-nil assumption here, where we've been observing a nil-pointer panic. Even though the temporal client itself initializes a default failure converter, before this change it was not passed to workflowRunImpl.

Checklist

  1. Closes
    N/A
  2. How was this tested:
    By querying a failed workflow's status using the patched code. The unpatched code would panic, the patched code behaves as expected.
  3. Any docs updates needed?
    N/A

Literal definitions of workflowRunImpl now consistently plumb the
failureConverter through, fixing a panic we've been observing since the
implementation of failureConverter.
@asonawalla asonawalla requested a review from a team as a code owner November 15, 2022 00:15
@CLAassistant
Copy link

CLAassistant commented Nov 15, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@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.

Not sure why the comments were reformatted but the fix LGTM.
Thanks!

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.

Not sure why the comments were reformatted but the fix LGTM.

https://golang.org/doc/comment was updated significantly in Go 1.19 and go fmt reflects it. Expect to see these more and more when these older files are touched.

@cretz cretz merged commit 68010f8 into temporalio:master Nov 15, 2022
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.

4 participants