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 where we return nil when there's an error in the archival queue #3723

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
This PR fixes a bug (on line 253) where we returned nil when there was an error generating the deletion timer task.

Why?
This is a bug.

How did you test it?
I added a test that verifies that we return that error when it occurs. I also verified that the test fails before this change. I also added 100% test coverage to this file to catch any other potential bugs.

Potential risks
None

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner December 17, 2022 01:05
err = taskGenerator.GenerateDeleteHistoryEventTask(*closeTime, true)
if err != nil {
return nil
return err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the bug we're fixing. The rest of this is just adding additional test coverage.

@MichaelSnowden MichaelSnowden merged commit b572419 into master Dec 20, 2022
@MichaelSnowden MichaelSnowden deleted the snowden/fix-return-nil-err branch December 20, 2022 20:15
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