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

Add RefreshPerNSWorkerManager and RemoveOverride for tests #3837

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

dnr
Copy link
Member

@dnr dnr commented Jan 25, 2023

What changed?
Add RefreshPerNSWorkerManager to worker service, and RemoveOverride to integration test dynamic config.

Why?
These can be used to adjust dynamic config that applies to per-ns-worker or its components, for a single integration test. These will be used in upcoming PRs.

How did you test it?
Used in upcoming PRs

Potential risks
Only used in tests

Is hotfix candidate?

wm.lock.Lock()
defer wm.lock.Unlock()
for _, worker := range wm.workers {
go worker.refreshWithExistingNamespace()
Copy link
Member

Choose a reason for hiding this comment

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

is it possible that refershAll get called multiple times before refreshWithExistingNamespace() finished and end up having multiple goroutines running refreshWithExistingNamespace()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's possible before this change too. The refresh* functions are written so that it's ok, they use a lock and some state to synchronize. The worst that should happen is extra calls to get dynamicconfig values

@dnr dnr merged commit b494736 into temporalio:master Jan 26, 2023
@dnr dnr deleted the pernsworker5 branch January 26, 2023 06:26
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