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 create custom search attribute with SQL DB #3951

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

rodrigozhou
Copy link
Contributor

What changed?
Iterate over the pre-allocated custom search attributes instead of the map from cluster metadata.

Why?
Cluster metadata might have custom search attributes created by user previously in standard visibility. With current logic, it's possible that an alias will be mapped to those custom search attributes created by the user instead of the pre-allocated ones created by Server.

How did you test it?
Start server with std visibility, create search attribute, restart server with adv visibility, and create search attribute with same type. Checked it does not use the one I created previously.

Potential risks
No risks.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner February 14, 2023 00:44
@rodrigozhou rodrigozhou merged commit 654bc3f into temporalio:master Feb 14, 2023
@rodrigozhou rodrigozhou deleted the fix-create-sql-sa branch February 14, 2023 02:34
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