8000 Fix replication error handling by yux0 · Pull Request #2624 · temporalio/temporal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix replication error handling #2624

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

Merged
merged 1 commit into from
Mar 22, 2022
Merged

Conversation

yux0
Copy link
Contributor
@yux0 yux0 commented Mar 20, 2022

What changed?
Fix replication error handling

Why?

  1. Drop replication task if the workflow is not found in source cluster.
  2. Return no error if workflow cannot be reset in reapply case.

How did you test it?
Local

Potential risks
Some no op tasks will be put into DLQ

Is hotfix candidate?
Yes

)
switch resendErr.(type) {
case *serviceerror.NotFound:
// TODO" cleanup history
Copy link
Member

Choose a reason for hiding this comment

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

should not worry about history cleanup, it should be handled by the delete history timer task already, or the history GC should handle it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Synced offline. This cannot handle by GC. We need to delete the workflow. I will separate it to a new PR

@yux0 yux0 force-pushed the replication-error branch from 5dc982a to 0af5475 Compare March 22, 2022 03:24
@yux0 yux0 marked this pull request as ready for review March 22, 2022 03:24
@yux0 yux0 requested a review from a team as a code owner March 22, 2022 03:24
@yux0 yux0 merged commit 856089a into temporalio:master Mar 22, 2022
@yux0 yux0 deleted the replication-error branch March 22, 2022 04:32
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
0