Commit Graph

911 Commits

Author SHA1 Message Date
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
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
杨翊 SionYang
1192e4c36e
Merge pull request #11204 from alibaba/asoc2022_issue#8458
[Asoc2022][issue#8458] Support ability negotiations between server and clients
2023-09-28 14:09:59 +08:00
KomachiSion
4522cbcccb For checkstyle. 2023-09-28 10:49:10 +08:00
杨翊 SionYang
6dd88db501
Fix frequent do query service when hit protect empty. (#11197) 2023-09-27 15:52:38 +08:00
Daydreamer-ia
cb70aaf3c7 refactor AbilityControlManager with multiple ability mode. 2023-09-25 19:24:44 +08:00
阿魁
719f8aed04
[ISSUE #10117]Add registration metrics. (#11152)
* [ISSUE #10117]Add registration metrics recording for batch instance registration.

* [ISSUE #10117]Add registration metrics recording for batch instance registration.

* [ISSUE #10117]Adjustment Plan.

* [ISSUE #10117]Remove code.

* Fix checkstyle.

* fix ci.

* Optimize code.

* Optimize code.

* Fix unit test.

* Fix unit test.
2023-09-25 15:34:27 +08:00
Daydreamer-ia
6bce3bda7b add AbilityPostProcessor param to know abilities init detail, sdk client, server or cluster client 2023-09-25 14:44:47 +08:00
Daydreamer-ia
c565a2bdd5 extern abilities spi processor, refactor AbilityKey. 2023-09-25 14:17:18 +08:00
Daydreamer-ia
fc8549dc8f Merge remote-tracking branch 'origin/develop' into asoc2022_issue#8458
# Conflicts:
#	client/src/test/java/com/alibaba/nacos/client/naming/remote/gprc/redo/NamingGrpcRedoServiceTest.java
#	common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClient.java
2023-09-24 15:18:17 +08:00
杨翊 SionYang
a84373644f
Enhance config service address mode start judgement. (#11160) 2023-09-20 18:02:36 +08:00
贾璞
4e3d0c9568
[ISSUE#11035](PR-3/4) api module, remove unused import. (#11099)
* [ISSUE#11035] (PR-3/4) api module, remove unused import.

* [ISSUE #11035] (PR-3/4) api module, remove unused import.
2023-09-14 09:42:43 +08:00
阿魁
d3e099b0db
[ISSUE #11125]The related configurations of NamingGrpcRedoService sup… (#11126)
* [ISSUE #11125]The related configurations of NamingGrpcRedoService support configurability.

* [ISSUE #11125]Name adjustment.
2023-09-14 09:36:10 +08:00
blake.qiu
52a4666c94
fix(11083): Standardize the naming of the ServerlistChangeEvent class. (#11084) 2023-09-06 16:47:40 +08:00
E1se2t
ebf329e434
[ISSUE #11020] The taskId is always less than 0 (#11020) (#11022) 2023-08-29 16:03:57 +08:00
ZhangShenao
3fdcb5c270
[ISSUE #10824] Remove udp port param for v1-client (#10914)
* Remove UDP Param

* Fix gRPC client

* fix test case

* fix test case

* fix test case

* fix test case
2023-08-04 17:29:00 +08:00
zt9788
74e740c38b
UnsupportedFeatureError (#10860) 2023-07-28 10:19:21 +08:00
blake.qiu
910c2059b7
fix(#10831): When using the deregisterInstance method to remove one of multiple instances registered by batchRegisterInstance, all instances registered by batchRegisterInstance will be removed. (#10836) 2023-07-28 09:47:09 +08:00
huhongjie2014
149c50f417
[ISSUE #10792]When nacos client use endpoint, the registration center should support configuring context-path and cluster-name like the configuration center (#10793) 2023-07-25 09:43:15 +08:00
blake.qiu
556e4ccd58
fix(#10585): selectInstances and selectOneHealthyInstance methods, if the parameter subscribe is true. Subscription is required when clientProxy.isSubscribe() is false. (#10805) 2023-07-17 10:55:54 +08:00
杨翊 SionYang
9069730a04
Refactor grpc tls (#10759)
* Move Tls negotiator to GrpcSdkServer.

* use protocol negotiator builder replace directly create.

* use SPI load negotiator and set tls as default negotiator.

* Remove tlsconfig in BaseRpcServer.

* Add some ut.

* For checkstyle.
2023-07-11 19:10:00 +08:00
Daydreamer-ia
d4e9b836d2 fix checkstyle and fix bug 2023-06-22 17:08:04 +08:00
Daydreamer-ia
fc3bb2f42c Merge branch 'develop' into asoc#8458.t
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	common/src/main/java/com/alibaba/nacos/common/remote/client/ConnectionEventListener.java
#	common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java
#	common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClient.java
#	common/src/test/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClientTest.java
#	core/src/main/java/com/alibaba/nacos/core/cluster/ServerMemberManager.java
#	core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcBiStreamRequestAcceptor.java
#	core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcRequestAcceptor.java
2023-06-22 15:33:05 +08:00
nov.lzf
0ba772658d
replace nacos cache with guava cache (#10674)
* replace nacos cache with
guava cache tt fix memory leak

* checkstyle
2023-06-20 13:34:20 +08:00
Darren Luo
f40e5937ec
提交 native-image 的 Reachability Metadata (#10634) 2023-06-19 10:45:09 +08:00
1em0n9527
4de440d3f7
[ISSUE #10598] Fix nacos-client get the wrong index of the nacos server list when use nacos-address endpoint (#10599)
* fix nacos clent get the random index of nacos server list bug

* Update ServerListManager.java
2023-06-14 10:56:24 +08:00
nov.lzf
a8a43af837
fix naming memory leak (#10606)
* fix  naming memory leak

* fix test case

* fix test case
2023-06-07 13:28:08 +08:00
nov.lzf
83ee4c8e2c
1. notify thread change to one thread to avoid potential ClassLoader switch exception (#10555)
2. optimize current notify ,add receiveNotifyChanged flag
3. add notify block log for over 60s
4. add notify error & block stack trace
5. fix shutdown client worker memory leak  of server list change subscriber
6. use multi thread for different  task id  for sync with server to speed up config sync.
7. fix exception when request with 0 or negative timeouts.
8. simply local snapshot path  when env name over 50 chars
9. add a random sleep in health check for avoid health check syntony.
2023-05-26 17:01:06 +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