-
Notifications
You must be signed in to change notification settings - Fork 841
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
Add version check for delete workflow transfer task #3159
Conversation
version := currentVersion | ||
if deleteAfterClose { | ||
// Ignore version check when delete request is from user API | ||
version = common.EmptyVersion |
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.
I think this will cause the version check for close execution task to always fail and task being skipped when deleting an open workflow in a global namespace.
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.
Good catch. I think it don't need special handling for deleteAfterClose case.
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.
The current implementation do check version when delete open workflow(deleteAfterClose = true). Is this expected? @alexshtin
62dd1cf
to
58a2d88
Compare
* Add version check to delete workflow transfer task
What changed?
Why?
We want to use the API in Archival to delete workflow data and it requires version.
How did you test it?
Unit test
Potential risks
Is hotfix candidate?