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

Inclusive naming: master->primary in topo package #9182

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

deepthi
Copy link
Member

@deepthi deepthi commented Nov 10, 2021

Description

  • Rename functions in topo package
  • Deprecate some stats - NewMasterParticipation
  • Add new stats as replacements - NewLeaderParticipation

Note: I verified that vitess-operator does not use any of the functions that are being renamed.

Related Issue(s)

Fixes #8620

Checklist

  • Should this PR be backported? NO
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: deepthi <deepthi@planetscale.com>
@@ -68,6 +68,9 @@ func startConsul(t *testing.T, authToken string) (*exec.Cmd, string, string) {
},
}

// TODO(deepthi): this is the legacy ACL format. We run v1.4.0 by default in which this has been deprecated.
// We should start using the new format
// https://learn.hashicorp.com/tutorials/consul/access-control-replication-multiple-datacenters?in=consul/security-operations
if authToken != "" {
config["datacenter"] = "vitess"
config["acl_datacenter"] = "vitess"
Copy link
Member Author

Choose a reason for hiding this comment

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

@gedgar @sonne5 is this something one of you can fix?

Copy link
Contributor

@mattlord mattlord left a comment

Choose a reason for hiding this comment

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

❤️

@deepthi deepthi merged commit 635fed1 into vitessio:main Nov 11, 2021
@deepthi deepthi deleted the ds-topo-naming branch November 11, 2021 22:44
@systay systay mentioned this pull request Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: replace master->primary in topo package
2 participants