Commit Graph

1106 Commits

Author SHA1 Message Date
chaos
a8f440b714 ClientOperationService result.getExtendDatum multiple calls 2022-04-21 16:07:56 +08:00
Oliver
a9e2cbd4d8
Set interrupted flag to caller (#8116) 2022-04-20 10:49:00 +08:00
onewe
8401b8c836
[ISSUE #8196] Return count number of subscribers correctly when throw an exception (#8197)
Close #8196
2022-04-18 17:10:50 +08:00
liqipeng
f0104c0ea0
[ISSUE #8144] add volatile modifier to ServerListManager.serversFromEndpoint(2.x) (#8146)
* add volatile modifier to `ServerListManager.serversFromEndpoint`

* optimize `onReceiveChecksums` in race condition

* judge responsible server in same localAddress; add `volatile` modifier for `EnvUtil.localAddress`
2022-04-18 11:33:08 +08:00
chenhao26
8e4470c2b8
Call once to get the clientmanager (#8149)
* Call once to get the clientmanager

* clean code
2022-04-18 11:32:04 +08:00
bjxiaojian
814ffb749c
do getServiceString() only once when debug (#8121) 2022-04-12 10:11:01 +08:00
onewe
eac5fe5cd4
[ISSUE #8108] Add NoneHealthCheckProcessorV2 class (#8110)
* [ISSUE #8108] Add NoneHealthCheckProcessorV2 class

Close #8108

* Update NoneHealthCheckProcessor.java
2022-04-11 10:21:46 +08:00
onewe
8292d9e16c
[ISSUE #7999] Fix config that can't read environment args (#8055)
- add unit test
- resetConfig method move to subclass's constructor
2022-04-07 10:20:13 +08:00
chenhao26
5efb233909
add junit test from InstanceControllerV2Test (#8056) 2022-04-06 10:51:24 +08:00
lmw
c51b405565 [#8035] Missing serialVersionUID when class implements Serializable interface 2022-03-30 20:34:28 +08:00
胡俊
0161797e01
Merge pull request #8014 from KomachiSion/develop-issue#8009
[ISSUE#8009] Fix NPE of unit test.
2022-03-28 14:17:31 +08:00
杨翊 SionYang
26ef77378c
For #7930. Default close support upgrade from 1.X feature. (#8016)
* For #7930. Default close support upgrade from 1.X feature(double write and old raft).

* Fix use still use old raft when close upgrade feature.

* UpgradeJudgement subscribe member change event only open upgrade feature.
2022-03-28 14:15:18 +08:00
KomachiSion
d91ac9e2ea Fix #8009. 2022-03-28 10:34:24 +08:00
MajorHe1
5665cfe072
[ISSUE #7966] modify returned msg in Auth/Distro/Curcuit-Filter when internal server error (#7967)
* [ISSUE #7966] modify returned msg in Auth/Distro/Curcuit-Filter when internal server error

* [ISSUE #7966] add log output instead of return stacktrace
2022-03-28 10:22:55 +08:00
spark.ye
71440a99d4
[ISSUE #7971] fix ClusterVersionJudgement#ClusterVersionJudge Task never stop (#7972)
* fix bug(#7971) ClusterVersionJudgement ClusterVersionJudge Task never stop

* fix bug(#7971) change code style
2022-03-28 10:21:50 +08:00
Oliver
5a8c088a2f
remove unused variety and define constant (#8010)
* remove unused variety and define constant

* fix spelling error
2022-03-28 10:18:56 +08:00
Oliver
83aafb7e65
fix comment grammar (#8011)
* optimize method comment grammar

* format method comment

* fix spelling error
2022-03-28 10:18:13 +08:00
chenhao26
b4cc3fcddb
Optimize HTTP constants (#7998)
* Optimize HTTP constants

* check nacos style

* check nacos style2

* check nacos style3

* deleet Unused constants in UtilAndComs
2022-03-25 16:05:42 +08:00
胡俊
2e07c6a0c1
Package scan (#7917)
* PayloadRegistry update use spi

* PayloadRegistry update use spi

* PayloadRegistry update use spi

* PayloadRegistry update use spi

* add test

* update comment

* remove code
rename code
2022-03-11 15:50:44 +08:00
zrlw
bc40318c66
[develop] set default connection lease request timeout and merge default config (#7906)
* set default connection lease request timeout and merge default config

* remove useless code

* correct comments of mergeDefaultConfig
2022-03-09 16:03:27 +08:00
chenhao26
4ceafbeb59
add junit for InstanceUtilTest and ServiceUtilTest (#7909) 2022-03-08 20:16:44 +08:00
胡俊
5d03898049
add DistroClientComponentRegistryTest (#7855) 2022-03-03 13:51:41 +08:00
chenhao26
74e421925b
InstanceUtil 分支判断优化 (#7713) 2022-02-09 15:43:13 +08:00
KomachiSion
232c667feb Remove NamingResourceParser.java 2022-01-21 16:44:44 +08:00
KomachiSion
89cc6caade Add plugin and auth-plugin module, and move class into module. 2022-01-21 15:06:09 +08:00
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