Skip to content

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