From 428f71a0f96511b13c01c977cce9ee8a57f238e2 Mon Sep 17 00:00:00 2001 From: Rodrigo Zhou <2068124+rodrigozhou@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:42:11 -0500 Subject: [PATCH] Fix write start time to execution info (#6590) ## What changed? Populate StartTime in mutable state execution info ## Why? We cannot delete from there yet: downgrade breaks. ## How did you test it? Start with change, and downgrade temporal works as it should. ## Potential risks ## Documentation ## Is hotfix candidate? --- service/history/workflow/mutable_state_impl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/history/workflow/mutable_state_impl.go b/service/history/workflow/mutable_state_impl.go index d6db698350a..9401abc77d9 100644 --- a/service/history/workflow/mutable_state_impl.go +++ b/service/history/workflow/mutable_state_impl.go @@ -310,6 +310,7 @@ func NewMutableState( LastCompletedWorkflowTaskStartedEventId: common.EmptyEventID, + StartTime: timestamppb.New(startTime), VersionHistories: versionhistory.NewVersionHistories(&historyspb.VersionHistory{}), ExecutionStats: &persistencespb.ExecutionStats{HistorySize: 0}, SubStateMachinesByType: make(map[string]*persistencespb.StateMachineMap),