Files
Lina Jodoin 9cafa94a3a Clone payloads in CreateHistoryStartWorkflowRequest to avoid losing payloads on retry (#6814)
- `CreateHistoryStartWorkflowRequest` will now deep copy the `request`
structure when `LastCompletionResult` or `ContinuedFailure` are set.

To avoid sending those payloads twice,
`CreateHistoryStartWorkflowRequest` unsets those fields on the internal
forwarded request struct. This is done by directly mutating the
`request` parameter. When the workflow handler calls into
`CreateHistoryStartWorkflowRequest` and fails, the internal retry
handler will retry the request, but the fields have already been unset
on the reused `request` object. Subsequent retries from the internal
handler will therefore be missing these fields without additional
consideration.

- New test

- A minimal performance difference because of the deep copy.

- No

- No
2024-11-14 14:23:33 -08:00
..
2023-06-02 15:30:01 -07:00
2024-05-06 11:25:19 -07:00
2024-01-03 02:34:40 +00:00
2024-11-05 22:46:18 +00:00
2021-01-29 15:13:36 -08:00
2023-09-07 21:10:45 +00:00
2024-04-23 17:00:52 +00:00
2023-10-10 14:34:15 -07:00
2024-08-30 12:54:11 -07:00
2024-11-05 11:28:39 -08:00