Commit Graph

4804 Commits

Author SHA1 Message Date
KomachiSion
f83061f47d Move some datasource and relative classes into persistence module. 2023-04-23 16:00:42 +08:00
KomachiSion
802bacafbe Add module enabled packages scan filter. 2023-04-23 15:57:46 +08:00
Mike
ce371be9fc
Specify the GC as the CMS when jdk version less 9. (#10343) 2023-04-21 11:35:05 +08:00
徐晓伟
68f172f831
🐛 default namespace resource matches (#10350) 2023-04-21 11:34:27 +08:00
杨翊 SionYang
0e0a73e025
Revert "[issue #10148]Replace sync forward request with async request (#10158)" (#10358)
This reverts commit a273705b8d.
2023-04-20 20:12:33 +08:00
Zhaohui Yu
a273705b8d
[issue #10148]Replace sync forward request with async request (#10158)
* Replace sync forward request with async request in DistroFilter. issue #10148

* extract method for config default headers

* add env switch for async distro forward.

* Fixed code review problems:
1. Move async forward switch from sys module to naming module.
2. use nacos code style to format code.

* Fixed nacos code checkstyle:
1. one import per Class
2. add javadoc

* In order to avoid additional overhead, move switch from GlobalConfig to ClientConfig and cache the env switch.

* Move switch from ClientConfig to DistroConfig.

* Removed unused import.

* Add test for async forward for DistroFilter

* Add license

* rename test method name

* Should enable async forward

* fixed test

* set async forward request switch to true in test

* fixed test: create and set property with MockEnvironment

* fixed check style

* move MockEnvironment init to BeforeClass

* add setter for asyncForwardRequest switch
2023-04-20 20:10:26 +08:00
杨翊 SionYang
bbf1bd8e6f
Supple unit tests for api module config package. (#10338)
* Supple unit tests for api module config.remote package.

* Supple unit tests for api module config package.
2023-04-19 10:34:47 +08:00
杨翊 SionYang
323a3c86ab
Add unit test for api module remote.request package. (#10330)
* Add unit test for api module remote.request package.

* For checkstyle.
2023-04-17 17:16:18 +08:00
杨翊 SionYang
260a3e6516
Merge pull request #10324 from alibaba/develop#9821
[ISSUE#9821] Use new datasource plugin mapper api to support mysql and derby.
2023-04-14 16:55:59 +08:00
杨翊 SionYang
c0dcbde91e
Develop add unit test for api remote and remote.response (#10322)
* Add UT for api module remote package

* Add UT for api module remote.response package

* For checkstyle.
2023-04-14 16:00:02 +08:00
vivid
5c4bbe85f7 补充完整剩余dataSource的MapperContext改造 (#10140) 2023-04-14 15:28:47 +08:00
KomachiSion
08f7c9ff2a Re-commit #9851 #9967. 2023-04-14 15:28:47 +08:00
wangshengji
aff7c49ed0
remove ambiguous comments (#10301)
* remove ambiguous comments

* remove ambiguous comments
2023-04-14 14:47:45 +08:00
zhanghong
1c97d715eb
[ISSUE #10318]fix import bug (#10319)
* fix import bug

* fix import bug
2023-04-14 14:43:37 +08:00
MajorHe1
fb8255c8b7
[ISSUE #10310] Update log output in RpcConfigChangeNotifier.java when push fail (#10312)
* [ISSUE #10310]Update log output in RpcConfigChangeNotifier.java when push fail

Update log output in RpcConfigChangeNotifier.java when push fail

* update indentation level

update indentation level
2023-04-13 19:14:45 +08:00
Karson
916534ecfc
Add unit test for api module (#10316)
* add some unit test for api module.

* fix code style error
2023-04-13 19:03:55 +08:00
ZhangShenao
1f28e28549
[ISSUE #10308] Use Generic Type (#10309)
* code optimization for `ConfigChangeHandler`

* [ISSUE #9930] fix word spelling error in com.alibaba.nacos.common.http.AbstractHttpClientFactory#ASYNC_IO_REACTOR_NAME

* [ISSUE #10020] Use Generic Type When Declaring `authFilterRegistration` in com.alibaba.nacos.core.auth.AuthConfig

* fix code format

* fix code format

* Fix Code Format

* Fix Code Format

* [ISSUE #10308] Use Generic Type
2023-04-13 18:01:51 +08:00
杨翊 SionYang
b3b5236cd4
Develop synced from 2.2.2 (#10307)
* Fix dynamic change token to illegal value will use old token.

* Add description in pom for release.

* Upgrade to 2.2.2

* Upgrade to 2.3.0-SNAPSHOT
2023-04-11 17:34:06 +08:00
lllwd
2bb2b9d21d
selector avalanche protection (#10184) 2023-04-10 10:46:15 +08:00
nov.lzf
c519922280
取消默认openssl (#10276)
* 取消默认openssl

* 连接上下文标签中添加tls.enable

* test fix

* checkstyle
2023-04-07 14:56:13 +08:00
杨翊 SionYang
e26dc2fb23
Merge pull request #10277 from alibaba/develop#10153
Develop#10153
2023-04-06 17:25:18 +08:00
chenyiqin
34cdb0890f
Expose way to add config filter (#10236)
* expose way to add config filter

* add @since

* fix since time
2023-04-06 15:21:21 +08:00
云野
06a2ea7004
failover file path should be like {user.home}/naming/{group}/failover/00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00. (#10272) 2023-04-06 15:07:16 +08:00
杨翊 SionYang
935e6a7f2b
Don't stopping startup for illegal token.secret.key when auth.enabled is false. (#10273) 2023-04-06 14:30:22 +08:00
杨翊 SionYang
89685a65ed
Don't stopping startup for illegal token.secret.key when auth.enabled is false. (#10265) 2023-04-03 18:36:43 +08:00
杨翊 SionYang
250f5c3708
Build console main.js. (#10264) 2023-04-03 16:29:28 +08:00
abuexclusive
da6863ccc3
[fix]🐛nacos login page && notice config (#10262) 2023-04-03 15:38:50 +08:00
Zhaohui Yu
dcb1017c07
[ISSUE #10206] Optimize nacos default application.properties configuration (#10207)
* Optimize nacos default application.properties configuration:
1. expose prometheus endpoint for metrics.
2. expose health endpoint for SLB healthcheck.
3. switch on mbean for tomcat, so we can collect tomcat metrics.
4. use one file per hour for tomcat access log

* comment prometheus and health endpoint

* enable rotate
2023-04-03 13:45:45 +08:00
yuhaowin
c1e5446733
[ISSUE #10210] init NamingGrpcClientProxy Configure appName label. (#10234)
* For #10210, init NamingGrpcClientProxy Configure appName label.

* For #10210, format code
2023-04-03 12:16:20 +08:00
杨翊 SionYang
ced2f1d9ed
Add unit test for api module (#10241)
* Add more situation UT for NetUtils

* Add UT for api module selector package

* Add UT for api module exception package

* Add UT for api module cmdb package
2023-03-31 16:41:11 +08:00
kanlon
2bca057137
[ISSUE #7698] refactor: remove httpasyncclient version dependency management, avoid version conflicts (#10170)
* refactor: remove httpasyncclient version dependency management, Avoid version conflicts

* refactor: remove httpasyncclient.version
2023-03-31 14:53:21 +08:00
Karson
7952543c43
Code optimization for NacosMeterRegistryCenter (#10231)
* optimize code

* add unit test

* reformat code style
2023-03-31 14:43:30 +08:00
varyuan
2dde125a51
clean code (#10180)
* clean code

* clean code

* clean code

* clean code
2023-03-29 14:25:22 +08:00
杨翊 SionYang
7ae2f0a22c
[ISSUE#10208] Remove DefaultSettingPropertySource.java and add some unit test for I… (#10211)
* Remove DefaultSettingPropertySource.java and add some unit test for InitUtils

* For pmd
2023-03-28 22:39:40 +08:00
zhanghong
953fa9e74b
修改mapperProxy单例 (#10162) 2023-03-28 09:41:46 +08:00
Wilson Wu
57a3a9dfe0
Add DaoCloud logo (#10195)
Signed-off-by: Wilson Wu <iwilsonwu@gmail.com>
2023-03-28 09:36:08 +08:00
杨翊 SionYang
5fffde5bde
[ISSUE#10153] Add auth state into /state api and add announcement api. (#10203)
* Add ModuleState and use ModuleState replace ServerStateController.

* Add AuthModuleStateBuilder

* state接口使用ModuleState.

* Add announcement api.

* skip rat scan for announcement.conf

* default plugin open login page when auth.enabled=true.
2023-03-27 19:00:22 +08:00
chenyiqin
e002cefb6e
Fix fs char (#10101)
* Add PathEncoder for OS to encode if dataId, ns, group contains illegal char for file system

* Add copyright

* Fix checkstyle

* Fix pmd

* fix PathEncoderManager as singleton

* fix ut

* fix checkstyle
2023-03-27 15:04:20 +08:00
悟空
f7756b7841
fix: typo: 秘钥->密钥 (#10182) 2023-03-27 09:49:02 +08:00
MajorHe1
a48d6ceda2
[ISSUE #10155] print connectionId when timeout in DefaultRequestFuture.java (#10156)
* [ISSUE #10155] print connectionId when timeout in DefaultRequestFuture.java

* fix checkstyle problem
2023-03-24 09:58:53 +08:00
varyuan
d291f24d88
fix bug, about Arrays.asList(new boolean[1]) (#10129) 2023-03-21 15:29:16 +08:00
Karson
fe5002f485
Add some unit test for V2Controller (#10143)
* add unit test for HealthController

* for rerun ci

* add unit test for CatalogControllerV2
2023-03-21 15:28:32 +08:00
nov.lzf
c39ba4a35c
ssl context reload spi (#10150) 2023-03-21 15:27:57 +08:00
nov.lzf
7df6f6d47c
dead lock on sending connection reset request on server over limit #10114 (#10149) 2023-03-21 15:13:45 +08:00
云野
68b8e61c1d
[ISSUE #10093]add unit tests for DiskUtils. (#10094)
* add unit tests for DiskUtils.
add unit tests for InetUtils.
add unit tests for MethodUtil.

* add unit tests for DiskUtils.
add unit tests for InetUtils.
add unit tests for MethodUtil.
2023-03-21 14:08:30 +08:00
云野
6bcae29cc5
add unit tests for AbstractObjectUtils. (#10138)
add unit tests for AbstractAssert.
add unit tests for GrpcUtils.
2023-03-21 13:48:21 +08:00
杨翊 SionYang
8ab205832d
Upgrade to 2.2.1 (#10121) 2023-03-17 17:32:32 +08:00
杨翊 SionYang
cdd2be65af
Remove identity default value. (#10108) 2023-03-16 11:08:33 +08:00
githubcheng2978
214e0c9077
nacos grpc connection supports TLS Encryption (#9980)
support tls encryption on grpc transport on client and server side

---------

Co-authored-by: githubcheng2978 <yeliang.cheng@freemud.com>
2023-03-15 09:41:25 +08:00
杨翊 SionYang
81dda26709
Upgrade snakeYaml to 2.0 (#10092)
* Upgrade snakeYaml to 2.0

* Fix unit.
2023-03-14 13:15:51 +08:00