Skip to content

cache: Change default of -dns-ignore-startup-failures to true #705

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

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

aknuds1
Copy link
Collaborator

@aknuds1 aknuds1 commented Jun 4, 2025

What this PR does:

Change the default of the -dns-ignore-startup-failures flag to true. It's an experimental flag added by @tinitiuset for use within Grafana Mimir, and the Mimir team is agreeing that true should be the new default.

NB: I'm adding the PR to the existing CHANGELOG entry for the flag, since the previous change to the flag did the same.

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@aknuds1 aknuds1 added the change label Jun 4, 2025
@aknuds1 aknuds1 force-pushed the arve/dns-ignore-startup-failures branch from 80f6d62 to eef1103 Compare June 4, 2025 05:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the default value of the -dns-ignore-startup-failures flag to true in the Memcached client configuration. It also updates the corresponding changelog entry to document the new default.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cache/memcached_client.go Updated the default DNSIgnoreStartupFailures flag to true
CHANGELOG.md Modified the changelog entry to reflect the new flag default
Comments suppressed due to low confidence (1)

cache/memcached_client.go:144

  • Consider adding or updating tests to verify that the Memcached client correctly handles DNS resolution failures with the new default flag.
f.BoolVar(&c.DNSIgnoreStartupFailures, prefix+"dns-ignore-startup-failures", true, "Allow client creation even if initial DNS resolution fails.")

@aknuds1 aknuds1 merged commit f6c4578 into main Jun 4, 2025
9 checks passed
@aknuds1 aknuds1 deleted the arve/dns-ignore-startup-failures branch June 4, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants