Commit Graph

903 Commits

Author SHA1 Message Date
bajiejump
5c141593d8
issue:11943(保存导入用户) (#11945) 2024-04-11 15:28:54 +08:00
zhanghong
25585d65dd
[ISSUE #11847] fix OpenApi publish Cas fail (#11850)
* 修复openApi publishConfigCas失效

* 修复openApi publishConfigCas失效

* fix unit test
2024-04-01 15:32:33 +08:00
publicize-y
2df335d57e
Response wrong status code for some situation for openAPI (#11864)
* fix:Response wrong status code for some situation for openAPI

* fix:Response wrong status code for some situation for openAPI for PrometheusApiExceptionHandler

* fix:PrometheusApiExceptionHandler status modify

* fix:add unit test

* fix:modify the unit test description

* fix:the code style modify

* fix:the UT modify
2024-04-01 14:11:16 +08:00
nov.lzf
6dc0a2109f
simplify nacos app labels collector and log fix. (#11867)
* remove batch

* simplify label collector ,optimize log

* simplify label collector ,optimize log

* testcase fix
2024-03-22 17:13:20 +08:00
zhanghong
8f1cb59370
[ISSUE #11782] Optimized the use of map (#11783)
* Optimized the use of map

* Optimized the use of map
2024-03-01 10:05:33 +08:00
黄科铭
c2f8463e12
The test case pass (#11764) 2024-02-22 14:59:26 +08:00
nov.lzf
3da1240f3a
config module coverage (#11738)
* testcase fix

* checkstyle

* testcase coverage

* testcase coverage

* testcase coverage

* testcase coverage

* testcase fixed
2024-02-06 14:53:14 +08:00
李云飞
2bb93982df
[ISSUE #11655]fix invalid usage of ProporityQueue in ConfigChangePluginManger (#11668)
* [ISSUE #11655]fix invalid usage of ProporityQueue in ConfigChangePluginManager

* add UT for config change plugin

* for checkstyle

* for checkstyle
2024-02-02 15:57:21 +08:00
blake.qiu
8f2150892a
build(11606): Make sql-schema consistent. (#11703) 2024-01-31 09:32:19 +08:00
hth
817eb58597
[ISSUE#11695] fix PreviousConfigHistory encryption (#11707)
* fix PreviousConfigHistory encryption

* UT fix
2024-01-31 09:30:46 +08:00
nov.lzf
849393c4a1
optimize dump all logic and optimize dump change interface (#11658)
* optimize config dump all,do not select content in page query,single query config on md5 and ts updated.

* 1.optimize config dump all,do not select content in page query,single query config on md5 and ts updated.
2. remove convertDeleteConfig and convertConfigConfig ,use standard RowMapper instead.

* remove unecessary code

* use context param instead of adding plugin method params

* bug and test fix
2024-01-19 15:26:28 +08:00
nov.lzf
5f9c848d7e
remove direct read (#11670)
* remove isDirectRead

* check style

* coverage makeup

* coverage makeup

* coverage makeup
2024-01-17 19:20:48 +08:00
Qishang Zhong
07168099db
[ISSUE #11612] Unified use of NameThreadFactory to create thread pools. (#11613) 2024-01-17 15:47:19 +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
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
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
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
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
阿魁
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
毛文超
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
nov.lzf
99295f8846
长轮询参数校验逻辑,修复不存在的空命名空间配置校验失败bug (#11442) 2023-11-28 18:03:16 +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
杨翊 SionYang
6a4d740781
For #10353, Handling DataIntegrityViolationException and DuplicateKeyException together. (#11405) 2023-11-20 15:04:34 +08:00
zhanghong
a935fa1092
[ISSUE #11343] Simplified validation logic (#11345)
* 优化节点显示,添加mode

* Simplified validation logic

* add license

* fix unit test

* add config,console,naming unit test and rename annotation

* add config,console,naming unit test and rename annotation

* fix EnvUtils test

* fix EnvUtils test

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest
2023-11-15 15:25:00 +08:00
杨翊 SionYang
e77a0bbe0d
Develop refactor topn (#11352)
* Move topn to core module.

* StringTopNCounter replace TopnCounterMetricsContainer.java

* Use ServiceTopNCounter replace StringTopNCounterTest for naming.

* Use FixedSizePriorityQueue replace PriorityQueue to save memory.

* For PMD.
2023-11-09 17:19:27 +08:00
杨翊 SionYang
c4aac2b82f
Fill ut for common module (#11247)
* Do some refactor and add UT for common package.

* Do some refactor and add UT for common package.

* Do some refactor and add UT for common package.

* Fix UT.
2023-10-13 14:46:04 +08:00
blake.qiu
7eb3af2659
feat(#11236): Remove invalid assertion in com.alibaba.nacos.config.server.service.ConfigCacheService#dumpChange. (#11237) 2023-10-11 10:11:46 +08:00
blake.qiu
0e43a9322d
feat(11115): http support cas publish. (#11120) 2023-10-11 10:05:31 +08:00
阿魁
d85e3f7f31
[ISSUE #11231]Optimize the handleSpringBinder method in PropertiesUtil. (#11240) 2023-10-11 09:23:31 +08:00
贾璞
a9d303cbe3
[#11035] (PR-4/4) config module, alternate string method. (#11155) 2023-09-22 13:50:30 +08:00
杨翊 SionYang
0c44dce0cc
Refactor control plugin (#11169)
* Refactor control plugin.

* For checkstyle.
2023-09-21 13:47:28 +08:00
贾璞
7b2f7aa92a
[ISSUE#11035](PR-2/4) add two string methods & avoid null pointer ... (#11065)
* [#11035] (PR-2/4) add two String methods...

* [ISSUE#10908] edit test case, add blank line

* [ISSUE#11035] restore a method
2023-09-14 09:42:03 +08:00
MajorHe1
8c9934bf06
Update ConfigController.java, add srcUser when delete config by ids (#11101) 2023-09-14 09:39:53 +08:00
Guangdong Liu
0de88379bc
Remove some unnecessary code (#11043) 2023-09-06 17:07:27 +08:00
Sunrisea
828acd3b2b
For #10734,补全参数检验日志记录,将返回的状态码修改为400 (#11073) 2023-09-01 11:41:23 +08:00
brother-戎
ca34694f2b
fixup derby test case (#11064)
* fixup derby test case

* tiny fix
2023-09-01 09:32:08 +08:00
blake.qiu
84951e9c79
feat(#10963): In CacheItem, it's better to use the private and final keywords to modify the member variable rwLock. (#10964) 2023-08-31 15:38:42 +08:00
blake.qiu
46bee904dc
fix(#10980): After connectionIds.remove(connectionId) is executed, if connectionsIds is empty, clear the k-v corresponding to groupKeyContext. (#10981) 2023-08-31 13:46:33 +08:00
blake.qiu
595c07388f
fix(#10945): Remove invalid code in the LongPollingService class. (#10946) 2023-08-31 13:42:54 +08:00
blake.qiu
5c1e80d938
fix(#10940): The SQL statement should query the 'gmt_modified' field. (#10941) 2023-08-31 13:41:53 +08:00
brother-戎
b3b74b7219
[ISSUE#10908] Fix Bean injection in class of ConfigCacheService (#10929)
* fix:
1. derby syntax error
2. IllegalArgumentException:RowMapper is required
3. bean injection in Class of ConfigCacheService

* remove @Autowared

* recover properties
2023-08-31 13:40:20 +08:00
Sunrisea
d756cdc6de
[ISSUE #10734] Optimize the param check implementation logic (#10955)
* For #10734,优化实现逻辑,提高扩展性,为动态变更限流规则预留接口

* For #10734,优化实现逻辑,提高扩展性,为动态变更参数校验规则预留接口
2023-08-14 14:55:49 +08:00
E1se2t
003f192aa8
[ISSUE #10951]Autowired members must be defined in valid Spring bean (#10951) (#10961) 2023-08-14 14:39:24 +08:00
blake.qiu
de87bb3e30
feat(10891): Provide a configuration item for the maximum number of push retries, instead of directly hardcoding it to 50 times in the code. (#10895) 2023-08-04 12:03:08 +08:00
Sunrisea
8adca685f6
[ISSUE #10734] Refactor the ParamChecker and ParamExtractor (#10775)
* For #10734,refactor the paramextractor and ParamChecker

* For #10734,alter the rules of ParamCheck

* For #10734,alter the rules of ParamCheck

* For #10734,fix bug

* For #10734,fix bug and alter the ParamCheckRules.java

* For #10734,fix code style

* For #10734,fix the param check rules

* For #10734,implement the server param check config

* For #10734,optimize the logic

* For #10734,optimize the logic

* For #10734,optimize the logic
2023-07-19 16:34:03 +08:00