-
Notifications
You must be signed in to change notification settings - Fork 921
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
Respect TTL of a DNS record for proxy config #5960
Open
chickenchickenlove
wants to merge
25
commits into
line:main
Choose a base branch
from
chickenchickenlove:241027-proxy-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
417bf3b
Client respects DNS TTL.
chickenchickenlove 3681f0f
Merge branch 'main' into 241027-proxy-config
chickenchickenlove f57259c
Revert "Client respects DNS TTL."
chickenchickenlove f40cbe4
Use RefreshingAddressResolver to refresh proxy address.
chickenchickenlove a26e3f5
Merge branch '241027-proxy-config' of github.com-ojt90902:chickenchic…
chickenchickenlove 649469e
Handle null of proxyconfig.
chickenchickenlove ab43277
Add a copmment.
chickenchickenlove a6e725c
Add withNewProxyAddress() to create after refresh DNS.
chickenchickenlove e0819c4
Resolve Proxy DNS to respect DNS TTL asynchronously.
chickenchickenlove 0b3cc2b
Remove useless method from ProxyConfig.
chickenchickenlove 54ec6f3
Fixes lint error.
chickenchickenlove a67ee3f
Revert previous commit.
chickenchickenlove 241b4ff
Remove useless log codes.
chickenchickenlove fce4fd2
Remove unused import.
chickenchickenlove 7d85a69
Fixes lint error.
chickenchickenlove 67f4997
Add integration test for DNS refreshing.
chickenchickenlove e775351
Remove deprecated test case.
chickenchickenlove 18b24ea
Apply reviews.
chickenchickenlove 979e6fd
Add a private method to refresh proxy DNS.
chickenchickenlove 3dbc847
Skip refreshing ProxyConfig DNS when it is configured with a direct IP.
chickenchickenlove fcfed45
clean up
ikhoon 09efa86
add more tests
ikhoon 25ff1af
Fixes broken test codes and add new test cases.
chickenchickenlove 43212b6
Remove useless logging.
chickenchickenlove 195033f
Add null condition.
chickenchickenlove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
@ikhoon nim
I removed this code because of test fail.
If IP is wildcard address,
addressResolver
start to resolve wildcard address like0.0.0.0
,::
.In that case, The
addressResolver
try to resolve0.0.0.0
and throwsUnknownHostException
.The error message is
Caused by: java.net.UnknownHostException: Failed to resolve '0.0.0.0.akadns.net.' [A(1)] after 2 queries
.Please refer to
HAProxyClientIntegrationTest#testConnectionFailure()
. It's failed test reason described above.I think that we don't need to resolve either
0.0.0.0
or::
.Also, I think
0.0.0.0
and::
are fixed IP address.What do you think?
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.
I agreed. Thanks for fixing that.