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

Warning log on new event during set workflow #3508

Merged
merged 3 commits into from
Oct 18, 2022

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Oct 18, 2022

What changed?
Warning log on new event during set workflow

Why?
Warning log on new event during set workflow

How did you test it?

Potential risks

Is hotfix candidate?

@yux0 yux0 requested a review from a team as a code owner October 18, 2022 18:01
@@ -680,7 +680,7 @@ func (c *ContextImpl) SetWorkflowExecution(ctx context.Context, now time.Time) (
return err
}
if len(resetWorkflowEventsSeq) != 0 {
return serviceerror.NewInternal("SetWorkflowExecution encountered new events")
c.logger.Warn("SetWorkflowExecution encountered new events")
Copy link
Member

Choose a reason for hiding this comment

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

nit: also emit a metrics?

and we should revert the change before next release (1.19)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a metrics

@yux0 yux0 merged commit 8a7538a into temporalio:master Oct 18, 2022
@yux0 yux0 deleted the set-new-event branch October 18, 2022 21:32
dnr pushed a commit that referenced this pull request Oct 18, 2022
* Warning log on new event during set workflow

* Add metrics for the error
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