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

bugfix: only cache successfult record #22019

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

datavisorhenryzhao
Copy link

@datavisorhenryzhao datavisorhenryzhao commented Apr 17, 2024

By default, yb will cache 60s (both good and bad record).
But DNS resolve use udp by default(boost:asio will using glibc getaddrinfo), sometimes the DNS rsp packet may lost, in this case yb will cache 'Host not found (authoritative)'.

For example, the DNS rsp packet is drop by network stack
image

image

Yb DNS resolve timeout, but will cache 60s error record(During this time period, the pod is ok). But yb will believe 'Host not found', which will cause the instance not available and some latency
image

@CLAassistant
Copy link

CLAassistant commented Apr 17, 2024

CLA assistant check
All committers have signed the CLA.

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.

2 participants