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 update initial failover version and version increment #2425

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jan 27, 2022

What changed?
Allow update initial failover version and version increment if not enable global namespace

Why?
Give it a chance to update the failover version and version increment.

How did you test it?
Tested locally

Potential risks

Is hotfix candidate?

@yux0 yux0 requested review from a team, yiminc and meiliang86 January 27, 2022 06:54
temporal/fx.go Outdated Show resolved Hide resolved
@@ -206,9 +206,16 @@ func (m *clusterMetadataManagerImpl) convertInternalGetClusterMetadataResponse(

// immutableFieldsChanged returns true if any of immutable fields changed.
func immutableFieldsChanged(old persistencespb.ClusterMetadata, cur persistencespb.ClusterMetadata) bool {
return (old.ClusterName != "" && old.ClusterName != cur.ClusterName) ||
if (old.ClusterName != "" && old.ClusterName != cur.ClusterName) ||
Copy link
Member

Choose a reason for hiding this comment

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

what about clusterName? Should you allow clusterName change if globNamespace is not enabled yet on current cluster.

Copy link
Member

Choose a reason for hiding this comment

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

Cluster name is also stored in namespace table so probably not a good idea to change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This is the tricky one. We need some offline discussion.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -206,9 +206,16 @@ func (m *clusterMetadataManagerImpl) convertInternalGetClusterMetadataResponse(

// immutableFieldsChanged returns true if any of immutable fields changed.
func immutableFieldsChanged(old persistencespb.ClusterMetadata, cur persistencespb.ClusterMetadata) bool {
return (old.ClusterName != "" && old.ClusterName != cur.ClusterName) ||
if (old.ClusterName != "" && old.ClusterName != cur.ClusterName) ||
Copy link
Member

Choose a reason for hiding this comment

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

👍

@yux0 yux0 enabled auto-merge (squash) January 27, 2022 21:58
@yux0 yux0 merged commit 7388783 into temporalio:master Jan 28, 2022
@yux0 yux0 deleted the allow-empty-version branch January 28, 2022 00:44
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