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

Add filter to not reapply event with the same version #3114

Merged
merged 3 commits into from
Mar 14, 2020
Merged

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Mar 13, 2020

What changed?
During NDC event reapplication, add a filter to not apply event with the same version as the current workflow last write version.

Why?
If the reapply event with the same version, it means the event is from the same cluster and no failover happened during this time. It means the event is already applied in the current cluster and there is no need to reapply this event.

How did you test it?
Reapply events with version A to the current workflow with version A. The events should not show in history.

Potential risks
In the worst case, the event will not reapply to the current branch.

@yux0 yux0 requested review from venkat1109, yycptt, mark-antony1 and a team March 13, 2020 06:42
@wxing1292
Copy link
Contributor

LGTM

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 67.007% when pulling e95298a on reapply-loop into 36a48c3 on master.

@yux0 yux0 merged commit 3973b05 into master Mar 14, 2020
@yux0 yux0 deleted the reapply-loop branch March 14, 2020 03:23
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.

4 participants