Commit Graph

134 Commits

Author SHA1 Message Date
zhuyijun
b6b58ad584 新增DM的TrustedDmFunctionEnum枚举 2024-08-22 18:14:44 +08:00
zhuyijun
528c33a9fb 适配2.4.1达梦 2024-08-21 16:37:53 +08:00
Sitosoym
3e28b586bb
fix default sql in the comment to be consistent with the implementation (#12324) 2024-07-24 16:11:01 +08:00
Sunrisea
6122a9afc4
Fix the bug of ConnectionControlManager (#12399) 2024-07-24 16:05:34 +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)
21bfac76e7
upgrade module naocs-plugin from junit4 to junit5 (#12229) 2024-06-17 14:08:09 +08:00
hth
992f10a1d6
[ISSUE #11957] AuthModule add admin exist (#12066)
* AuthModule add admin exist

* test fix

* fix state

* add state cache

* rename to auth_admin_request

* test fix

* auth_admin_request default value fix

* fix admin request
2024-05-24 10:14:40 +08:00
mikolls
9a6ec0ca3d
[ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12… (#12031)
* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022)

* [ISSUE#12022] Fix MapperManagerTest test (#12022)

* [ISSUE#12022] Fix MapperManagerTest test (#12022)
2024-05-15 10:56:54 +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
tangmingyao
facf4c8270
fix:add param for ConfigInfoMapperByMySql#findAllConfigInfoBaseFetchRows (#11883)
* fix:add param for ConfigInfoMapperByMySql#findAllConfigInfoBaseFetchRows

* fix:code style modify

* fix:code style modify

* fix:code style modify

---------

Co-authored-by: zhangyang <1445621702@qq.com>
2024-04-02 11:36:29 +08:00
杨翊 SionYang
64b9e8d3f7
Make findMapper log to debug level to avoid nacos.log print much log. (#11786) 2024-03-01 13:35:30 +08:00
温安适
1710fa32a2
[ISSUES #11626] 优化Nacos的默认反脆弱插件 (#11625)
* Update LocalSimpleCountRateCounter.java

fixbug

* Update LocalSimpleCountRateCounter.java

bugfix

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

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

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

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

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

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

* 调整测试方式,保障流水线成功
2024-02-22 11:32:04 +08:00
hth
21f8065073
log improvement (#11753) 2024-02-20 10:42:58 +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
hth
817eb58597
[ISSUE#11695] fix PreviousConfigHistory encryption (#11707)
* fix PreviousConfigHistory encryption

* UT fix
2024-01-31 09:30:46 +08:00
Qishang Zhong
bd5caa64a6
Clean up system property after running the test case (#11711) 2024-01-31 09:30:01 +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
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
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
hth
8a69c9e8ac
fix default tps control plugin (#11579) 2024-01-05 17:47:59 +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
喻世文
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
nov.lzf
790bb197cf
优化增量对账,减少开销 (#11248)
* 优化增量dump,减少开销

* check style fix

* pmd fix

* testcase fix

* testcase fix

* checkstyle fix
2023-12-18 13:41:27 +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
kanghailin
cc656e19d3
Optimize MapperManager (#11195) 2023-11-06 15:40:31 +08:00
shuoer86
8ce06316f8
Fix some typos (#11269) 2023-10-30 16:27:53 +08:00
杨翊 SionYang
0e6b5faf4f
Add description for new plugin. (#11268) 2023-10-19 17:11:15 +08:00
杨翊 SionYang
57efe9f520
use DefaultNacosTpsBarrierCreator as Tps manager default impl. (#11185) 2023-09-25 17:04:41 +08:00
杨翊 SionYang
51b6a443d3
Refactor control plugin (#11174)
* Refactor control plugin and add default implementation.

* Move auth default plugin into other modules.

* Fix control plugin config not effect problem.

* Fix UT error.
2023-09-22 16:59:25 +08:00
杨翊 SionYang
0c44dce0cc
Refactor control plugin (#11169)
* Refactor control plugin.

* For checkstyle.
2023-09-21 13:47:28 +08:00
brother-戎
ca34694f2b
fixup derby test case (#11064)
* fixup derby test case

* tiny fix
2023-09-01 09:32:08 +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
ZhangShenao
25ef67db9a
Reactor code in datasource-plugin (#10791)
* Reactor code in datasource-plugin

* Fix Abstract Mapper Test Case

* Add Empty Check

* Fix Checkstyle

* fix checkstyle

* fix check style

* fix check style

* Fix CheckStyle

* Fix SQL Blank
2023-07-25 09:44:01 +08:00
nov.lzf
a83e2cc542
dump change check task submit (#10755)
* dump change check task submit

* delete config nid convert error fix

* fix test case

* checkstyle
2023-07-11 19:00:23 +08:00
Darren Luo
069c6f920c
[ISSUE #10593]修改 nacos-contrl-plugin 的数据落地位置 (#10638)
* 修改nacos-contrl-plugin插件中落地数据的 defaultBaseDir() 方法,使其不产生特殊的文件夹而落到运行目录的data文件夹下

* remove unused import
2023-06-15 10:29:20 +08:00
suncong
ee30e354d1
Update MapperProxy.java (#10487)
* Update MapperProxy.java

fix:代理类打印日志错误

* Update MapperProxy.java

fix:代理类打印日志错误

* 规范格式

* Update MapperProxy.java

reformat code

* Update MapperProxy.java

reformat code
2023-05-17 16:57:56 +08:00
KomachiSion
5897a61e8e Fix start error. 2023-05-11 20:09:33 +08:00
KomachiSion
f0336b86e8 Remove useless method and field. 2023-05-11 17:19:27 +08:00
KomachiSion
23780d9b15 ConfigChangeAspect 去除对插件实现的感知。 2023-05-11 16:44:29 +08:00
KomachiSion
131dc643b3 Merge remote-tracking branch 'upstream/develop' into asoc2022_issue#8460-2
# Conflicts:
#	persistence/src/test/java/com/alibaba/nacos/persistence/configuration/condition/ConfigChangeConfigsTest.java
2023-05-11 15:41:17 +08:00
KomachiSion
a972e02b13 Move NACOS_PLUGIN_DATASOURCE_LOG to datasource plugin module. 2023-05-08 20:34:07 +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
杨翊 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
杨翊 SionYang
e26dc2fb23
Merge pull request #10277 from alibaba/develop#10153
Develop#10153
2023-04-06 17:25:18 +08:00
varyuan
2dde125a51
clean code (#10180)
* clean code

* clean code

* clean code

* clean code
2023-03-29 14:25:22 +08:00
zhanghong
953fa9e74b
修改mapperProxy单例 (#10162) 2023-03-28 09:41:46 +08:00