杨翊 SionYang
bbed5a4eb7
[Refactor] Remove KvStorage and ConsistencyService. ( #12489 )
...
* Remove KvStorage and ConsistencyService.
* Fix switch manager dead lock until timeout.
* Ignore env vote leader effect in IT.
* Wait leader voted before start do test case.
2024-08-15 17:10:05 +08:00
杨翊 SionYang
7133411bc2
Enhance derby sql to support limit sql. ( #12490 )
2024-08-15 16:05:47 +08:00
杨翊 SionYang
fc5e502243
Upgrade grpc to 1.64.2 ( #12369 )
...
* Upgrade grpc to 1.64.1
* add grpc-util compile scope.
* add grpc-testing
2024-07-18 11:31:58 +08:00
杨翊 SionYang
2233e6556c
Develop refactor request context ( #12331 )
...
* Add RequestContext and RequestContextHolder.
* build RequestContext when request start.
* Refactor ClientAttributesFilter with RequestContext.
* InstanceController get client ip from request context.
* SubscribeServiceRequestHandler get app from requestcontext.
* config http api support use request context get user, app and source ip.
* Rename nacos request context filter.
* Unified naming request get source ip by request context.
* For checkstyle.
2024-07-10 16:54:19 +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
阿魁
108f51083f
Add RpcServerSslContextRefresherHolder unit tests. ( #12281 )
...
* Fix exception code error.(#10925 )
* [Unit test]Add RpcServerSslContextRefresherHolder unit tests.
* [Unit test]Fix bug.
2024-06-26 17:37:51 +08:00
shalk(xiao kun)
3b2f787d61
[ISSUE #12227 ] upgrade module test from junit4 to junit5 ( #12251 )
...
* upgrade module naocs-test from junit4 to junit5
* fix test/core-test
* fix some test
* fix ci
2024-06-24 09:38:38 +08:00
shalk(xiao kun)
04f9b86e45
upgrade module naocs-core from junit4 to junit5 ( #12134 )
2024-05-31 13:42:53 +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)
de10c07146
clean code remove unused dependency javatuple ( #11976 )
2024-04-24 15:51:58 +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
hth
9db51e58ed
add UT for NamespacePersist ( #11852 )
...
* UT for NamespacePersist
* NamespacePersistTest fix
2024-03-22 09:36:22 +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
linqiuping
038420c69f
Add ParamCheckerFilter ut ( #11834 )
...
* remove unused exception
* Add ReuseHttpServletRequest ut
* fix ut description
* fix code style
* fix code style
* fix code style
* Add ReuseUploadFileHttpServletRequest ut
* fix code style
* fix ut with unapproved license
* fix code style
* Add CheckConfiguration ut
* Add ParamCheckerFilter ut
* fix code style
* fix License
* fix code style
2024-03-15 15:32:20 +08:00
linqiuping
0d7fcff261
Add CheckConfiguration ut ( #11829 )
...
* remove unused exception
* Add ReuseHttpServletRequest ut
* fix ut description
* fix code style
* fix code style
* fix code style
* Add ReuseUploadFileHttpServletRequest ut
* fix code style
* fix ut with unapproved license
* fix code style
* Add CheckConfiguration ut
2024-03-15 14:00:34 +08:00
linqiuping
d26ed3623e
Add ReuseUploadFileHttpServletRequest ut ( #11827 )
...
* remove unused exception
* Add ReuseHttpServletRequest ut
* fix ut description
* fix code style
* fix code style
* fix code style
* Add ReuseUploadFileHttpServletRequest ut
* fix code style
* fix ut with unapproved license
* fix code style
2024-03-14 15:45:00 +08:00
linqiuping
3b319502a1
Add ReuseHttpServletRequest ut ( #11826 )
...
* remove unused exception
* Add ReuseHttpServletRequest ut
* fix ut description
* fix code style
* fix code style
* fix code style
2024-03-14 13:41:14 +08:00
linqiuping
5a5473bdbd
remove unused exception ( #11824 )
2024-03-13 17:21:14 +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
dingjiefei
fdbc99dd99
Update the sofa-jraft version to resolve the issue of the server cannot connect to the client ( #11721 )
...
* update sofa-jraft version
* fix JRaftServerTest.testRefreshRouteTable
* remove unnecessary Mockito stubbings
2024-02-27 14:40:28 +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
hth
bdbc356ce4
fix RaftConfig is always {} ( #11648 )
2024-01-17 15:27:49 +08:00
chenyiqin
1943825e4d
server don't send its abilities when client don't send its abilities ( #11661 )
2024-01-17 15:19:36 +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
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
chenyiqin
6b0636dd5d
support metric for grpc server request ( #11427 )
...
* support metric for grpc server request
* change way to judge field
* optimize record
2023-12-29 14:08:50 +08:00
nov.lzf
ca9d55e264
fix config test case and remove useless code ( #11521 )
...
* 修复客户端cmsgc导致服务端推送积压直接内存oom问题
* 修复ut及bug
* 修复ut及bug,checkstyle
* 修复ut及bug
* 修复ut
* 修复覆盖率
* 修复测试用例
* 修复测试用例,覆盖率
* 修复测试用例,覆盖率,删除无用代码
* 修复测试用例,覆盖率,pmd&checkstyle
* fix test case
2023-12-18 13:42:28 +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
chenyiqin
01a28ee3cd
Support metric for grpc server executor ( #11428 )
...
* support metric for grpc server executor
* remove unused field
* add copyright
* add ut
2023-12-06 13:12:20 +08:00
chenyiqin
18a4672dd9
Support metric for module connection ( #11426 )
...
* support metric for module connection
* fix pmd
* add ut
2023-12-05 10:16:41 +08:00
chenyiqin
2fd002c8d1
fix: connection count of current node is not accurate ( #11417 )
2023-12-05 09:41:03 +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
zhanghong
65917ec986
[ISSUE #11343 ]Fix NPE ( #11385 )
...
* fix NPE
* fix NPE
2023-11-17 17:11:26 +08:00
zhanghong
a935fa1092
[ISSUE #11343 ] Simplified validation logic ( #11345 )
...
* 优化节点显示,添加mode
* Simplified validation logic
* add license
* fix unit test
* add config,console,naming unit test and rename annotation
* add config,console,naming unit test and rename annotation
* fix EnvUtils test
* fix EnvUtils test
* fix ParamExtractorFilterTest
* fix ParamExtractorFilterTest
* fix ParamExtractorFilterTest
* fix ParamExtractorFilterTest
* fix ParamExtractorFilterTest
2023-11-15 15:25:00 +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
黄科铭
e7e3824aac
add startup conditions ( #11305 )
...
* add startup conditions
* user movkEnv
2023-11-01 11:20:50 +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
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
阿魁
d85e3f7f31
[ISSUE #11231 ]Optimize the handleSpringBinder method in PropertiesUtil. ( #11240 )
2023-10-11 09:23:31 +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
杨翊 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
阿魁
5c8def0d25
[ISSUE #11072 ]Enhance unit tests related to trace events. ( #11105 )
2023-09-14 09:38:48 +08:00
Guangdong Liu
27216603c2
(bugfix) check null when obtaining the RpcClient. ( #11042 )
...
* fix-11028
* fix-11028
* fix-11028
2023-09-06 17:08:22 +08:00