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

Refactor cluster metadata for search attributes #1422

Merged

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Mar 31, 2021

What changed?
Refactor cluster metadata for search attributes changes (upcoming).

Why?
This change is required to implement new search attributes behaviour.
Plus some clean up of server startup code.

How did you test it?
Existing tests + local run.

Potential risks
No risks.

Is hotfix candidate?
N/A

@alexshtin alexshtin requested a review from a team March 31, 2021 23:38
@@ -108,8 +108,8 @@ func NewMetadata(
}
versionToClusterName[info.InitialFailoverVersion] = clusterName

if info.Enabled && (len(info.RPCName) == 0 || len(info.RPCAddress) == 0) {
panic(fmt.Sprintf("Cluster %v: rpc name / address is empty", clusterName))
if info.Enabled && info.RPCAddress == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

also check RPCName?

Copy link
Contributor

Choose a reason for hiding this comment

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

or is RPCName not used?

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, there was a TODO for it. I resolved it.

@alexshtin alexshtin merged commit a04944a into temporalio:master Apr 1, 2021
@alexshtin alexshtin deleted the feature/refactor-cluster-metadata branch April 1, 2021 00: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.

None yet

2 participants