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

Conditionally register archival category #3867

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
We now only register the archival category when archival is enabled.

Why?
Because if this category exists when the archival queue processor isn't running, our code will panic when NotifyNewTasks is run.

How did you test it?
I added an assertion in a unit test.

Potential risks
This may interfere with tiered storage.

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner January 30, 2023 18:46
service/history/queueFactoryBase.go Show resolved Hide resolved
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) January 30, 2023 19:31
@MichaelSnowden MichaelSnowden merged commit 3501f67 into master Jan 30, 2023
@MichaelSnowden MichaelSnowden deleted the snowden/archival-category-global branch January 30, 2023 20:22
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