Commit Graph

1081 Commits

Author SHA1 Message Date
KomachiSion
79e7a95e62 Add SignType 2022-01-17 17:15:42 +08:00
KomachiSion
dc1c05d2dc Repackage some auth classes. 2022-01-17 16:32:23 +08:00
KomachiSion
956df153d6 Add resource parser 2022-01-14 16:52:21 +08:00
KomachiSion
4e98013f8e Solve conflicts. 2022-01-12 17:02:20 +08:00
KomachiSion
78de31dbdd Merge remote-tracking branch 'upstream/develop' into issue#5696-merge-develop
# Conflicts:
#	auth/src/main/java/com/alibaba/nacos/auth/common/AuthConfigs.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingMaintainService.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxy.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/NamingClientProxyDelegate.java
#	client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java
2022-01-12 16:52:14 +08:00
Catcher Wong
fdab51d663
[ISSUE # #7502] Fix ServiceList count (#7503) 2022-01-12 11:53:26 +08:00
胡俊
cdd83e2117
optimize NotifySubscriberRequest (#7545) 2022-01-07 18:08:22 +08:00
胡俊
fb43badea1
[ISSUE#7208] add InstanceControllerV2 (#7543)
* add InstanceControllerV2

* add InstanceControllerV2
2022-01-07 17:58:09 +08:00
杨翊 SionYang
8b88eaa69f
Add ephmeral attribute in v2 service query api. (#7262) 2021-11-19 11:38:48 +08:00
杨翊 SionYang
7ba2b7c566
[ISSUE#6846] Make one service keep one kind of instance (ephemeral or persistent). (#7239)
* Make one service keep one kind of instance (ephemeral or persistent).

* Fix IT error
2021-11-16 14:06:50 +08:00
杨翊 SionYang
0719200c38
[ISSUE#7210] Add service rest api for v2. (#7211)
* Add service rest api for v2.

* For PMD.
2021-11-11 10:14:14 +08:00
杨翊 SionYang
76aeb180d2
Refactor Server ability init login with SPI. (#7174)
* Move ability classes.

* Add ServerAbilityInitializer and RemoteAbilityInitializer

* Add NamingAbilityInitializer.

* Use ServerAbilityInitializer replace old init ability.

* For pmd.
2021-11-04 10:10:11 +08:00
onewe
ef5bb0a83d
[ISSUE #7114] Enhance the constants for auth module. (#7170)
- Create a Constants.java
- Move all the string literal to the Constants.java
- Delete the PropertiesConstant.java
2021-11-04 09:57:17 +08:00
Roger3581321
ea2a106160
Changed the "initialCapacity" of HashMap (#7074) 2021-10-21 11:39:42 +08:00
brotherlu-xcq
9cf5dcb8f4
[ISSUE #7001] keep the count value in Nacos 2.x same with value Nacos 1.x . (#7064) 2021-10-18 11:17:30 +08:00
Roger3581321
6b568119c2
add final to modify the utility class (#6951) 2021-09-22 09:42:47 +08:00
brotherlu-xcq
dd388e4d05
[ISSUE #6894] add the unit test of com.alibaba.nacos.naming.remote.rpc.handler. (#6916) 2021-09-22 09:40:01 +08:00
brotherlu-xcq
90567c7da4
[ISSUE #6894] add the unit test of com.alibaba.nacos.naming.remote.udp. (#6895) 2021-09-17 19:30:20 +08:00
brotherlu-xcq
11cdba81b3
[ISSUE #6894] add the unit test of com.alibaba.nacos.naming.remote.rpc.filter. (#6905) 2021-09-17 19:28:46 +08:00
brotherlu-xcq
6df0f22244
[ISSUE #6430] [TASK 3] Integrate this workflow to Nacos 2.0, integrate the new Selector logic into 2.x. (#6720)
* [ISSUE #6301] [TASK 3] integrate Selector into Nacos 2.x.

* new compute logic in 2.x

* [ISSUE #6301] the compute logic.

* [ISSUE #6430] remove the unused code and remove the cache logic in Udp push task.
2021-09-09 09:17:06 +08:00
brotherlu-xcq
9658d23b07
[ISSUE #6767] optimize the push data logic. (#6773)
* [ISSUE #6767] optimize the push logic.

* [ISSUE #6767] move the service to PushDataWrapper.

* [ISSUE #6767] optimize the ServiceMetadata.

* [ISSUE #6767] format the javadoc.

* [ISSUE #6767] format the javadoc.

* [ISSUE #6767] fix ci issue.

* [ISSUE #6767] fix ci issue.

* [ISSUE #6767] fix ci issue.
2021-09-02 14:54:17 +08:00
brotherlu-xcq
fa0ef3df53
[ISSUE #6783] Add unit tests for package com.alibaba.nacos.naming.core.v2.upgrade. (#6785)
* [ISSUE #6793] add UpgradeStatesTest.

* [ISSUE #6793] add DoubleWriteEventListenerTest.
2021-09-02 10:48:10 +08:00
brotherlu-xcq
5889b3a5de
[ISSUE #6703] when delete an nonexistent, return services not exist error. (#6704) 2021-08-20 09:37:20 +08:00
brotherlu-xcq
ba6e161353
[ISSUE #6301] [TASK 2] change the UI and startup shell to support custom selector config. (#6691) 2021-08-20 09:32:31 +08:00
brotherlu-xcq
9670627724
[FOR #6301] [TASK 1] Integrate this workflow to Nacos 2.0, replace the Selector in 1.x. (#6680)
* [ISSUE #6301] replace the Selector in 1.x.

* [ISSUE #6301] remove the annotation of API(get all selector types).
2021-08-18 10:00:54 +08:00
brotherlu-xcq
27b0a0cd8a
[ISSUE #6643] Add unit tests for package com.alibaba.nacos.naming.core.v2.service. (#6644) 2021-08-13 09:47:00 +08:00
brotherlu-xcq
025bee74c9
[ISSUE #6535] throw the NacosException in 2.x to keep same with 1.x when Service doesn't exist. (#6597)
* [ISSUE #6535] throw the service not find exception in Nacos 2.x when service no exist.

* [ISSUE #6535] remove the unnecessary variable.
2021-08-10 09:41:17 +08:00
MajorHe1
0b15090bab
[ISSUE #6572] add client info for OperatorController metrics interface (#6576)
* [ISSUE #6572] add client info for OperatorController metrics interface

* [ISSUE #6572] move PERSISTENT_SUFFIX to ClientConstants
2021-08-09 09:52:32 +08:00
MajorHe1
765646db43
[ISSUE #6581] fix json deserialization error of ServiceController subscribers interface (#6582) 2021-08-06 09:46:08 +08:00
ZZQ的
ea864c8c5a
Remove pom dependency (#6561) 2021-08-05 09:35:49 +08:00
brotherlu-xcq
787e161fa9
[ISSUE #6543] Add unit tests for package com.alibaba.nacos.naming.core.*. (#6547)
* [ISSUE #6543] add the unit test of CatalogServiceV2Impl.

* [ISSUE #6543] add unit test of InstanceOperatorClientImpl, HealthOperatorV1ImplTest, HealthOperatorV2ImplTest.

* [ISSUE #6543] add unit test of ServiceOperatorV2Impl.
2021-08-04 09:53:21 +08:00
Roger3581321
2ff8da4832
add final to modify the utility class (#6511) 2021-08-02 09:42:13 +08:00
ZZQ的
a729001ec5
[Reduce dependence]>[Sets] Replace "google.common.collect.*" API with… (#6445)
* [Reduce dependence]>[Sets] Replace "google.common.collect.*" API with jdk API

* delete empty line separator
2021-07-30 16:32:38 +08:00
ZZQ的
9beaacbc54
[Reduce dependence]>[Maps] Replace "google.common.collect.*" API with jdk API (#6443) 2021-07-29 10:46:22 +08:00
杨翊 SionYang
7f567d19c9
remove unused class (#6475) 2021-07-27 19:18:41 +08:00
ZZQ的
47c6706a63
[Reduce dependence]>[Lists] Replace "google.common.collect.*" API wit… (#6404)
* [Reduce dependence]>[Lists] Replace "google.common.collect.*" API with jdk API

* use elements.size to init the array length

* Replace IllegalArgumentException with NullPointerException

* Refactor CollectionUtilsTest#list()

* Add exception message

* update annotation

* update unit test method name
2021-07-27 13:47:41 +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
brotherlu-xcq
8077ce02a4
[ISSUE #5520] Add unit tests for package com.alibaba.nacos.naming.core.v2.cleaner in nacos2.0. (#6401)
* [ISSUE #5520] add unit test for EmptyServiceAutoCleaner.

* [ISSUE #5520] add unit test for EmptyServiceAutoCleanerV2.
2021-07-22 10:15:21 +08:00
brotherlu-xcq
a64f5b592b
[ISSUE #5519] Add unit tests to package com.alibaba.nacos.naming.controllers in nacos 2.0. (#6414)
* [ISSUE #5519] complete CatalogControllerTest.

* [ISSUE #5519] add unit test in controllers, not include deprecated method.

* [ISSUE #5519] fix ci issue.
2021-07-22 09:58:12 +08:00
brotherlu-xcq
784cc82d9e
[ISSUE #6365] Implement the built-in Selector in Nacos 1.x and add unit test. (#6383)
* [ISSUE #6301] implement the CmdbSelectorContextBuilder and move the 1.x LabelSelector logic to CmdbLabelSelector and add unit test.

* [ISSUE #6301] remove the unused method.

* [ISSUE #6301] fix ci issue.
2021-07-20 10:33:58 +08:00
Pixy Yuan
22393e4456
[ISSUE #6386] Stop v1 distro verification when cluster upgraded to v2. (#6387) 2021-07-19 16:42:34 +08:00
brotherlu-xcq
bb987d05f5
[ISSUE #6356] Define the Selector workflow and add unit test. (#6357)
* [ISSUE #6301] Define the workflow of Selector.

* [ISSUE #6301] Add unit test for SelectorManager.

* [ISSUE #6301] fix ci issue.

* [ISSUE #6301] test Selector with serial.

* [ISSUE #6301] fix javadoc.
2021-07-16 11:31:33 +08:00
杨翊 SionYang
44a1d02922
Fix instance metadata will not be removed for ip port client. (#6332) 2021-07-12 14: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
孙继峰
f326a0c543
[ISSUE #5095] Add unit test for ClassUtils (#6327)
* fix typo

* add unit test for ClassUtils
2021-07-12 09:45:35 +08:00
ZZQ的
98e1e72ed9
[issue #6284][naming module] replace *commons.lang3*.*Utils to com.al… (#6291)
* [issue #6284][naming module] replace *commons.lang3*.*Utils to com.alibaba.nacos.common.utils.*Utils

* add StringUtils.split() function

* Replace NumberUtils.isNumber()  -> NumberUtils.isDigits()
2021-07-12 09:16:57 +08:00
杨翊 SionYang
5e545c8d37
[ISSUE#6272] Refactor Instance builder to build and handler request from http. (#6298)
* Add InstanceBuilder and IdGenerator

* Add new builder for http request and client beat

* Use new builder to build api instance.

* Modified according review comment.
2021-07-07 17:01:40 +08:00
shalk(xiao kun)
c973566db9
[ISSUE #6188]add ut for com.alibaba.nacos.naming.cluster (#6279)
* add ut for  com.alibaba.nacos.naming.cluster

* fix ut
2021-07-07 10:02:01 +08:00
杨翊 SionYang
5c375afe81
Add SPI for ClientBeatExtensionHandler (#6250) 2021-07-02 17:17:24 +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