Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle service deployment causing buffer events not flushed #940

Merged
merged 4 commits into from
Jul 7, 2018

Conversation

wxing1292
Copy link
Contributor

No description provided.

@wxing1292 wxing1292 requested a review from samarabbas July 6, 2018 23:44
@@ -182,6 +182,11 @@ func (r *historyReplicator) ApplyEvents(request *h.ReplicateEventsRequest) (retE
return r.ApplyOtherEventsMissingMutableState(domainID, request.WorkflowExecution.GetWorkflowId(), firstEvent.GetVersion(), logger)
}

err = r.FlushBuffer(context, msBuilder, logger)
if err != nil {
logger.Errorf("Fail to pre-flush buffer, Err: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you emit a TagErr rather than using doing an Errorf.

@wxing1292 wxing1292 merged commit 3c9a409 into master Jul 7, 2018
@wxing1292 wxing1292 deleted the fix-stuck-buffer branch July 7, 2018 00:43
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.

2 participants