Commit Graph

564 Commits

Author SHA1 Message Date
nov.lzf
63dc87a30c
add endpoint cluster name for config & naming server list manager (#12253) 2024-06-24 09:37:41 +08:00
杨翊 SionYang
7cdf224157
Enhance nacos client init properties logger. (#12166) 2024-06-03 13:32:08 +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)
366c88e4d6
[issue #12081] module api upgrade junit4 to junit5 (#12082)
* refact(api): remove junit4 to junit5

* format with code style
2024-05-20 11:14:33 +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
shalk(xiao kun)
6461aeb719
fix 11892 keep ErrorResponse result code the same with errorcode (#11893) 2024-04-01 12:02:46 +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
blake.qiu
4397e8d275
feat(11752): The contentPath of AddressServerUrl is not flexible. (#11754) 2024-03-07 11:39:52 +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
梁天语
1d3f1bb492
[ISSUE #11718] Fix ErrorCode have the same code (#11747)
* [ISSUE #11718] Fix ErrorCode have the same code

* Fix code style.
2024-02-20 14:07:58 +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
hth
ea94095f74
[ISSUES #9001]spi instanceIdGenerator and snowFlakeInstanceIdGenerator (#11561)
* spi instanceIdGenerator and snowFlakeInstanceIdGenerator

* Test fix

* fix InstanceId set

* Copyright fix
2024-01-05 17:53:56 +08:00
hth
41222ee99a
service name check fix (#11553) 2023-12-26 10:46:13 +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
JorringHsiao
44b0891d16
[ISSUE #11414]Optimize ServiceInfo.validate() to reduce memory usage (#11415) 2023-11-24 15:48:54 +08:00
Sujithra Rajan
167630edec
[ISSUE #11369] Fixed ObjectMapper ordering problem in 4 tests (#11373)
* Fix flaky test

* Added changes and one more test fix

Author:    rajan11 <rajan11@illinois.edu>
2023-11-17 17:15:23 +08:00
Catcher Wong
4a5a6fd4de
Simplify the validate method for serviceinfo (#11312)
Signed-off-by: catcherwong <catcher_hwq@outlook.com>
2023-11-02 10:46:19 +08:00
杨翊 SionYang
f3fb428452
Fill UT for api module. (#11205)
* Fill UT for api module.

* For checkstyle.
2023-09-28 16:09:46 +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
Daydreamer-ia
fc5eebd67c Merge remote-tracking branch 'origin/asoc8458.t' into asoc2022_issue#8458
# Conflicts:
#	api/src/main/java/com/alibaba/nacos/api/ability/constant/AbilityKey.java
2023-09-25 19:42:35 +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
e5f54badb3 remove connectionId in SetupAckRequest, expose timeout param for capability negotiation, add uncommitted file 2023-09-24 22:14:06 +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
Dale Lee
263e223d94
[ISSUE #10374] Add default selectors (#11142)
* Add default selectors

* add tests

* Update SubscribeSelector_ITCase

* add unsubscribe test

* Removes some methods for NamingSelectorFactor

* Update SelectorManager
2023-09-22 13:55:46 +08:00
杨翊 SionYang
0c44dce0cc
Refactor control plugin (#11169)
* Refactor control plugin.

* For checkstyle.
2023-09-21 13:47:28 +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
Dale Lee
4ad98d837d
[ISSUE #10374] Select clusters using the selector (#10995)
* Select clusters using the selector

* Add Event Cache

* Update NacosNamingService,InstancesChangeNotifier
2023-09-06 17:18:18 +08:00
Dale Lee
cc34b6ca0d
[ISSUE #10374] Define selectors and related components (#10954)
* For #10374, Define selectors and related components

* Add unit test

* Update NamingSelectorWrapperTest

* Update selectors and related components

* Update NamingSelectorWrapper
2023-08-17 10:48:24 +08:00
Darren Luo
7d0101bb82
console-ui 新增 toml 语言支持,修复之前 properties 主题未生效的问题 (#10896)
* console-ui 新增 toml 语言支持,修复之前 properties 主题未生效的问题

* console-ui 新增 toml 语言支持,修复之前 properties 主题未生效的问题

* 老规矩,要编译一波
2023-08-04 12:01:50 +08:00
chenyiqin
d6958ab27c
Correct comment and add description for AbilityKey (#10760)
* correct the comments

* correct the comments and add description field for AbilityKey.
2023-07-11 17:15:52 +08:00
Daydreamer-ia
ae148b86be correct the comments and add description field for AbilityKey. 2023-07-10 22:44:52 +08:00
Daydreamer-ia
1e17db923e correct the comments 2023-07-10 22:38:56 +08:00
Sunrisea
ba8e0e2dff
[ISSUE #10734] Implemented the parameter validation utility class (#10737)
* For #10734,Refactor the AbstractConfigRequest ,move common properties from its subclasses to the parent class,to reduce the number of corresponding parameter extractors by .

* For #10734,add ParamCheckRules,ParamCheckUtils, add  ParamExtractor interface and the abstract classes HttpParamExtractor and RpcParamExtractor, implement the corresponding Manager.

* For #10734,fix codestyle

* For #10734,fix codestyle , move extractor and extractorManager to core directory

* For #10734,fix codestyle

* For #10734,fix dependency of common module

* For #10734,fix codestyle and copyright

* For #10734,fix pom codestyle and copyright

* For #10734,fix pom codestyle and copyright

* For #10734,fix  copyright

* For #10734,fix  copyright

* For #10734,fix bug caused by refactor of AbstractConfigRequest ,add ut test of ParamExtractorManager

* For #10734,fix bug caused by refactor of AbstractConfigRequest

---------

Co-authored-by: zhuoguang <sunrisea@B-Q6UQMD6R-0222.local>
2023-07-07 11:06:00 +08:00
ZhangShenao
b0b16e3919
Fix Word Spelling (#10711) 2023-06-30 10:22:03 +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
505c90b96d
uniform config lastmodified ts & refactor config disk storage. (#10533)
* uniform cache timestamp

* uniform cache timestamp

* uniform cache timestamp

* uniform cache timestamp

* checkstyle & pmd

* revert application properties

* remove duplicate code

* checkstyle and pmd

* bug fix
2023-05-26 09:53:25 +08:00
nov.lzf
dbe3730d69
fix sslconf out of date (#10451)
* 更新证书文件

* fix test case

* update ssl conf
2023-05-09 10:09:21 +08:00
杨翊 SionYang
bbf1bd8e6f
Supple unit tests for api module config package. (#10338)
* Supple unit tests for api module config.remote package.

* Supple unit tests for api module config package.
2023-04-19 10:34:47 +08:00
杨翊 SionYang
323a3c86ab
Add unit test for api module remote.request package. (#10330)
* Add unit test for api module remote.request package.

* For checkstyle.
2023-04-17 17:16:18 +08:00
杨翊 SionYang
c0dcbde91e
Develop add unit test for api remote and remote.response (#10322)
* Add UT for api module remote package

* Add UT for api module remote.response package

* For checkstyle.
2023-04-14 16:00:02 +08:00
Karson
916534ecfc
Add unit test for api module (#10316)
* add some unit test for api module.

* fix code style error
2023-04-13 19:03:55 +08:00