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
杨翊 SionYang
eb2644fd37
Add SPI for upgrade checker. ( #6217 )
...
* Add SPI for upgrade checker.
* For checkstyle
2021-07-01 11:20:41 +08:00
赵延
3fd77bc7e0
If the client already disconnect, ignore this request to avoid NPE. ( #6175 )
...
* if the client already disconnect, ignore this request to avoid npe.
* unify code with DistroClientDataProcessor.
* print warn info when client already disconnect.
* transfer client check logic to method.
* if client is not ephemeral, is illegal.
2021-06-30 10:15:06 +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
Pixy Yuan
ea803a85ae
[ISSUE #6109 ] Using configuration to register upgrade helpers as conditional beans. ( #6115 )
2021-06-22 14:07:57 +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
463a29f082
Develop fix ci ( #6092 )
...
* Fix github CI
* Add github IT
2021-06-17 15:15:54 +08:00
zhox
1b18f2c3ca
[code quality][nacos-address]improve the code of ServiceManager.java ( #5919 )
...
* [code quality][nacos-address]improve the code of ServiceManager.java
* remove unused import
* 1 fix with ServiceManager.java
* 1 fix with ServiceManager.java
2021-06-16 10:24:36 +08:00
杨翊 SionYang
6ca9c25a68
Fix Unit test in nacos naming module ( #6031 )
2021-06-15 14:00:17 +08:00
李晓双 Li Xiao Shuang
43f4d5d927
improve the code quality for naming ( #6008 )
2021-06-09 10:05:23 +08:00
Cherish 蔡
c025dc2c18
Feat resource parser group ( #5889 )
...
* feat(#5888 ): ResourceParser groupName change the splicing method.
* feat(#5888 ): add UT for NamingResourceParser and ConfigResourceParser
2021-06-09 09:48:18 +08:00
杨翊 SionYang
ae39b9502a
[ISSUE#5921] Adapt some Naming API after upgrading to v2.x. ( #5972 )
...
* Fix #5921 , Adapt some Naming API after upgrading to v2.x.
* Fix pmd
2021-06-07 16:37:01 +08:00
李晓双 Li Xiao Shuang
90cb967763
improve the code quality for naming misc ( #5944 )
2021-06-07 14:30:24 +08:00
杨翊 SionYang
1d5a6605ee
[ISSUE#5918] Refactor event publisher in naming module to fix event without orders. ( #5930 )
...
* Rollback #5778 .
* Add method to register custom sharded event publisher
* Make naming module event use custom sharded publisher
2021-06-03 12:53:29 +08:00
李晓双 Li Xiao Shuang
7a7f267ee9
improve the code quality for naming healthcheck ( #5932 )
2021-06-03 11:31:39 +08:00
李晓双 Li Xiao Shuang
e199a5ee64
[ISSUE #5774 ] improve the code quality for naming core ( #5914 )
...
* mprove the code quality for naming core
* fix build
2021-06-03 09:59:52 +08:00
Pixy Yuan
07f38a4763
[ISSUE #5927 ] Init health check status when loading snapshot of persistent instances. ( #5928 )
2021-06-03 09:35:01 +08:00
杨翊 SionYang
09c7293085
Stop do sync when sync is no need. ( #5882 )
2021-05-28 14:08:25 +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
tianqingzhao
3b3de662c5
Optimize code that all checks for empty service. ( #5869 )
...
* Optimize code that all checks for empty service.
* Add Agreement License.
2021-05-27 18:10:55 +08:00
Pixy Yuan
ebd6322e7e
[ISSUE #5872 ] Downgrade checker only focus on changing members. ( #5873 )
2021-05-27 17:44:30 +08:00
Pixy Yuan
34ed52192a
[ISSUE #5870 ] Prevent instance ephemeral value used by DoubleWrite. ( #5871 )
...
* Fix client beat task skip interceptors unexpectedly
* Refactor transform instance and service/cluster between v1/v2 model.
* [ISSUE #5870 ] Prevent instance ephemeral value used by DoubleWrite.
2021-05-27 17:41:38 +08:00
tianqingzhao
a233563e82
Optimize code that checks for empty service. ( #5840 )
2021-05-26 10:07:19 +08:00