Commit Graph

1117 Commits

Author SHA1 Message Date
李晓双 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
tianqingzhao
5e40b78500
Remove any extra curly brace suffixes from the log (#5810) 2021-05-24 14:03:05 +08:00
Pixy Yuan
5c7730737a
[ISSUE #5798] Fix upgraded server cannot downgrade and upgrade again. (#5800)
* [ISSUE #5798] Fix upgraded server cannot downgrade and upgrade again.

* Fix NPE when delete ServiceMetadata of an non-exist service.
2021-05-21 11:06:49 +08:00
Pixy Yuan
93fd771271
[ISSUE #5782] Fix removal of instances when DoubleWrite removing service. (#5793) 2021-05-20 11:12:03 +08:00
Pixy Yuan
c858139329
[ISSUE #5775] Persist the cluster upgrade states to disk. (#5792) 2021-05-20 11:11:07 +08:00
李晓双 Li Xiao Shuang
35c8035861
[ISSUE #5774] improve the code quality for controllers (#5784)
* improve the code quality for controllers

* improve the code quality for controllers
2021-05-20 11:05:54 +08:00
李晓双 Li Xiao Shuang
022fb6ac68
improve the code quality for consistency (#5783) 2021-05-20 11:04:56 +08:00
李晓双 Li Xiao Shuang
08db47ce84
magic number (#5781) 2021-05-20 09:51:52 +08:00
FlyingLambrog
5e80d12932
Add unit tests for class naming.core.ClusterOperatorV2Impl (#5763) 2021-05-18 19:52:47 +08:00
Pixy Yuan
4655dded44
[ISSUE #5767] Cleanup data of v1 after disable DoubleWrite. (#5772) 2021-05-18 19:48:07 +08:00
Pixy Yuan
160ed5b360
[ISSUE #5756] Support to specify ephemeral value for createService (#5757)
* [ISSUE #5756] Support to specify ephemeral value for `UpgradeOpsController.createService` .

* [ISSUE #5756] Fix PathVariable is not supported by DistroFilter.
2021-05-17 20:19:43 +08:00
haoyann
536da8214c
remove duplicate client expire check (#5751) 2021-05-17 10:10:54 +08:00
FlyingLambrog
5cb3b6db20
Add unit tests for package com.alibaba.nacos.naming.core.v2.cleaner (#5750) 2021-05-17 10:08:54 +08:00
xiaoheng1
2783167bd3
fix #5724 Extract constants in JacksonSerializer (#5725) 2021-05-17 09:48:46 +08:00
Pixy Yuan
2b076faa63
[ISSUE #5718] Add some APIs for upgrade ops. (#5719)
* [ISSUE #5718] Add some APIs for upgrade ops.

* [ISSUE #5718] Optimize textual field output of metrics API.
2021-05-17 09:47:03 +08:00
xiaoheng1
b33134cf50
Extract constants in HealthController (#5717)
* fix #5715 Extract constants in HealthController

* fix #5715 Extract constants in HealthController

* add license
2021-05-17 09:44:23 +08:00
李晓双 Li Xiao Shuang
fdaf1d9cd9
add unit test for SpiImplPushExecutorHolder (#5716) 2021-05-17 09:42:48 +08:00
李晓双 Li Xiao Shuang
2bc782ee9c
add unit test for ServiceChangeEvent (#5714) 2021-05-17 09:42:10 +08:00
李晓双 Li Xiao Shuang
1974cf01b3
fix magic number (#5709) 2021-05-14 14:46:59 +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
Pixy Yuan
98aae398f8
[ISSUE #5692] Make service removal sensed by double write. (#5706)
* [ISSUE #5692] Add double write task sensing removal of v2 service.

* [ISSUE #5692] Add double write task sensing removal of v1 service.

* [ISSUE #5692] Make async checker of services sensing removal of v1 service.
2021-05-14 09:54:52 +08:00
mingyang feng
64601e0581
Fixes logical judgment expression #5683 (#5685)
* One aspect of code quality is to have better expressions.

* Update ClientBeatProcessor.java

* Update ClientBeatProcessor.java
2021-05-14 09:39:36 +08:00
杨翊 SionYang
d929c2e328
Add monitor about Distro (#5686) 2021-05-12 16:42:37 +08:00
Pixy Yuan
b6d96b69c7
Fix service group name when upgrading. (#5674)
* [ISSUE #5671] Prefer serviceV2.groupName using groupName in serviceV1.name

* [ISSUE #5671] Add groupName to service when creating by v1 operator
2021-05-11 20:41:18 +08:00
JackSun-Developer
af0f01d21b
[#5600] The class com.alibaba.nacos.naming.core.DistroMapperTest lacks Unit Test. (#5605) 2021-05-10 11:44:41 +08:00
FlyingLambrog
af0c2f5fcb
Add unit test for class naming.consistency.persistent.impl.NamingKvStorage (#5568) 2021-05-10 11:43:51 +08:00
JackSun-Developer
5395237062
[#5581] The class DataStore lacks a lot of Unit Tests. (#5582) 2021-05-10 11:10:56 +08:00
李晓双 Li Xiao Shuang
16e80ec91f
add unit test for v2 index (#5563) 2021-05-10 10:53:15 +08:00
李晓双 Li Xiao Shuang
0541ba8deb
[ISSUE #5522] add unit test for MetadataOperation (#5608)
* add unit test for MetadataOperation

* update method name
2021-05-10 10:47:28 +08:00
李晓双 Li Xiao Shuang
b478166d1c
add unit test for NamingMetadataManager (#5609) 2021-05-10 10:47:09 +08:00
李晓双 Li Xiao Shuang
7f924b58f1
add unit test for NamingMetadataOperateService (#5610) 2021-05-10 10:46:52 +08:00
李晓双 Li Xiao Shuang
8fa60671e9
add unit test for ServiceMetadata (#5611) 2021-05-10 10:46:29 +08:00
李晓双 Li Xiao Shuang
b70549d6e3
add unit test for ServiceMetadataSnapshotOperation (#5613) 2021-05-10 10:46:13 +08:00
李晓双 Li Xiao Shuang
4bc80436da
add unit test for ServiceMetadataProcessor (#5614) 2021-05-10 10:45:06 +08:00
孙继峰
818d37b71c
delete duplicated dependency (#5622) 2021-05-10 10:43:58 +08:00
JackSun-Developer
52278a4849
[#5554] Fix Unit Test for com.alibaba.nacos.naming.core.DomainsManager.java (#5555) 2021-04-30 18:06:29 +08:00
JackSun-Developer
1b1975a2fd
[#5551] Fix Unit Test for com.alibaba.nacos.naming.healthcheck.ClientBeatCheckTask (#5552) 2021-04-30 18:06:12 +08:00
JackSun-Developer
ca7e4cc780
[#5549] Fix Unit test for NamingSnapshotOperationTest.java (#5550) 2021-04-30 18:05:45 +08:00
JackSun-Developer
7d110e665e
[#5545] naming/src/test/java/com/alibaba/nacos/naming/consistency/persistent/ClusterVersionJudgementTest.java unit tests cannot pass, and have bad code style. (#5546) 2021-04-30 15:48:50 +08:00
KomachiSion
2847373fd0 Solve conflict 2021-04-27 16:19:56 +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
KomachiSion
bd8ac55386 rollback subscribers push data immediately to protect push frequent. 2021-04-27 15:38:26 +08:00
李晓双 Li Xiao Shuang
6c20d35af8
add unit test for PersistentConsistencyServiceDelegateImpl (#5491)
* add unit test for PersistentConsistencyServiceDelegateImpl

* add unit test for PersistentConsistencyServiceDelegateImpl

* add unit test for PersistentConsistencyServiceDelegateImpl
2021-04-27 10:12:02 +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
JackSun-Developer
ee8f636db1
[#5467] com.alibaba.nacos.naming.consistency.DelegateConsistencyServiceImpl lacks a lot of Unit Tests. (#5468) 2021-04-23 19:14:37 +08:00
brothelul
6c270cb3ac
[ISSUE #5078] set default pageSize to 10000 for getting all the subscribers in other server node. (#5424)
* hardcode to get all the subscribers by set the pageSize to 10000

* change the default pageSize from 10000 to 1000

* change the param of getSubscriber to support the pageNo and pageSize
2021-04-23 09:52:04 +08:00
Pixy Yuan
758b8b3942
[ISSUE #5442] change state to UP when received status form old version server (#5445)
* [ISSUE #5442] change state to UP when received status form old version server

* [ISSUE #5442] Optimize server status received logic
2021-04-22 16:39:19 +08:00
MajorHe1
0a4f7f5e75
[ISSUE #5361] check isUseGrpcFeatures() when subscribe service using GRPC (#5411)
* [ISSUE #5361] check isUseGrpcFeatures() when subscribe service using GRPC

* [ISSUE #5361] add a GrpcRequestFilter to check isUseGrpcFeatures() when using GRPC protocol

* [ISSUE #5361] add a judgement whether request instance of AbstractNamingRequest

* [ISSUE #5361] reformat code using nacos-code-style-for-idea.xml
2021-04-22 10:12:57 +08:00
杨翊 SionYang
4c1b879d00
For #5419, Fix Nacos 2.0 client auth may invalid for non public namespace. (#5422) 2021-04-20 19:29:59 +08:00
杨翊 SionYang
3a4c8efb14
For #5404, Fix frequently udp push for client 1.X (#5413) 2021-04-20 09:57:14 +08:00
杨翊 SionYang
73eea9c0bb
Use ThreadUtil and EnvUtil replace Runtime.availableProcessor (#5388) 2021-04-16 17:32:14 +08:00
MajorHe1
ec2528f475
[ISSUE #5361] check isUseGrpcFeatures() when register instance using GRPC protocol (#5365)
* [ISSUE #5361] check isUseGrpcFeatures() when register instance using GRPC protocol

* [ISSUE #5361] change hint message when register instance failed using GRPC
2021-04-16 10:34:58 +08:00
JackSun-Developer
02ebe0190e
[#5350] In version 1.4.1, modify the Server is Down prompt to the specific reason for the machine failure and send it to the user (#5360) 2021-04-14 10:02:49 +08:00
KomachiSion
77990982ef Solve Conflict 2021-04-13 14:44:21 +08:00
KomachiSion
51cc2b1b4b Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
# 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/test/java/com/alibaba/nacos/client/config/common/GroupKeyTest.java
#	common/src/test/resources/META-INF/services/com.alibaba.nacos.common.spi.SpiTestInterface
#	config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java
#	console/src/main/resources/static/css/main.css
#	console/src/main/resources/static/js/main.js
#	istio/src/main/java/com/alibaba/nacos/istio/mcp/NacosMcpService.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/ApiController.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/CatalogController.java
#	naming/src/main/java/com/alibaba/nacos/naming/push/PushService.java
2021-04-13 14:28:30 +08:00
杨翊 SionYang
e689c1a3a1
Remove blocked thread for Protocol metadata (#5354) 2021-04-13 14:12:19 +08:00
Jisfeng
d9dff86f7a
fix subscriber app unknown (#5324) 2021-04-12 10:01:19 +08:00
杨翊 SionYang
a50d9678ae
Push support config some parameters (#5307) 2021-04-08 17:25:31 +08:00
Wu Zhiguo
9bcb901174
Fix some typo (#5260)
* fix some typo

* rollback some comment format
2021-04-03 12:57:57 +08:00
杨翊 SionYang
d146e057c4
Fix ThreadPool usage problem and add some monitor for distro (#5237) 2021-03-30 16:27:41 +08:00
杨翊 SionYang
1969f00aa5
Fix #5204, Fix query error when pageNo is larger than service number. (#5228) 2021-03-29 15:31:25 +08:00
李晓双 Li Xiao Shuang
d5b9b908a0
[ISSUE #5096] Add unit tests to package com.alibaba.nacos.naming.healthcheck in nacos 2.0 (#5170)
* add unit test for healthcheck

* add newline

* delete javadoc

* add Licensed

* add verify

* normalize
2021-03-26 10:01:06 +08:00
Pixy Yuan
db49388f62
[ISSUE #5169] Fix instance beat run only by responsible server. (#5179)
* [ISSUE #5169] DISTRO filter support `beat` parameter

For old version clients.

* [ISSUE #5169] Only responsible server need to check instance heartbeats
2021-03-25 09:48:00 +08:00
杨翊 SionYang
fb9300d87f
Nacos2.0 adapt batch instance metadata operate (#5141)
* Rebuild ui

* Nacos2.0 adapt batch instance metadata operate
2021-03-19 11:48:06 +08:00
KomachiSion
6cda5ad55a Merge remote-tracking branch 'upstream/develop' into develop-merge-to-2.0
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/naming/core/HostReactor.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java
#	client/src/test/java/com/alibaba/nacos/client/config/impl/YmlChangeParserTest.java
#	common/src/main/java/com/alibaba/nacos/common/http/param/Header.java
#	common/src/main/java/com/alibaba/nacos/common/utils/ConcurrentHashSet.java
#	config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java
#	console/src/main/resources/static/js/main.js
#	core/src/main/java/com/alibaba/nacos/core/cluster/ServerMemberManager.java
#	core/src/main/java/com/alibaba/nacos/core/utils/Loggers.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java
#	naming/src/main/java/com/alibaba/nacos/naming/healthcheck/HealthCheckReactor.java
#	pom.xml
2021-03-18 12:08:45 +08:00
杨翊 SionYang
f1cf643b81
Try to fix #4573,#4629. Jraft leader status check error. (#5129) 2021-03-18 11:11:45 +08:00
杨翊 SionYang
00032676e9
[ISSUE#4829] Remove instance when distro and raft remove instances data. (#5131)
* Fix #4829, remove instance when distro and raft remove instances data.

* Remove synchronized
2021-03-18 09:53:48 +08:00
haoyann
fd57e08897
perfect KvStorage doc (#5112) 2021-03-16 16:54:17 +08:00
Pixy Yuan
ed1f244e8b
[ISSUE #5109] Fix HealthCheckCommonV2 sometimes will not finish the c… (#5110)
* [ISSUE #5109] Fix HealthCheckCommonV2 sometimes will not finish the checking flag.

* [ISSUE #5109] Add a warning log to a maybe-unreachable code at tcp check processor.
2021-03-16 16:53:30 +08:00
JackSun-Developer
bb9e37491f
[ISSUE #4983] Add unit tests to package com.alibaba.nacos.naming.core.v2.service in nacos 2.0 (#5107) 2021-03-16 09:49:59 +08:00
Pixy Yuan
e6402bc2a8
[ISSUE #5087] Enabled healthy protection threshold when pushing instance data. (#5088) 2021-03-12 17:48:47 +08:00
杨翊 SionYang
8a4b885fd6
Use hook to monitor and report push result. (#5091)
* Add subscribe count monitor.

* Use hook to monitor and report push result.

* Fix ip count monitor will become negative number
2021-03-12 17:48:14 +08:00
Pixy Yuan
8bc49c39fc
[ISSUE #5070] Fix catalog instance listing, make selectInstancesWithHealthyProtection isolated. (#5085) 2021-03-12 14:49:07 +08:00
Pixy Yuan
4acb6957f8
[ISSUE #5080] Fix health checker pre-start logic. (#5081) 2021-03-12 14:47:17 +08:00
haoyann
25a8bf696b
[ISSUE #4936]Enhance the message when NamingKvStorage#get error (#5077)
* Enhance the message when NamingKvStorage#get error

* enhance get and delete operation
2021-03-12 10:51:35 +08:00
Pixy Yuan
85942358ba
[ISSUE #5067] Listing instances and marked as healthy state when heal… (#5069)
* [ISSUE #5067] Listing instances and marked as healthy state when healthy protection threshold reached.

Whatever state the instance is.

* [ISSUE #5067] Fix code formatting.
2021-03-10 16:28:22 +08:00
Pixy Yuan
5c8559b8ba
[ISSUE #5054] Support naming instance list with healthy protection using service.protectionThreshold. (#5055)
* [ISSUE #5054] Support naming instance list with healthy protection using service.protectionThreshold.

* [ISSUE #5054] Fix code formatting.
2021-03-09 11:11:40 +08:00
KomachiSion
cdc7b67292 Fix verify callback build error. 2021-03-08 18:01:10 +08:00
KomachiSion
ff0838268a Fix distro client verify return error code problem. 2021-03-08 17:48:54 +08:00
赵延
b1c39a6354
[ISSUE-#4306] StringJoiner should consider '@@'. (#5022)
* StringJoiner should consider '@@'.

* StringJoiner should consider '@@'.
2021-03-08 11:43:26 +08:00
杨翊 SionYang
eb36581c2c
Refactor and enhance for client distro protocol (#5017)
* Distro check dataStorage status before send verify data.

* Add source server address info for distro verify.

* Refactor Distro verify task.

* Refactor Distro client verify task
2021-03-05 11:45:56 +08:00
KomachiSion
328f905cb3 Fix Unit test error 2021-03-04 19:33:49 +08:00
Pixy Yuan
cab401d5b6
Fix #5001. Returns empty list when service has no subscribers. (#5004) 2021-03-04 18:54:05 +08:00
杨翊 SionYang
121b07be7d
Single push to client when client subscribe service. (#4998) 2021-03-03 17:59:01 +08:00
杨翊 SionYang
5c7c28e191
For #4989, fix throws NPE when some metadata value is null. (#4994) 2021-03-03 15:08:16 +08:00
杨翊 SionYang
99cb98d1cf
For #4987, Fix throw exception when build ClientInfo with empty user-agent. (#4993) 2021-03-03 14:32:28 +08:00
JackSun-Developer
02195ef00b
Add unit tests for package com.alibaba.nacos.naming.core.v2.client.impl (#4978) 2021-03-01 16:41:32 +08:00
赵延
d8dbf540d2
fix one service init twice problem. (#4968) 2021-03-01 10:01:19 +08:00
KomachiSion
e1cbdc490e For checkstyle 2021-02-26 16:45:23 +08:00
JackSun-Developer
69413e3b73
Add unit tests for package com.alibaba.nacos.naming.core.v2.client.manager.impl (#4967) 2021-02-26 16:44:35 +08:00
KomachiSion
158f2b419c Fix serialize error problem 2021-02-26 14:13:43 +08:00
杨翊 SionYang
d9e21cfa78
Add ClientSyncAttributes to sync some client metadata to other server. (#4961) 2021-02-26 10:17:51 +08:00
JackSun-Developer
331f539822
Add EphemeralIpPortClientManager unit test (#4951) (#4951)
Co-authored-by: sunli <sunli@B-3GFAMD6M-0110.local>
2021-02-25 10:37:27 +08:00
杨翊 SionYang
4e455680f3
Add push unit test (#4939) 2021-02-24 14:40:03 +08:00
杨翊 SionYang
3550d8e5e4
Wrapper push data make executors can do operation. (#4938) 2021-02-24 14:12:12 +08:00
杨翊 SionYang
8bc443ea48
Add spi for PushExecutor to support extend (#4935) 2021-02-23 20:46:08 +08:00
杨翊 SionYang
65224006b2
Fix rpc push error for ipv6 (#4934) 2021-02-23 17:12:56 +08:00
杨翊 SionYang
b26acdc726
Fix NPE when client factory init (#4923) 2021-02-22 14:47:45 +08:00
杨翊 SionYang
2b4142d428
Add ClientFactory to extend client (#4922)
* Move Constants to constants package

* Add ClientFactory to extend
2021-02-22 14:33:06 +08:00
杨翊 SionYang
3af5c03c52
Fix double write NPE (#4886) 2021-02-05 14:02:24 +08:00
杨翊 SionYang
3a82d5d987
Add some enhancements (#4881)
* Add some enhancements

* Add tps monitor for naming push

* Add some enhancement for client
2021-02-05 10:15:31 +08:00
JackSun-Developer
9ce5501b8d
[ISSUE #3876][NA] failed to update serviceName: DEFAULT_GROUP@@prod-zipkin (#4864) 2021-02-05 09:16:13 +08:00
杨翊 SionYang
5626b2be1f
Add switch to close double write in 2.0.0 (#4845)
* Add close double write

* Add an async service check task when upgrading.
2021-02-01 11:19:19 +08:00
杨翊 SionYang
d7a38774a4
Adapt some naming openAPI (#4832)
* Adapt HealthController openAPI

* Adapt OperatorController openAPI

* Adapt all necessary openAPI in ServiceController
2021-01-29 15:00:05 +08:00
杨翊 SionYang
01ea27501e
Full support for registering custom instances (#4828)
* Move out `cluster` from extendInfo in InstancePublishInfo

* Fix unit test error

* Rename instanceId in instanceMetadata to metadataId

* Fix unit test

* Adapt 1.X client instance Id

* Full support for registering custom instances
2021-01-28 20:20:01 +08:00
杨翊 SionYang
c275fc310e
Fix #4788, Fix client id judgement error for ipv6 (#4815) 2021-01-28 12:03:08 +08:00
KomachiSion
1a2088cd69 Fix death loop when 2.0 restart 2021-01-27 20:33:42 +08:00
KomachiSion
8f94646bee Split double write task 2021-01-27 20:33:42 +08:00
KomachiSion
40dec33ff6 Add double write logic for downgrade 2021-01-27 20:33:42 +08:00
KomachiSion
cecf0c0893 Add double write logic for upgrade 2021-01-27 20:33:42 +08:00
赵延
2db2a8544d
[ISSUE-#4762] Naming health check thread num support user define it by self. (#4764)
* NAMING_HEALTH_EXECUTOR support user define it by self.

* promise less one thread to process the health check task.
2021-01-27 13:36:28 +08:00
杨翊 SionYang
a44bf67402
Add Http and MySQL health check. (#4750)
* Add Http health check.

* Add Tcp as ClusterMetadata default checker

* Fix console can update cluster metadata if port no change

* Add MySQL health check.
2021-01-19 19:30:02 +08:00
杨翊 SionYang
c9686a6ae4
Support update cluster metadata. (#4733) 2021-01-18 17:41:45 +08:00
杨翊 SionYang
24850682e0
Sync health check status for persistent instance. (#4728)
* Sync health check status for persistent instance.

* For checkstyle
2021-01-18 15:09:09 +08:00
KomachiSion
fd06b5a7b6 Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
# Conflicts:
#	address/pom.xml
#	api/pom.xml
#	auth/pom.xml
#	client/pom.xml
#	cmdb/pom.xml
#	common/pom.xml
#	config/pom.xml
#	consistency/pom.xml
#	console/pom.xml
#	core/pom.xml
#	distribution/pom.xml
#	example/pom.xml
#	istio/pom.xml
#	naming/pom.xml
#	pom.xml
#	sys/pom.xml
#	test/pom.xml
2021-01-18 10:32:57 +08:00
xbj
d462eaa1b7
[ISSUE #3922] method createServiceIfAbsent in ServiceManager require sync (#4713)
* fix_#3922

method createServiceIfAbsent in ServiceManager require sync #3922

* roll back createServiceIfAbsent
2021-01-18 09:19:12 +08:00
赵延
fac3bd4bcf
Merge pull request #4700 from horizonzy/fix-4699
[ISSUE-#4699] Fix metadata batch operation may delete instance problem.
2021-01-15 21:12:57 +08:00
杨翊 SionYang
1bd67269cd
Use revision to set version and upgrade to 1.4.2-SNAPSHOT (#4711)
* Use revision set version

* Use revision set version

* Add flatten plugin
2021-01-15 14:37:47 +08:00
horizonzy
1c7780248e delete comment. 2021-01-14 16:43:05 +08:00
horizonzy
6cdead245e fix metadata batch operation may delete instance problem. 2021-01-14 16:32:15 +08:00
杨翊 SionYang
67eb36976e
Upgrade to 1.4.1 (#4695) 2021-01-14 11:36:57 +08:00
KomachiSion
995dce0bc0 Solve conflict from develop 2021-01-13 16:08:54 +08:00
KomachiSion
902f501fac Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
#	client/src/main/java/com/alibaba/nacos/client/naming/core/HostReactor.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java
#	config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java
#	naming/src/main/java/com/alibaba/nacos/naming/push/ClientInfo.java
#	naming/src/main/java/com/alibaba/nacos/naming/push/PushService.java
2021-01-13 15:53:50 +08:00
liaochuntao
2eac367970 fix: fix Jraft WriteRequest type problem. 2021-01-13 14:39:00 +08:00
杨翊 SionYang
998947315e
Add server identity to replace user-agent white list. (#4683) 2021-01-13 14:12:56 +08:00
Catcher Wong
7b81ea666e
naming push service support CSharp client (#4670) 2021-01-12 19:45:56 +08:00
杨翊 SionYang
4370882813
Add auth for naming rpc api and ix some bugs for 2.0.0 (#4675)
* Add auth for naming rpc api

* Fix Callback do not execute problem

* Fix client distro do not retry problem.
2021-01-12 16:37:08 +08:00
nov.lzf
6027d36222
client use same executor during different connection;metrics count bugfix.;recommend server check (#4659)
* client use same executor during different connection.

* metrics count bugfix.

* recommend server check

* remove rsocket ;add client metrics

* add client metrics to get cache value

* rpc tps control basic api submit.

* check style ,pmd fix.
2021-01-11 14:11:32 +08:00
catcherwong
52931abe73 Add CSharp Client 2021-01-10 16:50:41 +08:00
杨翊 SionYang
c66aba5f4d
Remove service cache data when service removed (#4656)
* Fix instance count no decrement problem

* Dispatch naming event to difference Publisher

* Remove service cache data when service removed
2021-01-09 13:19:12 +08:00
KomachiSion
11210c057d Merge remote-tracking branch 'upstream/develop' into 2.0.0-sync-dev 2021-01-07 17:09:30 +08:00
杨翊 SionYang
ad1a6d1b65
Add some metrics and logs (#4649)
* Fix service metadata update failed problem.

* random connect to server

* Add some metrics and log for service and client

* Add some metrics and log for naming task worker
2021-01-07 17:04:26 +08:00
杨翊 SionYang
ac73e7395e
Support register persistent instance and tcp health check (#4636)
* Fix client beat error in cluster mode

* Add health check for persistent ip port client

* Add health check for persistent ip port client

* Fix client beat error in cluster mode

* Migrate default TCP health check v1.x to v2.x

* Fix unit test error

* Fix dump persistent client snapshot error problem

* Fix load persistent client snapshot error problem

* Fix subscribe error for client id
2021-01-06 16:12:37 +08:00
mai.jh
2af6784f55
for #4594,#4594 Fix IO close problem. (#4606) 2020-12-31 15:48:26 +08:00
KomachiSion
7f3a17c620 Solve conflict with develop branch. 2020-12-31 14:24:41 +08:00
KomachiSion
bdacd0958d Merge remote-tracking branch 'upstream/develop' into 2.0.0-sync-develop
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java
#	core/src/main/java/com/alibaba/nacos/core/listener/StartingApplicationListener.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/CatalogController.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java
2020-12-31 11:48:52 +08:00
杨翊 SionYang
d1fcfd4529
Support persistent service and instance register/deregister (#4608)
* Remove unused foreach in ClientManager

* Revert some uncompleted refactor for ClientManager

* Refactor ClientOperationService

* Fix error dependency

* Fix serialize problem for persistent instance

* Refactor client id generation for IpPortBasedClient

* Support persistent service and instance register/deregister

* enhance the speed shutdown server
2020-12-31 11:36:57 +08:00
liaochuntao
6e0a94be3e
refactor: 持久化实例 (#4603) 2020-12-30 13:58:55 +08:00
杨翊 SionYang
9b9d1cb565
Execute Distro transport asynchronously. (#4595) 2020-12-29 18:09:20 +08:00
杨翊 SionYang
00d4363ad0
Do not retry distro sync again if member has removed. (#4586) 2020-12-29 13:51:26 +08:00
杨翊 SionYang
9d1fb57794
Refactor SubscribeManager with NamingSubscriberServiceAggregationImpl (#4578) 2020-12-26 15:58:59 +08:00
赵延
f486561bc9
Fix some typo and code enhance. (#4550)
* fix some typo and code enhance.

* shared grpcExecutor between GrpcSDKServer and GrpdClusrerServer

* code style format

* fix compile problem

* code style format
2020-12-24 20:16:22 +08:00