GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enabling DNS retryOnTimeout with TCP in DnsNameResolver by graysonzeng · Pull Request #23590 · apache/pulsar

Conversation

@graysonzeng

@graysonzeng graysonzeng commented Nov 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes #23588

Motivation

Enable DNS retryOnTimeout with TCP in netty to fix udp timeout error, we can see similar errors and fixes in other applications

Related links:
netty/netty#13757
reactor/reactor-netty#2978
reactor/reactor-netty#3059
redisson/redisson#1625

Modifications

add socketChannelType for configure the resolver to fallback to TCP if a timeout is detected

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Nov 12, 2024
@graysonzeng graysonzeng changed the title Enabling DNS retryOnTimeout with TCP Enabling DNS retryOnTimeout with TCP in DnsNameResolver Nov 12, 2024
nodece
nodece reviewed Nov 12, 2024
View reviewed changes
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

nodece
nodece reviewed Nov 12, 2024
View reviewed changes
Comment thread pulsar-common/src/main/java/org/apache/pulsar/common/util/netty/EventLoopUtil.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

nodece
nodece reviewed Nov 12, 2024
View reviewed changes
Comment thread pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyService.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@graysonzeng
When DNS by UDP timeout then fallback to TCP
ccc0732
@graysonzeng
graysonzeng force-pushed the fix-dns-error branch from e0bd553 to ccc0732 Compare November 12, 2024 07:40
nodece
nodece approved these changes Nov 12, 2024
View reviewed changes

@nodece nodece left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodece
nodece requested a review from lhotari November 12, 2024 08:42
@nodece nodece assigned graysonzeng Nov 12, 2024
@nodece nodece added the ready-to-test label Nov 12, 2024
@Technoboy-
Technoboy- requested a review from merlimat November 13, 2024 02:14
@Technoboy- Technoboy- added this to the 4.1.0 milestone Nov 13, 2024
@nodece

nodece commented Nov 13, 2024

Copy link
Copy Markdown
Member

/pulsarbot rerun-failure-checks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari added release/3.3.3 release/3.0.8 release/4.0.1 labels Nov 13, 2024
lhotari
lhotari approved these changes Nov 13, 2024
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari
lhotari merged commit 5d924bf into apache:master Nov 13, 2024
lhotari pushed a commit that referenced this pull request Nov 14, 2024
@graysonzeng @lhotari
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (#23590)
5835af4
(cherry picked from commit 5d924bf)
@lhotari lhotari added the cherry-picked/branch-3.3 label Nov 14, 2024
lhotari pushed a commit that referenced this pull request Nov 14, 2024
@graysonzeng @lhotari
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (#23590)
43e6ec1
(cherry picked from commit 5d924bf)
@lhotari lhotari added the cherry-picked/branch-4.0 label Nov 14, 2024
lhotari pushed a commit that referenced this pull request Nov 14, 2024
@graysonzeng @lhotari
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (#23590)
3173b3f
(cherry picked from commit 5d924bf)
@lhotari lhotari added the cherry-picked/branch-3.0 label Nov 14, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 20, 2024
@graysonzeng @nikhil-ctds
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (apache#23590)
a124255
(cherry picked from commit 5d924bf)
(cherry picked from commit 3173b3f)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 21, 2024
@graysonzeng @srinath-ctds
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (apache#23590)
08e1b62
(cherry picked from commit 5d924bf)
(cherry picked from commit 3173b3f)
@lhotari lhotari mentioned this pull request Dec 19, 2024
Netty DNS Resolver cannot handle DNS Response with A, AAAA and NS records: SearchDomainUnknownHostException netty/netty#13660
Open
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
@graysonzeng hanmz
Enabling DNS retryOnTimeout with TCP in DnsNameResolver (apache#23590)
ddb2236
@lhotari lhotari mentioned this pull request Jun 4, 2026
[Bug] [functions-worker] WorkerUtils.createExclusiveProducerWithRetry leaks orphan exclusive producer when createAsync().get() times out #25936
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lhotari lhotari lhotari approved these changes
@nodece nodece nodece approved these changes
@merlimat merlimat Awaiting requested review from merlimat

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@graysonzeng graysonzeng

Labels

cherry-picked/branch-3.0 cherry-picked/branch-3.3 cherry-picked/branch-4.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.8 release/3.3.3 release/4.0.1

Projects

None yet

Milestone

4.1.0

Development

Successfully merging this pull request may close these issues.

[Bug] proxy DNS UDP timed out after 5000 milliseconds error in kubernetes

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@graysonzeng @nodece @lhotari @Technoboy-
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.