-
Notifications
You must be signed in to change notification settings - Fork 882
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
Conversation
…able global namespace
@@ -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) || |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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?