GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Refactor DnsNameResolver to be able to use different strategies when … by normanmaurer · Pull Request #14374 · netty/netty Conversation
Member
…it comes to creating Channels for queries. Motivation: At the moment we reuse the same Channel (and so underyling socket) for all queries. It has show that this can cause problems in some deployments, we should allow to use different strategies. Modifications:
Result: More flexible configuration and possible fix for #14364
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
normanmaurer
marked this pull request as draft
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
commented
Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
commented
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a fix #14147 that made default caches sharable between resolvers. Also if users configure their own caches, they are also sharable. Why do we clear them here? If only 1 out of N resolvers gets closed, it will affect a shared cache across remaining N-1 resolvers.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We always did so unjust preserved it
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let me do another PR for this
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
force-pushed
the
dns_ref
branch
from
fe8f6ea to
67208e2
Compare
normanmaurer
commented
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @idelpivnitskiy @bryce-anderson @chrisvest I am open for better ideas related to naming...
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you ever anticipate reusing this strategy for TCP (especially if we ever make it possible to create a TCP-only resolver), then name lgtm, just adjust the javadoc to avoid mentioning If you expect to have 2 different enums for UDP/TCP in the future, then consider renaming this one to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wdyt about For the enum values, how about
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PTAL again @bryce-anderson I think I like this name more.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you ever anticipate reusing this strategy for TCP (especially if we ever make it possible to create a TCP-only resolver), then name lgtm, just adjust the javadoc to avoid mentioning If you expect to have 2 different enums for UDP/TCP in the future, then consider renaming this one to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
commented
Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
force-pushed
the
dns_ref
branch
from
80930e7 to
fead947
Compare
idelpivnitskiy
approved these changes
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. side note: why does
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
normanmaurer
force-pushed
the
dns_ref
branch
from
1834c3b to
4000c02
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …it comes to creating Channels for queries. Motivation: At the moment we reuse the same Channel (and so underyling socket) for all queries. It has show that this can cause problems in some deployments, we should allow to use different strategies. Modifications: - Refactor code to make it possible to use different strategies when it comes to creating / reusing channels for resolve operations Result: More flexible configuration and possible fix for #14364 Co-authored-by: Idel Pivnitskiy <[email protected]>
normanmaurer
force-pushed
the
dns_ref
branch
from
fc9072c to
ebbd956
Compare
idelpivnitskiy
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
bryce-anderson
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left some simplification suggestions but it looks correct to me.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my minds eye we can (should?) run all tests with each strategy. Instead of making nearly all tests parameterized, could we instead make the test suite abstract and pass in a strategy as part of the constructor, then make two a new concrete class for each strategy that passes in the correct enum value? That would require the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not possible with Junit5 :( junit-team/junit-framework#878
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
idelpivnitskiy
approved these changes
normanmaurer
added a commit
that referenced
this pull request
#14374) …it comes to creating Channels for queries. Motivation: At the moment we reuse the same Channel (and so underyling socket) for all queries. It has show that this can cause problems in some deployments, we should allow to use different strategies. Modifications: - Refactor code to make it possible to use different strategies when it comes to creating / reusing channels for resolve operations Result: More flexible configuration and possible fix for #14364 --------- Co-authored-by: Idel Pivnitskiy <[email protected]>
normanmaurer
added a commit
that referenced
this pull request
#14382) …… (#14374) …it comes to creating Channels for queries. Motivation: At the moment we reuse the same Channel (and so underyling socket) for all queries. It has show that this can cause problems in some deployments, we should allow to use different strategies. Modifications: - Refactor code to make it possible to use different strategies when it comes to creating / reusing channels for resolve operations Result: More flexible configuration and possible fix for #14364 Co-authored-by: Idel Pivnitskiy <[email protected]>
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |