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

Allow any visibilityStore + secondaryVisibilityStore combination #5772

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndtretyak
Copy link
Contributor

What changed?

Any pair of visibilityStore and secondaryVisibilityStore is now allowed.

Why?

This change allows migration between Elasticsearch and SQL advanced visibility in both directions.

How did you test it?

Checked in staging env.
defaultManagerSelector is not aware of the underlying datastore of its visibilityManager and secondaryVisibilityManager.

Potential risks

Different visibility backends may have different restrictions on the number of SearchAttributes and allowed queries. Therefore, additional validation may be required in CreateSearchAttribute and ListWorkflowExecutions.

Documentation

Current version of How to migrate Visibility database does not mention any restrictions on the primary and secondary visibility stores.
https://docs.temporal.io/self-hosted-guide/visibility#migrating-visibility-database

Is hotfix candidate?

No

@ndtretyak ndtretyak requested a review from a team as a code owner April 22, 2024 10:47
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.

This is more complicated than this. Due to how custom search attributes feature is implemented differently between ES and SQL databases, it's not that simple.
Dual visibility is documented here: https://docs.temporal.io/visibility#dual-visibility

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.

None yet

2 participants