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

Suport dual visibility in visibility persistence checks #3968

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

alexshtin
Copy link
Member

What changed?
Suport dual visibility in visibility persistence checks.

Why?
If dual visibility is enables, store name is not just a string but concatenated string. This PR changes it to the slice of stores and does a proper check.

How did you test it?
Existing tests.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner February 16, 2023 22:57
Copy link
Contributor

@rodrigozhou rodrigozhou left a comment

Choose a reason for hiding this comment

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

LGTM, but ci-build failed. Please fix before merging.

@@ -1038,7 +1038,7 @@ func (adh *AdminHandler) DescribeCluster(
ClusterName: metadata.ClusterName,
HistoryShardCount: metadata.HistoryShardCount,
PersistenceStore: adh.persistenceExecutionManager.GetName(),
VisibilityStore: adh.visibilityMgr.GetName(),
VisibilityStore: strings.Join(adh.visibilityMgr.GetStoreNames(), ","),
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this is used in a couple of places. Should we have a function to retrieve the store names as string? Worried about fragmentation, and eventually someone calling Join with another separator by accident.

@alexshtin alexshtin merged commit 06188f3 into temporalio:master Feb 17, 2023
@alexshtin alexshtin deleted the fix/split-get-name branch February 17, 2023 00:00
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