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 function to get custom search attributes mapper in namespace registry #4317

Merged
merged 1 commit into from
May 25, 2023

Conversation

rodrigozhou
Copy link
Contributor

@rodrigozhou rodrigozhou commented May 11, 2023

What changed?
Added function to get custom search attributes mapper in namespace registry capable of bypassing the cache if the dynamic config system.forceSearchAttributesCacheRefreshOnRead is set to true.

Why?
#4017
The purpose of the dynamic config is to be able to immediately use the search attributes after being created. However, due to how they work differently when using SQL databases, this flag was a no-op in this case, only working when using Elasticsearch as visibility store.

How did you test it?
Started Temporal Server with MySQL, created search attributes, and immediately after started an workflow using the newly created search attributes. Before, it was always failing due to the namespace registry refresh interval. Now, if I set the dynamic config to true, it works.

Potential risks
No.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner May 11, 2023 22: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.

3 participants