-
Notifications
You must be signed in to change notification settings - Fork 912
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 replicate workflow state with exist workflow data #4617
Conversation
lastVersionHistory, err := versionhistory.GetLastVersionHistoryItem(currentVersionHistory) | ||
if err != nil { | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if the local last version history and remote last version history are identical
); resendErr != nil { | ||
return err | ||
} | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.Execute()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz address the comments about API idempotency then land the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a different code path than executable_workflow_state_task_test.go for replication task execution? Is there a plan for consolidating them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file will be deprecated once we move to streaming replication.
<!-- Describe what has changed in this PR --> **What changed?** Handle replicate workflow state with exist workflow data. <!-- Tell your future self why have you made these changes --> **Why?** During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Update current unit test. A manual test will be perform: 1. Connect two cluster. 2. Start a long running workflow. 3. Disconnect two cluster. 4. Terminate the old workflow and start a new long running workflow. 5. Force replication open workflow. 6. Force replication closed workflow. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** Yes.
<!-- Describe what has changed in this PR --> **What changed?** Handle replicate workflow state with exist workflow data. <!-- Tell your future self why have you made these changes --> **Why?** During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Update current unit test. A manual test will be perform: 1. Connect two cluster. 2. Start a long running workflow. 3. Disconnect two cluster. 4. Terminate the old workflow and start a new long running workflow. 5. Force replication open workflow. 6. Force replication closed workflow. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** Yes.
<!-- Describe what has changed in this PR --> **What changed?** Handle replicate workflow state with exist workflow data. <!-- Tell your future self why have you made these changes --> **Why?** During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Update current unit test. A manual test will be perform: 1. Connect two cluster. 2. Start a long running workflow. 3. Disconnect two cluster. 4. Terminate the old workflow and start a new long running workflow. 5. Force replication open workflow. 6. Force replication closed workflow. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** Yes.
<!-- Describe what has changed in this PR --> **What changed?** Handle replicate workflow state with exist workflow data. <!-- Tell your future self why have you made these changes --> **Why?** During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Update current unit test. A manual test will be perform: 1. Connect two cluster. 2. Start a long running workflow. 3. Disconnect two cluster. 4. Terminate the old workflow and start a new long running workflow. 5. Force replication open workflow. 6. Force replication closed workflow. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** Yes.
What changed?
Handle replicate workflow state with exist workflow data.
Why?
During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state.
How did you test it?
Update current unit test.
A manual test will be perform:
Potential risks
Is hotfix candidate?
Yes.