-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[ISSUE #8622] Properties has transformed NacosClientProperties #9356
Conversation
…Properties - add NacosClientPropertiesLookup for log4j2 - add NacosClientPropertyAction for logback - add a new constructor method to adapt NacosClientProperties for NacosNamingMaintainService - add a new constructor method to adapt NacosClientProperties for NacosNamingService - add a new constructor method to adapt NacosClientProperties for NacosConfigService
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #9356 +/- ##
=============================================
- Coverage 44.07% 43.95% -0.12%
- Complexity 4871 4885 +14
=============================================
Files 914 917 +3
Lines 33155 33228 +73
Branches 3843 3847 +4
=============================================
- Hits 14613 14607 -6
- Misses 17119 17195 +76
- Partials 1423 1426 +3
Continue to review full report at Codecov.
|
ServiceLoader<IConfigFilter> configFilters = ServiceLoader.load(IConfigFilter.class); | ||
for (IConfigFilter configFilter : configFilters) { | ||
configFilter.init(properties); | ||
configFilter.init(compatibleProperties); |
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.
能否转化为Properties? ConfigFilter是一个插件接口,最好不要改入参数
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.
这个我转成一个兼容 Properties 的 wrapper. client/src/main/java/com/alibaba/nacos/client/env/SearchablePropertiesWrapper.java
- Replace system.getProperties and system.getEnv with NacosClientProperties - remove address server controller IT relate alibaba#9356
- Replace system.getProperties and system.getEnv with NacosClientProperties - log4j and logback support reading properties from NacosClientProperties relate alibaba#9356
- Replace system.getProperties and system.getEnv with NacosClientProperties relate alibaba#9356
- Replace system.getProperties and system.getEnv with NacosClientProperties relate alibaba#9356
relate: #8622
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.