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

Fix issue with codecs returning passed-in payloads #526

Merged
merged 1 commit into from
May 9, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented May 9, 2024

What was changed

Fixed issue where if the same payload was returned from a codec, we were clearing metadata it before applying new metadata, naively/incorrectly assuming that it wouldn't be the same reference. Fixed to use CopyFrom which checks reference.

Checklist

  1. Closes [Bug] Returning given payload object in codec causes issues #525

@cretz cretz requested a review from a team as a code owner May 9, 2024 22:04
@cretz cretz merged commit f96679b into temporalio:main May 9, 2024
12 checks passed
@cretz cretz deleted the codec-payload-reuse branch June 10, 2024 20:11
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.

[Bug] Returning given payload object in codec causes issues
2 participants