Commit Graph

505 Commits

Author SHA1 Message Date
Wuyunfan-BUPT
e3b7f0e79f
[ISSUE#5696] Fix auth server type (#7004)
* Add MySQL DataBase

* Add Derby Database

* Replace Auth Server

* Revise: change to AuthSystemType
2021-09-28 19:30:20 +08:00
杨翊 SionYang
a5cc7178fc
[ISSUE#6403] the expired time of naming client can be configured. (#6422)
* add AbstractDynamicConfig

* Add ClientConfig

* use ClientConfig to remove expired client.

* For checkstyle

* Update application.properties
2021-07-23 14:03:46 +08:00
wuwen
4d7ccd56b6
improvement performance (#6407) 2021-07-22 10:11:46 +08:00
ZZQ的
12a9bfb3c8
[ISSUE #6314] Remove common-lang3 from pom.xml (#6334) 2021-07-13 09:32:15 +08:00
hunjipo
cdc276e829
To slightly improve performance, this commit switches to StringBuilder.append(char) instead of StringBuilder.append(String) whenever we append a single character to a StringBuilder. (#6300) 2021-07-12 13:51:14 +08:00
brotherlu-xcq
6f826e9a55
[FOR 5094 cluster] add unit tests in nacos-core. (#6316)
* [ISSUE #5904] add ClusterRpcClientProxyTest.

* [nacos-core] [unit test] add unit test for FileConfigMemberLookupTest.
2021-07-12 09:29:31 +08:00
brotherlu-xcq
81e2f43e4b
[FOR 5094 controller] add unit tests in nacos-core. (#6307)
* [nacos-core] [unit test] add unit test for CoreOpsControllerTest, NacosClusterControllerTest.

* [ISSUE #5904] add ServerLoaderControllerTest.
2021-07-08 15:19:52 +08:00
ZZQ的
b9e388bff9
[core module] replace *commons.lang3*.*Utils to com.alibaba.nacos.com… (#6288)
* [core module] replace *commons.lang3*.*Utils to com.alibaba.nacos.common.utils.*Utils

* Use StringUtils replace jdk String method.

* Fix error logic.
2021-07-08 15:13:34 +08:00
brotherlu-xcq
71f170a7a5
[FOR 5094 auth] add unit tests in nacos-core. (#6290)
* [ISSUE #5904] add ParamRequestConditionTest.

* [ISSUE #5904] add AuthConfigTest and AuthFilterTest.

* [ISSUE #5904] add RemoteRequestAuthFilterTest.

* [ISSUE #5904] fix ci problem.

* [ISSUE #5904] add PathRequestConditionTest.
2021-07-07 10:20:14 +08:00
brotherlu-xcq
e2fc2e44a0
[FOR 5094 remote] add unit tests in nacos-core. (#6262)
* [ISSUE #5904] add unit tests for ClientConnectionEventListenerRegistryTest and ConnectionManagerTest.

* [ISSUE #5904] add unit tests for left class.

* [nacos-core] [unit test] change the uuid.

* [ISSUE #5904] fix the wrong assert.
2021-07-06 10:06:55 +08:00
brotherlu-xcq
e8812e5845
[FOR 5094 remote/core] add unit tests in nacos-core. (#6234)
* [ISSUE #5904] add unit test for directory remote/core.

* [ISSUE #5904] remove the all parameter constructor.
2021-07-02 17:47:04 +08:00
ZZQ的
888f50b5e4
Add NumberUtils、NumberUtilsTest;Modify NumberUtil dependency (#6227)
* Add NumberUtils、NumberUtilsTest;Modify NumberUtil dependency

* delete "isNumber" function

* [ISSUE #6221] Canonical code
2021-07-02 17:46:32 +08:00
brotherlu-xcq
89af6a97ae
[FOR 5094 remote/grpc] add unit tests in nacos-core. (#6226)
* [ISSUE #5904] add grpc directory unit tests.

* [ISSUE #5904] add grpc directory unit tests, for GrpcRequestAcceptor.java.

* [ISSUE #5904] fix ci problem.

* [ISSUE #5904] remove the all parameter constructor and add test scope for grpc-testing.
2021-07-02 17:45:45 +08:00
孙继峰
f36556657f
[ISSUE #6197] Use java.util.Objects instead of com.alibaba.nacos.common.utils.Objects (#6218) 2021-07-01 11:32:34 +08:00
brotherlu-xcq
041983269c
[FOR 5094 remote/control] add unit tests in nacos-core. (#6157)
* [unit test] [nacos-core remote] add unit tests of MonitorKeyMatcher.

* [unit test] [nacos-core remote/control] add unit tests of TestMonitorPoint and TpsRecorder.

* [unit test] [nacos-core remote/control] fix ci issue.

* [unit test] [nacos-core remote/control] fix ci issue.

* [unit test] [nacos-core remote/control] fix ci issue.

* [nacos-core] [unit test] try to fix MemberUtilTest problem

* [unit test] [nacos-core remote/control] fix not shutdown issue.

* [unit test] [nacos-core remote/control] fix ci issue in LookupFactoryTest.
2021-06-25 14:33:10 +08:00
MajorHe1
fb9668a35e
[ISSUE #6132] RemoteRequestAuthFilter get error message from AccessException correctly (#6133) 2021-06-22 21:11:32 +08:00
杨翊 SionYang
f2676bc6ca
[ISSUE#6129] Add ServerConfigChangeEvent when config file changed. (#6130)
* Add ServerConfigChangeEvent when config file changed.

* Upgrade config after notify ServerConfigChangeEvent
2021-06-22 14:39:37 +08:00
杨翊 SionYang
4a474ce30a
For #6116. Refactor ClientManager and make register client and schedule checkTask is atomic. (#6118) 2021-06-22 09:49:59 +08:00
杨翊 SionYang
0d3bf616e6
[ISSUE#5976] Fail CI directly if UT can't pass. (#6106)
* For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

* For #5976. fail CI directly if UT can't pass.
2021-06-18 17:49:51 +08:00
杨翊 SionYang
7c30acc4dc
[ISSUE#5985] Fix unit test problem for nacos-core. (#6102)
* Fix #5985, Fix unit test problem for nacos-core.

* For checkstyle
2021-06-17 21:05:27 +08:00
杨翊 SionYang
463a29f082
Develop fix ci (#6092)
* Fix github CI

* Add github IT
2021-06-17 15:15:54 +08:00
brotherlu-xcq
2dc35ab9a9
[FOR 5094 monitor] add unit tests in nacos-core. (#6076)
* [nacos-core] [unit test] add unit test in monitor directory.

* [nacos-core] [unit test] rollback unused change
2021-06-16 10:30:33 +08:00
brotherlu-xcq
b23756faaf
[FOR 5094 storage] add unit tests in nacos-core. (#6043)
* [Unit tests] [storage] add unit tests.

* add License
2021-06-15 13:55:52 +08:00
brotherlu-xcq
e74560de1c
[FOR 5094 utils] add unit tests in nacos-core. (#6037)
* [Unit tests] [RemoteUtils] add unit tests.

* [Unit tests] [StringPool] add unit tests.

* [Unit tests] [OverrideParameterRequestWrapper] add unit tests.

* [Unit tests] [WebUtils] add unit tests.

* [Unit tests] [ClassUtils] add unit tests.
2021-06-15 13:55:17 +08:00
虫二
1650850adf
[ISSUE #5999] AddressServerMemberLookup.syncFromAddressUrl适配nacos endpoint (#6001)
* [ISSUE #5999] AddressServerMemberLookup.syncFromAddressUrl适配nacos endpoint

* 添加AddressServerMemberLookup.syncFromAddressUrl方法测试

* 恢复点分隔配置
2021-06-15 13:51:41 +08:00
brotherlu-xcq
c5ff2f7aac
fix the problem by code quality (#6027) 2021-06-09 19:31:03 +08:00
brotherlu-xcq
11b49cc3d6
[code quality] [nacos-core] [remote-grpc/utils] remove unnecessary symbol, export constant in class (#5897) 2021-05-31 10:11:07 +08:00
brotherlu-xcq
4cfa8277cc
[FOR 5877 remote/control] improve the code quality of nacos-core. (#5896)
* [code quality] [nacos-core] [remote-control] remove unnecessary symbol, export constant in class, change the Chinese javadoc to English

* [code quality] [nacos-core] [remote-control] remove unnecessary symbol, export constant in class, change the Chinese javadoc to English
2021-05-31 10:04:53 +08:00
brotherlu-xcq
be37450ba4
[code quality] [nacos-core] [controller/distributed/listner/monitor] remove unnecessary symbol, export constant in class, change the Chinese javadoc to English (#5895) 2021-05-31 10:02:24 +08:00
brotherlu-xcq
cb5500679c
[FOR 5877 auth/cluster] improve the code quality of nacos-core. (#5894)
* [code quality] [nacos-core] [auth/cluster] remove unnecessary symbol, export constant in class, change the Chinese javadoc to English

* [code quality] [nacos-core] [auth/cluster] fix the ci problem
2021-05-31 09:59:55 +08:00
孙继峰
15c71831e7
[ISSUE #5765] fix localhost not match ip (#5852)
* rename IPUitl to InternetAddressUtil

* move isDomain to InternetAddressUtil

* [ISSUE #5765] fix localhost not match ip

* fix typo

* delete the verification IP, follow the single responsibility principle
2021-05-27 19:01:39 +08:00
Pixy Yuan
ebd6322e7e
[ISSUE #5872] Downgrade checker only focus on changing members. (#5873) 2021-05-27 17:44:30 +08:00
KomachiSion
fe1218674a Fix test compile problem 2021-05-14 11:30:51 +08:00
KomachiSion
cf5a171ac5 Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
# Conflicts:
#	NOTICE
#	api/pom.xml
#	common/src/main/java/com/alibaba/nacos/common/notify/DefaultPublisher.java
#	config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java
#	naming/src/test/java/com/alibaba/nacos/naming/consistency/persistent/impl/NamingSnapshotOperationTest.java
#	naming/src/test/java/com/alibaba/nacos/naming/core/DomainsManagerTest.java
#	naming/src/test/java/com/alibaba/nacos/naming/healthcheck/ClientBeatCheckTaskTest.java
#	pom.xml
#	test/src/test/java/com/alibaba/nacos/test/core/JacksonUtils.java
2021-05-14 11:04:52 +08:00
xiaoheng1
40cb9ecc43
Extract constants in WebUtils (#5677)
* fix #5676 Extract constants in WebUtils

* add empty line separator

* use nacon.common constants.
2021-05-14 09:38:51 +08:00
杨翊 SionYang
d929c2e328
Add monitor about Distro (#5686) 2021-05-12 16:42:37 +08:00
xiaoheng1
c043ad4d08
Optimize the AbstractMemberLookup class, abstract out the template method (#5593)
* fix #5592 Optimize the AbstractMemberLookup class, abstract out the template method

* add exception javadoc
2021-05-10 20:40:55 +08:00
JackSun-Developer
1ec7ffa4b1
[#5577] The AddressServerMemberLookupTest class lacks a lot of Unit Tests. (#5578) 2021-05-10 12:46:06 +08:00
JackSun-Developer
88a0871f80
[#5601] The package com.alibaba.nacos.core.distributed.distro.component lacks Unit Tests. (#5606) 2021-05-10 12:45:40 +08:00
haoyann
6afcb059e0
remove unnecessary return (#5626) 2021-05-10 11:45:41 +08:00
JackSun-Developer
c27292116c
[#5599] The class com.alibaba.nacos.core.distributed.distro.DistroConfig lacks Unit Test. (#5604) 2021-05-10 11:42:07 +08:00
JackSun-Developer
b564256441
[#5596] Package com.alibaba.nacos.core.distributed.distro.task lacks a lot of Unit Tests (#5603) 2021-05-10 11:41:43 +08:00
JackSun-Developer
26c6db005b
[#5595] Package com.alibaba.nacos.core.distributed.distro.entity lacks a lot of Unit tests (#5602) 2021-05-10 11:41:13 +08:00
JackSun-Developer
d31acb5e45
[#5579] The class LookupFactory lacks corresponding Unit Test. (#5580) 2021-05-10 11:09:53 +08:00
Pixy Yuan
d26689a159
[ISSUE #5574] Remove downgraded member version info. (#5575)
* [ISSUE #5574] Remove downgraded member version info.

* [ISSUE #5574] Remove downgraded member `readyToUpgrade` info.
2021-05-10 11:07:30 +08:00
孙继峰
818d37b71c
delete duplicated dependency (#5622) 2021-05-10 10:43:58 +08:00
KomachiSion
de40cdd943 Remove unused codes in ServerMemberManager 2021-04-28 17:50:30 +08:00
KomachiSion
92da848375 Merge remote-tracking branch 'upstream/develop' into merge-1.X-to-2.0
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/CacheData.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	client/src/main/java/com/alibaba/nacos/client/naming/core/PushReceiver.java
#	console/src/main/resources/static/css/main.css
#	console/src/main/resources/static/js/main.js
#	naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java
#	naming/src/test/java/com/alibaba/nacos/naming/core/SubscribeManagerTest.java
#	test/src/test/java/com/alibaba/nacos/test/BaseTest.java
2021-04-27 15:57:24 +08:00
杨翊 SionYang
71a0037f50
Refactor Distro Config as singleton and replace GlobalConfig (#5486)
* Refactor Distro Config as singleton and replace GlobalConfig

* Use configed timeout for distro sync and verify

* Fix IT error.
2021-04-25 16:50:10 +08:00
杨翊 SionYang
267d67190b
Some enhancement for logs and ability. (#5482) 2021-04-25 13:08:24 +08:00