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 some bugs in the archival queue task executor #3813

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
After manual testing, I spotted a few issues in this code.

  1. We fail the task if there are zero enabled targets for archival, which might happen if a task is produced and then archival is disabled before the task is executed. In this case, we should continue processing the task, skipping archival but generating the deletion task.
  2. We are parsing archival URIs unconditionally here, but we should only parse them for enabled targets. We cannot assume that those URIs will be valid when the corresponding target is disabled.

Why?
Bug fixes

How did you test it?
I modified the unit tests. I also reverted the code changes other than the test code and verified that the tests "URIs are not read for empty targets" and "both history and visibility archival disabled" failed.

Potential risks
None, just bug fixes.

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden marked this pull request as ready for review January 19, 2023 17:43
@MichaelSnowden MichaelSnowden requested a review from a team as a code owner January 19, 2023 17:43
@MichaelSnowden MichaelSnowden merged commit eb4b574 into master Jan 19, 2023
@MichaelSnowden MichaelSnowden deleted the snowden/fix-aq-bugs branch January 19, 2023 21:25
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