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

Handle namespace not found in history scan #4287

Merged
merged 1 commit into from
May 5, 2023

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented May 5, 2023

What changed?
Handle namespace not found in history scan

Why?
There is race condition:

  1. Orphan history in history table.
  2. The namespace is deleted.

When the history scanner hit a namespace is deleted, currently it just failed. The correct behavior is to ignore the namespace not found error and delete orphan history as the namespace is deleted.

How did you test it?

Potential risks

Is hotfix candidate?

@yux0 yux0 requested a review from a team as a code owner May 5, 2023 19:21
@yux0 yux0 merged commit 9fd0e26 into temporalio:master May 5, 2023
@yux0 yux0 deleted the scanner-ns-404 branch May 5, 2023 21:07
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