zhuyijun
528c33a9fb
适配2.4.1达梦
2024-08-21 16:37:53 +08:00
若念莫念
c56c4153eb
[ISSUE #12466 ] serviceMetadata environment variables config ( #12477 )
...
* FIX [ISSUE #12446 ] macInstance 补充日志
* UPDATE [ISSUE #12466 ] serviceMetadata environment variables config
* fixed DefaultParamChecker and DefaultParamCheckerTest codeStyle
2024-08-12 09:59:37 +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
shalk(xiao kun)
35e3994bcb
[ISSUE #12113 ] upgrade module naocs-common from junit4 to junit5 ( #12116 )
...
* upgrade module naocs-common from junit4 to junit5
* fix checkstyle
2024-05-20 11:10:23 +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
JianweiWang
47dd078545
fix #11984 ( #12091 )
2024-05-14 13:37:08 +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
nov.lzf
5fcef225be
format check on client labels ( #11903 )
...
* format check on client labels
* log optimize
* testcase fix
2024-04-01 14:55:44 +08:00
徐晓伟
08edb4fbd6
⬆️ upgrade mysql-connector-java from 8.0.28 to 8.0.33 ( #11875 )
...
https://github.com/alibaba/nacos/issues/11874
2024-03-26 16:22:06 +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
不务正业
c86147b6ab
🐛 Uncontrolled data used in path expression ( #11822 )
...
https://github.com/alibaba/nacos/issues/11821
2024-03-15 14:05: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
Qishang Zhong
07168099db
[ISSUE #11612 ] Unified use of NameThreadFactory
to create thread pools. ( #11613 )
2024-01-17 15:47:19 +08:00
杨翊 SionYang
2151756dd4
Develop fill ut common ( #11436 )
...
* Add Unit test for common module remote root package.
* Add Unit test for common module remote exception package.
* Add Unit test for common module remote client package.
* For checkstyle.
* For UT stability.
2023-11-28 09:24:39 +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
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
0d46af03b7
Develop fill ut common ( #11335 )
...
* Add UT for common module utils
* Add UT for common module utils package.
* For checkstyle.
* For checkstyle.
2023-11-06 16:05:27 +08:00
阿魁
1df023451d
[ISSUE #11255 ]Update PathEncoderManagerTest#testEncodeWithNonExistOs. ( #11256 )
...
* [ISSUE #11255 ]Remove PathEncoderManagerTest#testEncodeWithNonExistOs.
* [ISSUE #11255 ]Update PathEncoderManagerTest#testEncodeWithNonExistOs.
2023-10-17 16:53:11 +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
kanghailin
49f34868ff
Optimize ThreadPoolManager ( #11206 )
2023-10-13 10:31:25 +08:00
chenyiqin
a5c0a60a1a
Fix npe when setup ack response in GrpcClient ( #11210 )
...
* fix npe when setup ack response in GrpcClient
* server sync response, avoid blocking setup ack response sent to server.
* remove setup response from client to server, change way of server pushing abilities by sendNoACK
* add UT for negotiation timeout
* fix checkstyle
* fix PMD error
* private check logical into ReceiveAbilityContext.
* fix indent
2023-10-13 09:48:06 +08:00
阿魁
1c7b9b96e1
[ISSUE #10797 ]Enhance the registration logic. ( #11228 )
2023-10-09 09:59:27 +08:00
KomachiSion
3cfe5e82f2
Fix server push is intercepted by SetupRequestHandler problem.
2023-09-28 11:55:00 +08:00
KomachiSion
4522cbcccb
For checkstyle.
2023-09-28 10:49:10 +08:00
Daydreamer-ia
cb70aaf3c7
refactor AbilityControlManager with multiple ability mode.
2023-09-25 19:24:44 +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
41a3f13a66
remove HandlerMapping.java and ability change call back
2023-09-25 14:33:20 +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
贾璞
7b2f7aa92a
[ISSUE#11035](PR-2/4) add two string methods & avoid null pointer ... ( #11065 )
...
* [#11035 ] (PR-2/4) add two String methods...
* [ISSUE#10908] edit test case, add blank line
* [ISSUE#11035] restore a method
2023-09-14 09:42:03 +08:00
阿魁
5c8def0d25
[ISSUE #11072 ]Enhance unit tests related to trace events. ( #11105 )
2023-09-14 09:38:48 +08:00
阿魁
a170489667
Fix RPC_CLIENT_TLS_PROTOCOLS setting error. ( #11109 )
2023-09-14 09:37:38 +08:00
Guangdong Liu
279e488e03
[Refactor]Remove unnecessary judgment ( #11019 )
...
* remove unnecessary judgment
* remove unnecessary judgment
2023-09-06 17:10:09 +08:00
阿魁
02fcbb0915
[ISSUE #11057 ]Add update instance and update service trace event for naming. ( #11069 )
...
* [ISSUE #11057 ]Add update instance and update service trace event for naming.
* [ISSUE #11057 ]Add license.
* [ISSUE #11057 ]Remove unused imports.
* [ISSUE #11057 ]Improve the logic.
* [ISSUE #11057 ]Fix checkStyle.
* [ISSUE #11057 ]Perfect unit test.
* [ISSUE #11057 ]Improve the logic.
* [ISSUE #11057 ]Improve the logic.
* [ISSUE #11057 ]UpdateInstanceTraceEvent add metadata.
* [ISSUE #11057 ]UpdateServiceTraceEvent.java add metadata.
2023-09-06 17:01:16 +08:00
forachange
9f28ae55a2
Update StringUtils.java ( #10936 )
...
method startsWith, 当 ignoreCase 为 true 时,lowerCasePrefix 值不正确
2023-08-14 15:22:48 +08:00
Sunrisea
d756cdc6de
[ISSUE #10734 ] Optimize the param check implementation logic ( #10955 )
...
* For #10734,优化实现逻辑,提高扩展性,为动态变更限流规则预留接口
* For #10734,优化实现逻辑,提高扩展性,为动态变更参数校验规则预留接口
2023-08-14 14:55:49 +08:00
阿魁
37d45ad8b6
Fix RpcClient retries.( #10952 ) ( #10958 )
2023-08-14 10:15:20 +08:00
阿魁
86cf2082a9
Fix exception code error.( #10925 ) ( #10926 )
2023-08-10 11:07:47 +08:00
Sunrisea
a76f0771e7
For #10734,fix the param check rule ( #10858 )
2023-07-28 09:33:07 +08:00
Sunrisea
65ad408d03
For #10734,fix the param check rule ( #10826 )
2023-07-25 09:33:44 +08:00
Sunrisea
8adca685f6
[ISSUE #10734 ] Refactor the ParamChecker and ParamExtractor ( #10775 )
...
* For #10734,refactor the paramextractor and ParamChecker
* For #10734,alter the rules of ParamCheck
* For #10734,alter the rules of ParamCheck
* For #10734,fix bug
* For #10734,fix bug and alter the ParamCheckRules.java
* For #10734,fix code style
* For #10734,fix the param check rules
* For #10734,implement the server param check config
* For #10734,optimize the logic
* For #10734,optimize the logic
* For #10734,optimize the logic
2023-07-19 16:34:03 +08:00
blake.qiu
156cd62261
fix( #10427 ): When the execution of handleServerRequest() encounters an exception, record the log and throw an exception, then quickly response to the server errResponse ( #10770 )
2023-07-13 11:11:05 +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
blake.qiu
9116aee82f
fix( #10717 ): com.alibaba.nacos.common.http.client.request.JdkHttpClientRequest.execute, when the body instanceof String, no longer call com.alibaba.nacos.common.utils.JacksonUtils.toJson to parse body. ( #10718 )
2023-07-02 00:02:57 +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