Skip to content

Fix rare hanging in DNSResolver#12296

Merged
alexey-milovidov merged 1 commit intomasterfrom
fix_rare_hanging_in_dnsresolver
Jul 8, 2020
Merged

Fix rare hanging in DNSResolver#12296
alexey-milovidov merged 1 commit intomasterfrom
fix_rare_hanging_in_dnsresolver

Conversation

@tavplubix
Copy link
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Some threads might randomly hang for a few seconds during DNS cache updating. It's fixed.

Detailed description / Documentation draft:
OwnSplitChannel::logSplit(...) calls DNSResolver::getHostName() and may wait on DNSResolver::Impl::drop_mutex, while DNSResolver::updateCache() calls gethostname(...) holding the mutex.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-docs-needed pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants