Commit Graph

4964 Commits

Author SHA1 Message Date
hth
8a69c9e8ac
fix default tps control plugin (#11579) 2024-01-05 17:47:59 +08:00
Karson
97104b2445
[ISSUE #11586]Remove deprecated api of spring security (#11587)
* remove deprecated config

* style fix
2024-01-05 17:02:39 +08:00
chenyiqin
6b0636dd5d
support metric for grpc server request (#11427)
* support metric for grpc server request

* change way to judge field

* optimize record
2023-12-29 14:08:50 +08:00
nov.lzf
d4e2ccda82
config module coverage up to 60% (#11560)
* fix test case

* test case coverage

* open config module testcases

* config module testcases coverage

* test case coverage up to 55%

* test case coverage up to 55%

* test case coverage up to 60%

* fix test case

* fix test case

* fix test case

* fix test case

* fix test case

* fix test case

* coverage makeup

* coverage makeup

* coverage makeup

* coverage makeup
2023-12-29 11:46:54 +08:00
blake.qiu
526227c77b
fix(#11498): fix CheckDbHealthTask. (#11500) 2023-12-28 11:37:29 +08:00
喻世文
6587029851
[ISSUE #11544] Supplementary single test, when the prefix of dataId is cipher. (#11546)
* [ISSUE #11544] Supplementary single test, when the prefix of dataId is cipher.

* [ISSUE #11544] Supplementary single test, when the prefix of dataId is cipher. Adjusting code format.

* [ISSUE #11544] Supplementary single test, when the prefix of dataId is cipher. Change static code block to @Before annotation.

* [ISSUE #11544] Supplementary single test, when the prefix of dataId is cipher. run ci.
2023-12-27 11:08:23 +08:00
杨翊 SionYang
9e48e8cb3b
Develop client ut (#11557)
* Add UT for client module logging package.

* Add UT for client module utils package.

* Add UT for client module naming package.

* For checkstyle.

* For PMD.
2023-12-26 11:53:26 +08:00
hth
41222ee99a
service name check fix (#11553) 2023-12-26 10:46:13 +08:00
realJackSun
4d76eb7c31
Add unit tests for package com.alibaba.nacos.config.server.service.dump (#11532)
* Add unit test for DumpAllProcessor

* [#11531] Add unit tests for package com.alibaba.nacos.config.server.service.dump ———— Add unit test for DumpAllProcessor
2023-12-22 14:26:00 +08:00
毛文超
d40190ee24
[ISSUES #11499] fix address server health check error (#11508)
* [ISSUES #11499] fix address server health check error

Close #11499

* [ISSUES #11499] add some unit tests for HealthController
2023-12-19 14:25:54 +08:00
nov.lzf
ca9d55e264
fix config test case and remove useless code (#11521)
* 修复客户端cmsgc导致服务端推送积压直接内存oom问题

* 修复ut及bug

* 修复ut及bug,checkstyle

* 修复ut及bug

* 修复ut

* 修复覆盖率

* 修复测试用例

* 修复测试用例,覆盖率

* 修复测试用例,覆盖率,删除无用代码

* 修复测试用例,覆盖率,pmd&checkstyle

* fix test case
2023-12-18 13:42:28 +08:00
nov.lzf
790bb197cf
优化增量对账,减少开销 (#11248)
* 优化增量dump,减少开销

* check style fix

* pmd fix

* testcase fix

* testcase fix

* checkstyle fix
2023-12-18 13:41:27 +08:00
杨翊 SionYang
ab2ddac06f
Develop client ut (#11516)
* Add ut for client module auth package.

* Add ut for client module env package.

* Add ut for client module env package.

* For copyright

* Fix UT might failed problem.
2023-12-18 10:20:55 +08:00
zhanghong
d84a566235
fix proxy mapper bug (#11507) 2023-12-15 15:42:01 +08:00
nov.lzf
06edd123f9
check server stream ready state to avoid bytebuffer back up in flow control pending write queue. (#11514)
* 修复客户端cmsgc导致服务端推送积压直接内存oom问题

* 修复ut及bug

* 修复ut及bug,checkstyle

* 修复ut

* 修复覆盖率

* checkstyle
2023-12-15 15:40:45 +08:00
杨翊 SionYang
58803687c8
client don't judge token content invalid. (#11496) 2023-12-12 16:24:47 +08:00
杨翊 SionYang
a3420b733b
[ISSUE#11494] Fix frequently request login api when using 2.X client with username. (#11495)
* Fix frequently request login api when using 2.X client with username.

* Fix frequently request login api when using 2.X client with username.
2023-12-12 14:13:56 +08:00
虢豳
26d045ca49
fix(#11489): PageHandlerAdapterFactory initHandlerAdapters error (#11490) 2023-12-12 11:59:35 +08:00
Karson
327ebaf36e
[ISSUE #10752] Fix Prometheus sd api security is not compatiable with nacos original security configs (#11470)
* fix issue #10752

* fix issue #10752
2023-12-06 13:13:15 +08:00
chenyiqin
01a28ee3cd
Support metric for grpc server executor (#11428)
* support metric for grpc server executor

* remove unused field

* add copyright

* add ut
2023-12-06 13:12:20 +08:00
dependabot[bot]
92f36b1d30
Bump ch.qos.logback:logback-classic from 1.2.9 to 1.2.13 (#11473)
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.2.9 to 1.2.13.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.9...v_1.2.13)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 13:11:35 +08:00
dependabot[bot]
cd2d4149b5
Bump ch.qos.logback:logback-core from 1.2.9 to 1.2.13 (#11472)
Bumps [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) from 1.2.9 to 1.2.13.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.9...v_1.2.13)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 13:11:14 +08:00
阿魁
3058f9f8ff
[ISSUE #11325]Fix logging for Config pull events. (#11326)
* [ISSUE #11325]Fix logging for Config pull events.

* Update style.
2023-12-06 13:10:17 +08:00
杨翊 SionYang
319ec8c257
Upgrade to 2.3.1-SNAPSHOT (#11469) 2023-12-06 13:09:46 +08:00
guozongkang
380c019fdd
Nacos客户端磁盘降级需求 issues:11053 (#11207)
* 使用磁盘实现Nacos客户端版本降级

* 使用磁盘实现Nacos客户端版本降级

* 使用磁盘实现Nacos客户端版本降级

* 使用磁盘实现Nacos客户端版本降级

* 创建对象时去除cachedir,去除磁盘定时保存任务

* 创建对象时去除cachedir,去除磁盘定时保存任务

* 删除saveFailoverData方法

* 移除getServiceInfo方法中的容灾逻辑

* 移除getServiceInfo方法中的容灾逻辑

* 删除掉注释的方法

* 使用serviceMap对比

* 使用serviceMap对比

* failoverSwith去除serviceNameSet集合

* failoverSwith去除serviceNameSet集合

* failoverSwith去除serviceNameSet集合

* 特殊情况下增补日志

* 格式化checkstyle

* 对UtilAndComs  checkstyle

* 对test类  checkstyle

* 去除无效变量

* 去除无效变量

* 修改serviceInfo对象被重新覆盖的问题

* 优化getServiceInfo方法

* 降级开关初次开启时发送通知

* 降级开关开启时,也发送通知

* 当降级开启时,不再订阅服务信息。去除多余的init方法

* 本地修复CI报错

* 本地修复CI报错

* 本地修复CI报错

* 监控指标优化内部版本同步

* 监控指标优化内部版本同步

* serviceName字段去除""
2023-12-05 10:21:52 +08:00
chenyiqin
18a4672dd9
Support metric for module connection (#11426)
* support metric for module connection

* fix pmd

* add ut
2023-12-05 10:16:41 +08:00
chenyiqin
2fd002c8d1
fix: connection count of current node is not accurate (#11417) 2023-12-05 09:41:03 +08:00
zhanghong
de739e9b9c
[ISSUE #11441] Add console-ui Dark mode (#11445)
* fix NPE

* fix NPE

* add console-ui dark mode

* merge

* merge
2023-12-05 09:33:33 +08:00
blake.qiu
33cb6e26c7
fix(#11306): change the length of the field named resource from 255 to 128. (#11453) 2023-12-05 09:32:38 +08:00
毛文超
f8b3d35e88
[ISSUES #11459] fix CONFIG_INFO_STATE_WRAPPER_ROW_MAPPER missing (#11465)
- register CONFIG_INFO_STATE_WRAPPER_ROW_MAPPER to RowMapperManager

Close #11459
2023-12-05 09:28:56 +08:00
杨翊 SionYang
7b51777eec
Upgrade to 2.3.0 (#11444) 2023-11-28 18:42:29 +08:00
nov.lzf
99295f8846
长轮询参数校验逻辑,修复不存在的空命名空间配置校验失败bug (#11442) 2023-11-28 18:03:16 +08:00
杨翊 SionYang
bb7a6ce506
Upgrade UI dependencies to fix some problem. (#11439) 2023-11-28 10:57:36 +08:00
杨翊 SionYang
2151756dd4
Develop fill ut common (#11436)
* Add Unit test for common module remote root package.

* Add Unit test for common module remote exception package.

* Add Unit test for common module remote client package.

* For checkstyle.

* For UT stability.
2023-11-28 09:24:39 +08:00
blake.qiu
93cc842c90
feat(#11393): support register or deregister persistent instance by grpc in 2.3.0 server and client. (#11430) 2023-11-27 19:47:20 +08:00
limliu
b50ccb0b15
https://github.com/alibaba/nacos/issues/11250 (#11251)
* https://github.com/alibaba/nacos/issues/11250
参考Log4J2NacosLogging处理,当location不存在时则不加载

* https://github.com/alibaba/nacos/issues/11250
nacosLogbackConfigurators.stream()
                    .filter(c -> c.getVersion() == userVersion).collect(Collectors.toList())优化存在越界情况

* 调整异常输出

* https://github.com/alibaba/nacos/issues/11250
移除无用注释代码

* https://github.com/alibaba/nacos/issues/11250
调整代码风格样式

* https://github.com/alibaba/nacos/issues/11250
默认加载方式为log4j,导致该测试用例异常;已修订

* https://github.com/alibaba/nacos/issues/11250
按模板重新格式化代码
2023-11-24 17:01:12 +08:00
黄科铭
736948f495
fix auth plugin Page (#11300)
* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Optimize paginated queries based on data sources

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Revert "Revert "add startup conditions""

This reverts commit 4225891414851e501b0c055cc1c295561440307b.

* DialectFactory add database  supported

* fix auth plugin Page, add dataSource plugin Dialect

* description

* remove dataSource plugin Dialect

* detail adjustment

* DefaultPageHandlerAdapter
2023-11-24 16:28:55 +08:00
zrlw
7803e33574
get retained instances only based on ip and port checking (#11342)
* only compare ip and port between deregister instance and redo instance

* add unit test for getRetainInstance

* fix unit test for checkstyle check

* format codes only to trigger Codecov checking
2023-11-24 16:25:24 +08:00
JorringHsiao
44b0891d16
[ISSUE #11414]Optimize ServiceInfo.validate() to reduce memory usage (#11415) 2023-11-24 15:48:54 +08:00
阿魁
c42981c9e3
[ISSUE #11217]Optimize DumpAllProcessor code. (#11220) 2023-11-24 14:21:06 +08:00
blake.qiu
da2b897961
feat: code clean. (#11337) 2023-11-24 14:14:32 +08:00
杨翊 SionYang
7ce177486f
Develop fill ut common (#11419)
* UT for common module http package.

* Add Unit test for common module http root package.

* Add Unit test for common module http param package.

* Add Unit test for common module http client package.

* For checkstyle.
2023-11-23 14:56:54 +08:00
liu-xg
15c48f4246
Update codeStyle.md (#11418)
修复错误单词
2023-11-23 14:29:04 +08:00
0808bing
1257217c10
fix compare api response 500 (issue#11384) (#11408) 2023-11-21 09:22:10 +08:00
0808bing
e9ffb370b9
fix pagination (#11382) (#11406) 2023-11-20 16:22:53 +08:00
杨翊 SionYang
6a4d740781
For #10353, Handling DataIntegrityViolationException and DuplicateKeyException together. (#11405) 2023-11-20 15:04:34 +08:00
杨翊 SionYang
03987330a4
Upgrade dependency to reduce conflicts and add leak UT coverage files. (#11396)
* Remove custom jackson version and jackson-core-asl.

* Upgrade protobuf relative version to reduce conflict with grpc.

* 补充提交遗漏单测覆盖率的模块。
2023-11-17 17:56:50 +08:00
Sujithra Rajan
167630edec
[ISSUE #11369] Fixed ObjectMapper ordering problem in 4 tests (#11373)
* Fix flaky test

* Added changes and one more test fix

Author:    rajan11 <rajan11@illinois.edu>
2023-11-17 17:15:23 +08:00
zhanghong
65917ec986
[ISSUE #11343]Fix NPE (#11385)
* fix NPE

* fix NPE
2023-11-17 17:11:26 +08:00
chaicho
ed9a55bac6
Declare httpcore as direct dependency to fix its version. (#11293) 2023-11-17 15:45:13 +08:00