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

Fix bug not setting CanSkipVisibilityArchival #3721

Merged
merged 1 commit into from
Dec 17, 2022

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
We now set the CanSkipVisibilityArchival flag when creating archival queue tasks.

Why?
This was a bug. We need to set this flag when using durable archival so that we don't archive visibility twice.

How did you test it?
I added a statement in the unit test and verified that the test failed before this change.

Potential risks
Not used in prod yet.

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner December 16, 2022 19:26
@MichaelSnowden MichaelSnowden force-pushed the snowden/fix-set-skip-vis-archival-flag branch from 454b1d4 to 2dc133c Compare December 16, 2022 22:36
@@ -35,6 +35,7 @@ import (
"go.temporal.io/api/serviceerror"

enumsspb "go.temporal.io/server/api/enums/v1"

Copy link
Member

Choose a reason for hiding this comment

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

nit: this empty line can be remove, they are all server imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@MichaelSnowden MichaelSnowden force-pushed the snowden/fix-set-skip-vis-archival-flag branch from 2dc133c to df68bd2 Compare December 17, 2022 01:07
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) December 17, 2022 01:07
@MichaelSnowden MichaelSnowden merged commit edd3f0a into master Dec 17, 2022
@MichaelSnowden MichaelSnowden deleted the snowden/fix-set-skip-vis-archival-flag branch December 17, 2022 01:45
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