Skip to content

Commit

Permalink
Bugfix: worker should not retry on non err (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Jun 28, 2018
1 parent ad7b522 commit ce946a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/history/historyReplicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ func (r *historyReplicator) ApplyEvents(request *h.ReplicateEventsRequest) (retE
_, err := context.loadWorkflowExecution()
if err == nil {
// Workflow execution already exist, looks like a duplicate start event, it is safe to ignore it
logger.Info("Dropping stale replication task for start event.")
logger.Infof("Dropping stale replication task for start event, DomainID: %v, WorkflowID: %v, RunID: %v.",
domainID, execution.GetWorkflowId(), execution.GetRunId())
r.metricsClient.IncCounter(metrics.ReplicateHistoryEventsScope, metrics.StaleReplicationEventsCounter)
return nil
}
Expand Down
1 change: 1 addition & 0 deletions service/worker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ RetryLoop:
time.Sleep(retryErrorWaitMillis * time.Millisecond)
continue RetryLoop
}
break RetryLoop
}
return err
}
Expand Down

0 comments on commit ce946a7

Please sign in to comment.