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

release-20.1: server,gossip/resolver,cli: gate the SRV lookups under a new flag #49129

Merged
merged 1 commit into from May 16, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented May 15, 2020

Backport 1/1 commits from #49077.

/cc @cockroachdb/release


In v20.1 the bootstrap resolver code was changed to prefer SRV
records, if present in DNS, to regular A/AAAA records.

This change turned out to be a bit too immature as multiple defects
were found in succession:

- the code was improperly using records with port 0.
- it would crash if DNS was not available.
- it does not follow the regular SRV naming rules, where
  a service should be named as `_svcname._tcp.xxxx`.
- it is not able to re-perform the SRV lookup after the
  node has started up, if it takes a while for the rest
  of the cluster to catch up.

Some of these issues have since been fixed, but others remain open.
In order to not let users experience trouble with this feature
until it matures a bit, this patch introduces a new CLI flag
`--experimental-dns-srv` which defaults to false.

Also this patch adds the missing test for the join resolution.

Release note (backward incompatible change): CockroachDB v20.1
introduced a new rule for the `--join` flag causing it to prefer SRV
records, if present in DNS, to look up the peer nodes to join. This
feature is experimental. However, it is also found to cause disruption
in in certain deployments. To reduce this disruption and UX surprise,
the feature is now gated behind a new command-line flag
`--experimental-dns-srv` which must now be explicitly passed to
`cockroach start` to enabled it.
@knz knz requested a review from bdarnell May 15, 2020 18:34
@knz knz requested a review from a team as a code owner May 15, 2020 18:34
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz requested a review from chrisseto May 15, 2020 18:58
Copy link
Contributor

@chrisseto chrisseto left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 7 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @bdarnell and @chrisseto)

@knz knz merged commit 196a249 into cockroachdb:release-20.1 May 16, 2020
@knz knz deleted the backport20.1-49077 branch May 16, 2020 16:30
@knz knz added this to In progress in DB Server & Security via automation Sep 9, 2020
@knz knz moved this from In progress to Done 20.2 in DB Server & Security Sep 9, 2020
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

4 participants