-
Notifications
You must be signed in to change notification settings - Fork 899
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
Add Nacos Support #5409
Open
KonaEspresso94
wants to merge
30
commits into
line:main
Choose a base branch
from
KonaEspresso94:nacos-support
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
Add Nacos Support #5409
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
785b353
Add NacosClient and NacosEndpointGroup
KonaEspresso94 a76d4fc
Add NacosUpdatingListener
KonaEspresso94 4caabaf
Test codes
KonaEspresso94 3af6f6c
Modified NacosClientUtil::queryParams to return QueryParamsBuilder in…
KonaEspresso94 d4332aa
Merge branch 'main' into nacos-support
KonaEspresso94 9530372
Make properties of the classes that define data rendering private and…
KonaEspresso94 ffc64d7
Make LoginClient an implementation of SimpleDecoratingHttpClient.
KonaEspresso94 68e1137
LoginClient : Cache and reuse QueryStrings that were unnecessarily re…
KonaEspresso94 0f71869
QueryInstancesClient : Cache and reuse request path that were unneces…
KonaEspresso94 46abd6d
Reduce the parameters of the RegisterInstanceClient APIS, by moving a…
KonaEspresso94 adb40fc
Revert "Modified NacosClientUtil::queryParams to return QueryParamsBu…
KonaEspresso94 0120fd7
To reuse access-token, instead of the Caffeine cache, use own impleme…
KonaEspresso94 12b2214
Merge branch 'main' into nacos-support
KonaEspresso94 23d8913
Merge branch 'main' into nacos-support
KonaEspresso94 0d0082d
Merge branch 'main' into nacos-support
KonaEspresso94 a0d7895
Revert "To reuse access-token, instead of the Caffeine cache, use own…
KonaEspresso94 a427074
Lint code. (omitted 'final', meaningless lambda expression, unnecessa…
KonaEspresso94 625535a
Lint code. (Remove meaningless property and use parameter directly)
KonaEspresso94 ed1d5ba
Lint code. (Optimize imports, according to :nacos:checkStyleMain)
KonaEspresso94 f94cf66
Copyright header: Line Corporation -> LY Corporation
KonaEspresso94 c10ebc8
TODO comment about AsyncLoadingCache
KonaEspresso94 5fe5ba2
Hide NacosEndpointGroup as package private.
KonaEspresso94 03150f2
Apply AbstractDynamicEndpointGroupBuilder's changes(SELF type parameter)
KonaEspresso94 88f6235
Use SELF type parameter for NacosConfigSetters.
KonaEspresso94 0a715cd
Lint code: Run auto-indent.
KonaEspresso94 7476ede
NacosEndpointGroup : Batch the tasks related to scheduledFuture into …
KonaEspresso94 4e29132
lint code.
KonaEspresso94 110ee22
Remove override functions of NacosEndpointGroupBuilder (Use default i…
KonaEspresso94 0b988ba
Methods: namespaceId, groupName, clusterName, and app also can be Nac…
KonaEspresso94 8933fcd
Merge branch 'main' into nacos-support
KonaEspresso94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
dependencies { | ||
implementation(libs.caffeine) | ||
testImplementation(libs.testcontainers.junit.jupiter) | ||
} |
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
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.
This may result in sending multiple login requests that are not what we really want.
If
login()
is being performed, other requests can piggyback on the returned future.By the way, I think an
AsyncLoader
loading a value when it is expired or periodically would be useful in many places.Created #5506
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.
Maybe we shouldn't let @KonaEspresso94 wait for too long for the PR to be merged but just use Caffeine internally and later replace the Caffeine usage with
AsyncLoader
?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 didn't know it would take this long. 😅 Let's leave that part as is. I will continue to review this PR tomorrow.
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.
Thank you for your consideration. Following your comments, I have reverted the commit to use Caffeine instead of my implementation.