Commit Graph

4980 Commits

Author SHA1 Message Date
Happy-26
30a5014e5d
Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections. (#11636) 2024-01-17 16:19:41 +08:00
杨翊 SionYang
f5d72a3455
Revert "[ISSUES #11601]Auth check fix" (#11671) 2024-01-17 16:10:23 +08:00
hth
51fa941df7
Auth check fix (#11649) 2024-01-17 16:07:55 +08:00
Qishang Zhong
07168099db
[ISSUE #11612] Unified use of NameThreadFactory to create thread pools. (#11613) 2024-01-17 15:47:19 +08:00
hth
bdbc356ce4
fix RaftConfig is always {} (#11648) 2024-01-17 15:27:49 +08:00
chenyiqin
1943825e4d
server don't send its abilities when client don't send its abilities (#11661) 2024-01-17 15:19:36 +08:00
hth
a7d1c35f85
fix user update permission (#11603) 2024-01-11 17:16:00 +08:00
hth
207505735c
add UT for control plugin (#11611)
* add ut for control plugin

* control plugin fix LocalDiskRuleStorage mkdirs
2024-01-11 17:11:47 +08:00
hth
b4a380f15b
control plugin fix LocalDiskRuleStorage mkdirs (#11620) 2024-01-11 17:08:55 +08:00
brother-戎
84900756d1
[add unit test case] Add unit test for capacity management aspect (#11622)
* add_unit_test_capacity_management_aspect

* remove some code

* some tiny fix

* some tiny fix

* some tiny fix

* some tiny fix
2024-01-11 17:08:13 +08:00
CZJCC
c98b8c4111
修复client register事件跟clientManager addClient异步并行问题 (#11634) 2024-01-10 19:06:37 +08:00
杨翊 SionYang
f3fb60ebf3
打开config模块覆盖率 (#11628) 2024-01-10 14:37:40 +08:00
nov.lzf
c70a86820d
config module coverage (#11592)
* coverage

* coverage

* coverage up tp 80% ,fix checkstyle pmd

* coverage up tp 80% ,fix checkstyle pmd

* fix checkstyle

* optmize grpc connection push

* testcase

* grp connection coverage
2024-01-08 14:25:15 +08:00
MajorHe1
dbb1b65fcb
[ISSUE #11526] Update ServiceInfoHolder.java, add log output in processServiceInfo (#11527)
* Update ServiceInfoHolder.java, add log output in processServiceInfo

* Update ServiceInfoHolder.java, add log output in processServiceInfo
2024-01-05 17:56:08 +08:00
hth
ea94095f74
[ISSUES #9001]spi instanceIdGenerator and snowFlakeInstanceIdGenerator (#11561)
* spi instanceIdGenerator and snowFlakeInstanceIdGenerator

* Test fix

* fix InstanceId set

* Copyright fix
2024-01-05 17:53:56 +08:00
hth
2296125d41
add UT for control default plugin (#11572)
* add control default plugin Test

* Copyright fix
2024-01-05 17:48:41 +08:00
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