杨翊 SionYang
ad83ff0c75
Develop support ram info switch ( #12382 )
...
* add new property to support agent situation.
* for checkstyle.
* Upgrade cheery pick ut to junit5.
* add ignored lefthook.yml.
* add ignored lefthook.yml.
2024-07-19 11:22:35 +08:00
misakacoder
97162438f7
[ISSUE #12219 ] 修复nacos-client中config的ServerListManager解析endpoint失败问题 ( #12220 )
...
* [ISSUE #12219 ] 修复nacos-client中config的ServerListManager解析endpoint失败问题
* [ISSUE #12219 ] 修复nacos-client中config的ServerListManager解析endpoint失败问题
2024-07-01 13:53:59 +08:00
shalk(xiao kun)
b8d13e0557
[ISSUE #12207 ] fix disk failover datasource not keep status ( #12188 )
...
* fix disk failover datasource not keep status
* fix style
* fix DiskFailoverDataSource
2024-06-26 17:50:45 +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
nov.lzf
63dc87a30c
add endpoint cluster name for config & naming server list manager ( #12253 )
2024-06-24 09:37:41 +08:00
shalk(xiao kun)
7590a4eb12
fix: use nacos properties in CacheDirUtil ( #12186 )
2024-06-12 09:26:59 +08:00
杨翊 SionYang
07d92ffb3e
Do some refactor for naming notify event. ( #12167 )
2024-06-03 15:55:46 +08:00
杨翊 SionYang
7cdf224157
Enhance nacos client init properties logger. ( #12166 )
2024-06-03 13:32:08 +08:00
KomachiSion
0d8b04b470
For checkstyle.
2024-06-03 09:35:35 +08:00
KomachiSion
96ee0f37e6
Fix UT after sync newest branch
2024-05-31 16:59:43 +08:00
KomachiSion
5f7801b341
Merge branch 'refs/heads/upstream-develop' into summer-ospp#10374
...
# Conflicts:
# client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
# client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java
# client/src/test/java/com/alibaba/nacos/client/naming/NacosNamingServiceTest.java
# client/src/test/java/com/alibaba/nacos/client/naming/event/InstancesChangeEventTest.java
# client/src/test/java/com/alibaba/nacos/client/naming/event/InstancesChangeNotifierTest.java
2024-05-31 15:21:48 +08:00
杨翊 SionYang
79a5aa5eb6
Support aliyun ram v4 signature method. ( #12162 )
...
* Nacos client ram plugin support aliyun v4 signature.
* Add V4 sign UT
* For checkstyle.
2024-05-31 13:30:55 +08:00
shalk(xiao kun)
6fa3069b7e
[issue #12043 ] module client refact unit test to junit5 ( #12044 )
...
* refact(client): remove junit4 to junit5
* fix code style
* format with code style
* fix code style
* fix codestyle
2024-05-24 10:15:17 +08:00
阿魁
5169f06654
Support TLS Grpc communication between clusters. ( #11549 )
...
* Fix exception code error.(#10925 )
* [ISSUE #11456 ]Add RpcClusterClientTlsConfig.java.
* [ISSUE #11456 ]Add cluster rpc tls config.
* [ISSUE #11456 ]Add RpcClusterClientTlsConfig UT.
* [ISSUE #11456 ]Add cluster server tls.
* [ISSUE #11456 ]Remove supportCommunicationTypes.
* [ISSUE #11456 ]Fix unit testing and indentation handling
* [ISSUE #11456 ]Indentation handling
* [ISSUE #11456 ]Fix unit test and rpc constants.
* [ISSUE #11456 ]Fix unit test.
* [ISSUE #11456 ]Optimize code.
* [ISSUE #11456 ]Fix check style.
* [ISSUE #11456 ]Add unit test.
* [ISSUE #11456 ]Fix check style.
* [ISSUE #11456 ]Update unit test.
* [ISSUE #11456 ]Fix unit test.
* [ISSUE #11456 ]Add License.
* [ISSUE #11456 ]Fix unit test.
* [ISSUE #11456 ]Fix unit test.
* [ISSUE #11456 ]Rename class.
* [ISSUE #11456 ]Optimize code.
* [ISSUE #11456 ]Handling indentation issues.
* [ISSUE #11456 ]Handling indentation issues.
* [ISSUE #11456 ]Handling indentation issues.
* [ISSUE #11456 ]Optimize code.
* [ISSUE #11456 ]Fix unit test.
* [ISSUE #11456 ]Fix unit testing and compatibility handling.
* [ISSUE #11456 ]Support TLS GRPC communication between clusters.
* [ISSUE #11456 ] Fix bugs.
* [ISSUE #11456 ]Fix bugs.
* [ISSUE #11456 ]Adjusting parameter names (compatibility considerations).
* [ISSUE #11456 ]Resolve conflict.
* [ISSUE #11456 ]Remove ProtocolNegotiatorBuilderManager and abstract ProtocolNegotiatorBuilderSingleton.
* [ISSUE #11456 ]Remove CommunicationType.java.
* [ISSUE #11456 ]Optimize code.
* [ISSUE #11456 ]Revert author.
* Splitting RpcTlsConfigFactory.
* Split RpcConstants.
* Divided RpcTlsConfigFactory, adjusted cluster parameters to "nacos.remote.peer.rpc.tls".
* check style.
* check style.
* unit test.
2024-05-15 11:13:29 +08:00
杨翊 SionYang
ed64d1f055
Depend nacos logback adapter directly. ( #12059 )
2024-05-06 14:15:10 +08:00
杨翊 SionYang
da3e88b3d4
[ISSUE#11956] Fix logging module old bugs ( #12011 )
...
* Remove log4j dependencies from nacos-client.
* Fix logback listener don't add to context.
* Fix can't adapter low version logback below 1.1.10.
* For checkstyle.
2024-04-24 18:07:34 +08:00
杨翊 SionYang
4d30b042ee
[ISSUE #11956 ] Move logback 12 and log4j2 adapter to single module. ( #11996 )
...
* Move some basic logging classes into common module.
* Move logback 12 version adapter to single module.
* For checkstyle.
* Enhance logger adapter pom.
* Refactor the adapter initialization logic to avoid spi loader error.
* Move log4j2 logger adapter to single module.
* Fix the ut cover and create useless dir.
2024-04-23 10:24:38 +08:00
杨翊 SionYang
5c19ac12ad
[ #11956 ] Refactor nacos client logging module, use SPI load current logger adapter. ( #11964 )
...
* Add NacosLoggingAdapter
* Refactor Logback Logging adapter to Nacos logging adapter.
* Refactor log4j2 Logging adapter to Nacos logging adapter.
* Remove useless abstract class
* Add and Adapt log4j2 impl to SPI.
* Remove useless method in NacosLogbackConfigurator
* Fix IT ClassNotFound problem
2024-04-16 13:52:28 +08:00
hnyyghk
9b2cc662ec
[ISSUE #11902 ] Fix request and response reflect-config.json ( #11940 )
...
* Update request reflect-config.json
add deletion graalvm reflect config
* Update response reflect-config.json
add deletion graalvm reflect config
2024-04-11 15:30:10 +08:00
阿魁
3a1f0c297e
[ISSUE #11880 ]Fixed the issue of duplicate notifications of configuration changes. ( #11881 )
2024-03-26 17:16:56 +08:00
lmm1990
ec4f21540e
Update reflect-config.json ( #11860 )
...
add deletion graalvm reflect config
2024-03-26 16:23:39 +08:00
shalk(xiao kun)
082c5073bb
fix #11871 remove reflection from client pom.xml ( #11872 )
2024-03-25 17:25:03 +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
brother-戎
9fd6ff6a04
feature: add client labels collect and attach labels to conn ( #11844 )
...
* add client labels collect and attach labels to conn
* remove some constants
* fixup test case
2024-03-21 14:33:57 +08:00
Peter Zhu
2f2fc1b12b
failover triggered mistakenly ( #11536 )
...
* Fix failover switch triggered mistakenly and optimise metrics
* format code
* Fix checkstyle
* Fix unit test
2024-03-07 11:40:41 +08:00
blake.qiu
4397e8d275
feat(11752): The contentPath of AddressServerUrl is not flexible. ( #11754 )
2024-03-07 11:39:52 +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
publicize-y
a275356c10
fix:Use the article an before instance ( #11759 )
...
* fix:Use the article an before instance
* fix:The modal verb 'will' requires the verb's base form.
2024-02-27 09:24:02 +08:00
杨翊 SionYang
139f4f2377
Add client module ut. ( #11739 )
...
* Add client module ut.
* Fix naming ut possible failed.
2024-02-06 16:11:25 +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
blake.qiu
9fcc4c0dbe
fix(11127): Fix ClientWork removeListener and addListener concurrency issue. ( #11681 )
2024-02-02 15:55:52 +08:00
Qishang Zhong
9d473ef60c
[ISSUE #11618 ] Add the config of max thread count for client worker & naming polling ( #11693 )
...
* [ISSUE #11618 ] Add the config of max thread count for client worker & naming polling
* Fix
2024-01-31 09:43:46 +08:00
Qishang Zhong
07168099db
[ISSUE #11612 ] Unified use of NameThreadFactory
to create thread pools. ( #11613 )
2024-01-17 15:47:19 +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
喻世文
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
杨翊 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
杨翊 SionYang
58803687c8
client don't judge token content invalid. ( #11496 )
2023-12-12 16:24:47 +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
Dale Lee
7fdbc63390
For #10374 , format code using Nacos Style ( #11438 )
2023-11-28 10:19:42 +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
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
杨翊 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
chaicho
ed9a55bac6
Declare httpcore as direct dependency to fix its version. ( #11293 )
2023-11-17 15:45:13 +08:00
brother-戎
5994e37394
fixup ConfigEncryptionFilter bug & do reverse Filter when handle Config response in ConfigFilterChainManager ( #11346 )
...
* fixup ConfigEncryptionFilter bug & do reverse Filter when handle response in ConfigFilterChainManager
* tiny fix
* add java doc
* add java doc
* add java doc
* tiny fix
* tiny fix
* add java doc
* add java doc
* add java doc
* set encryptionDataKey="" by default instand of null
* fixup NPE in encryptionFilter
* fixup some test cases of ConfigEncryptionFilter
* reverse changes
2023-11-17 14:06:45 +08:00
zrlw
753a30b37d
strip groupNamePrefix of instance serviceName at register or deregister ( #11354 )
2023-11-15 16:21:51 +08:00
阿魁
086be0386b
[ISSUE #11253 ]To fix the triggering of the listener upon failover con… ( #11254 )
...
* [ISSUE #11253 ]To fix the triggering of the listener upon failover content changes.
* [ISSUE #11255 ]Update style.
* [ISSUE #11255 ]Fix UdpConnectorTest#testContainAck.
2023-10-23 13:48:54 +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