Skip to content

Commit

Permalink
Missing Tasklist name on DecisionTaskScheduled history event (#499)
Browse files Browse the repository at this point in the history
When decision goes into retry loop due to DecisionTimeout or
DecisionFailed, and then eventually completes we write incorrect
tasklist name on DecisionTaskScheduledEvent for the transient decisions.
Also DecisionAttempt got incorrected removed due to bad merge, so
putting that back in.
  • Loading branch information
samarabbas authored Jan 10, 2018
1 parent 7a51af2 commit 7ca011c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions service/frontend/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,7 @@ func (wh *WorkflowHandler) createPollForDecisionTaskResponse(ctx context.Context
StartedEventId: matchingResp.StartedEventId,
Query: matchingResp.Query,
BacklogCountHint: matchingResp.BacklogCountHint,
Attempt: matchingResp.Attempt,
History: history,
NextPageToken: continuation,
}
Expand Down
2 changes: 1 addition & 1 deletion service/history/mutableStateBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ func (e *mutableStateBuilder) AddDecisionTaskCompletedEvent(scheduleEventID, sta

if di.Attempt > 0 {
// Create corresponding DecisionTaskSchedule and DecisionTaskStarted events for decisions we have been retrying
scheduledEvent := e.hBuilder.AddDecisionTaskScheduledEvent(di.Tasklist, di.DecisionTimeout, di.Attempt)
scheduledEvent := e.hBuilder.AddDecisionTaskScheduledEvent(e.executionInfo.TaskList, di.DecisionTimeout, di.Attempt)
startedEvent := e.hBuilder.AddDecisionTaskStartedEvent(scheduledEvent.GetEventId(), di.RequestID,
request.GetIdentity())
startedEventID = startedEvent.GetEventId()
Expand Down

0 comments on commit 7ca011c

Please sign in to comment.