Commit Graph

921 Commits

Author SHA1 Message Date
Sunrisea
7e577811a7
[ISSUE#12359]Refactoring the historical configuration cleanup strategy with SPI (#12367)
* 历史配置清理逻辑SPI改造

* 添加单元测试

* 单元测试fix

* 单元测试fix

* 优化spi实现

* 优化日志打印
2024-07-23 16:42:29 +08:00
杨翊 SionYang
298f36f145
Revert "Add an id primary key column to both the roles and permissions tables.(mysql-schema.sql) (#12206)" (#12396)
This reverts commit 5d871967ea.
2024-07-22 12:10:17 +08:00
杨翊 SionYang
ed7bd03d4c
Close derby ops api default. (#12372)
* Close derby ops api default.

* Fix unit test.
2024-07-18 15:30:15 +08:00
blake.qiu
47d913de05
feat(#12355): Record the cost of ConfigDump in Prometheus. (#12356) 2024-07-18 09:40:12 +08:00
HMYDK
6c05ad5497
[ISSUE #12282]Fix the issue where monitoring data cannot be found through the IP dimension in the ListeningQuery (#12315) 2024-07-15 14:13:43 +08:00
杨翊 SionYang
2233e6556c
Develop refactor request context (#12331)
* Add RequestContext and RequestContextHolder.

* build RequestContext when request start.

* Refactor ClientAttributesFilter with RequestContext.

* InstanceController get client ip from request context.

* SubscribeServiceRequestHandler get app from requestcontext.

* config http api support use request context get user, app and source ip.

* Rename nacos request context filter.

* Unified naming request get source ip by request context.

* For checkstyle.
2024-07-10 16:54:19 +08:00
blake.qiu
8aba80d3c1
fix(#12231): When inserting and updating configurations in the database, the time-related field values need to be set using the time obtained from the database's built-in time function. (#12244) 2024-07-09 11:19:22 +08:00
shalk(xiao kun)
8034da88e5
[ISSUE #12016] upgrade to junit5 and remove junit4 (#12280)
* clean junit4

* clean junit4

* clean some test dep; fix scope

* fix test compile
2024-06-26 17:39:08 +08:00
HMYDK
5d871967ea
Add an id primary key column to both the roles and permissions tables.(mysql-schema.sql) (#12206) 2024-06-17 15:42:37 +08:00
misakacoder
833e6ca59a
[ISSUE #12180] 修复克隆和导入配置没有记录操作人 (#12181) 2024-06-12 09:27:48 +08:00
shalk(xiao kun)
94bf8661ad
[ISSUE #12114] upgrade module naocs-config from junit4 to junit5 (#12117)
* upgrade module naocs-config from junit4 to junit5

* fix checkstyle
2024-05-20 10:59:47 +08:00
shenyao
6fe43637c0
[ISSUE #11967] Can not aquire the specific config (#12025)
* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config

* [ISSUE #11967] Can not aquire the specific config
2024-05-15 11:04:32 +08:00
Zac
b047a90fba
[issue 12062]bugfix (#12086) 2024-05-11 13:38:45 +08:00
xYohn
7c461fdf67
[ISSUE #12046] fix console-ui bug when using encryption-plugin (#12061)
* #12046 console-ui should not offer encryptedDataKey field to API

* #12046 when containing encryptedDataKey,it should not execute encryption in v2 API (same as the v1 API)
2024-05-07 16:18:36 +08:00
shenyao
8d6f87eda6
[ISSUE #11926] The abnormal exit mechanism does not take effect (#12045) 2024-05-06 11:44:28 +08:00
hth
70ad2eb991
[ISSUE #11957] Remove default password (#11991)
* Remove default password

* admin role check fix

* remove tmp admin
2024-04-29 10:04:00 +08:00
Happy-26
96814ff00d
[ISSUE #11968] Buf fix: Use put() instead of putIfAbsent() for setArg() in ConfigChangeRequest (#11971)
* 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.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题

* Update ConfigChangeAspect.java

修改configChangeRequest.setArg()的key为serviceType

* Update ConfigChangeAspect.java

* Update ConfigChangeRequest.java
2024-04-22 10:53:11 +08:00
温安适
2bb7193d1b
Bug fix:10639 (#11972)
* Update LocalSimpleCountRateCounter.java

fixbug

* Update LocalSimpleCountRateCounter.java

bugfix

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* 调整测试方式,保障流水线成功

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* fix: 10639, 调整encrypted_data_key 为varchar(1024)
2024-04-22 10:49:08 +08:00
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