Commit Graph

1200 Commits

Author SHA1 Message Date
李晓双 Li Xiao Shuang
e8d71359d3
Modify the method modifier of NacosApplicationListener to default (#9460) 2022-11-04 13:54:06 +08:00
Weizhan Yun
506bc26f4d
[ISSUE #9393] 设置线程为守护线程,保证在main线程推出时应用程序能过正常关闭。 (#9396)
* 设置线程为守护线程,保证在main线程退出时应用程序能过正常关闭。

* graceful shutdown naming executetask engine.
2022-11-03 13:44:00 +08:00
KomachiSion
f56dedc7fe Fix sync connection client not removed. 2022-10-27 12:11:06 +08:00
KomachiSion
8410fbccf3 Merge remote-tracking branch 'upstream/2.2.0' into asoc2022_issue#8461
# Conflicts:
#	config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java
2022-10-25 14:52:32 +08:00
Liu Yixiao
03345fd923
[ISSUE #8461] Enhance Nacos monitor observability system (#9038)
* Enhance MetricsMonitor with several new metrics

* Add config read and write rt

* Add ServiceEvent publisher queue size

* Add fuzzy search count

* Add naming subscriber and publisher count with v1 or v2 version tag

* Add config subscriber count with v1 or v2 version tag

* Add pending push task count and empty push count metrics

* collect pending push task count by scheduled task

* add unit test for increment metrics in NacosMonitorPushResultHook

* Add topn counter container and topn config change

* Create private MeterRegistry for config change

* Add scheduled clear for config change count, add removeAll for TopnCounterMetricsContainer

* Add topn service change

* Reconstruct metrics monitor with NacosMeterRegistryCenter.

* divide globalRegistry to different modules' CompositeMeterRegistry

* Add dynamic meters refresh service for config and naming module

* fix unit test

* Add try catch when init NacosMeterRegistryCenter
2022-10-25 11:31:29 +08:00
KomachiSion
696d489423 Merge remote-tracking branch 'upstream/2.2.0' into 2.2.0-summer#8312
# Conflicts:
#	plugin/pom.xml
2022-10-24 15:37:47 +08:00
杨翊 SionYang
7a23c56822
[ISSUE#7930] 2.2.0 remove some deprecated codes (#9368)
* Remove double write switch and upgrade from 1.X switch.

* Remove IFilterConfig.java

* Remove some deprecated constants and methods

* Remove some deprecated classes in nacos-core

* Remove some deprecated config

* Remove some deprecated codes in naming module

* Remove some deprecated codes in sys module

* Fix unit test

* Try to make UdpConnectorTest pass more easier.
2022-10-21 17:44:26 +08:00
KomachiSion
f4438ac202 Follow 2.2.0 branch. 2022-10-21 15:33:04 +08:00
KomachiSion
aa6816b69f Merge remote-tracking branch 'upstream/2.2.0' into summer2022_issue#8308
# Conflicts:
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/InstanceControllerV2.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/ServiceControllerV2.java
#	naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java
2022-10-21 14:16:18 +08:00
陈浩 Nineteen
83855da734
buf fix ip count metrics (#9355)
* buf fix ip count metrics

* run ci

* run ci
2022-10-21 09:26:20 +08:00
胡俊
0bd589cb6d
[ISSUE#8857] collect client info (#9202)
* collect client info #8857

* collect client info #8857

* collect client info #8857

* collect client info #8857

* collect client info #8857

* collect client info #8857
2022-10-19 09:40:34 +08:00
杨翊 SionYang
b1ac88be78
[ISSUE#8481] Add Trace Event SPI for Naming. (#9336)
* Add Trace plugin spi.

* Add NacosCombinedTraceSubscriber

* Subscribe NamingTraceEvent when start up cluster.

* Fix test error.
2022-10-18 09:30:37 +08:00
KomachiSion
6eae075a48 Solve conflict. 2022-10-17 19:23:13 +08:00
KomachiSion
22169055ed Merge remote-tracking branch 'upstream/develop' into 2.2.0
# Conflicts:
#	naming/src/main/java/com/alibaba/nacos/naming/core/Cluster.java
2022-10-17 19:17:31 +08:00
胡俊
0834641825
[ISSUE#9323]1.x http接口服务名校验问题 (#9324)
* 1.x http接口服务名校验问题

* 1.x http接口服务名校验问题 for #9323
2022-10-14 14:34:50 +08:00
Karson
a78ee54007
[ISSUE #6876] Concurrent instance deregiste NullPointerException (#9287)
* fix issue #6876 .

* reset properties.
2022-10-10 15:20:17 +08:00
Pixy Yuan
9c771cf2c3
[ISSUE #9277] publisherIndexes clean the service key when no instances anymore. (#9278) 2022-10-10 09:51:15 +08:00
杨翊 SionYang
f272c36df7
[ISSUE#9210] ConnectionBasedClient support add revision (#9239)
* ConnectionBasedClient support add revision

* getRevision when get verifydata.
2022-09-29 15:55:43 +08:00
DongYafei
94d812a269
fix api result (#9237) 2022-09-29 10:39:23 +08:00
Pixy Yuan
af22d35d6f
[ISSUE #9230] Fix missing dependency between event publisher and subs… (#9231)
* [ISSUE #9230] Fix missing dependency between event publisher and subscriber triggered on snapshot loading.

* [ISSUE #9230] Fix codestyle.

* [ISSUE #9230] Fix missing dependency between event publisher and subscriber triggered on persistent clients' snapshot loading.

* [ISSUE #9230] Fix import.
2022-09-29 09:42:03 +08:00
Pixy Yuan
04fe7eab2f
Support client hash revision for DISTRO (#9214)
* [ISSUE #9210] Using hash as ephemeral clients' revision for DISTRO verification.

* [ISSUE #9210] Improve performance of ephemeral client hash calc.

* [ISSUE #9210] Remove calculation for ephemeral client's subscribers.

* [ISSUE #9210] Persist and sync revision for clients.

* [ISSUE #9210] Improve hash of ephemeral client.

* [ISSUE #9210] Improve performance of hash calc for clients.

* [ISSUE #9210] Make distro verification compatible with zero revision from old servers.

* [ISSUE #9210] Log clientId when VERIFY-FAILED.

* [ISSUE #9210] Fix long class cast exception to REVISION.

* [ISSUE #9210] Just renew clients when verify v2 clients on v1 mode.

* [ISSUE #9210] Add UTs for ephemeral client verification.

* [ISSUE #9210] Fix codestyle.

* [ISSUE #9210] Fix IpPortBasedClientTest.

* [ISSUE #9210] Fix codestyle.

* [ISSUE #9210] Fix license.

* [ISSUE #9210] Fix ConcurrentHashSetTest cases to verify concurrent modification properly.

* [ISSUE #9210] Fix codestyle.
2022-09-28 13:56:33 +08:00
DongYafei
0032b8cfc1
Add ClientInfoControllerV2 (#9197)
* add ClientInfoControllerV2

* rename tenant to namespaceId
2022-09-23 14:11:59 +08:00
KomachiSion
a2b997f6a7 Fix print logs for NamingTraceEvent. 2022-09-22 13:58:18 +08:00
DongYafei
6501dd8ab6
update ServiceControllerV2, add OperatorControllerV2 (#9156) 2022-09-19 11:30:14 +08:00
hoErYu
0fdfd194f9
For #9106 Remove redundant judgment of WebUtils (#9107)
* For #9106 Remove redundant judgment of WebUtils

* For #9106 Remove redundant judgment of WebUtils

* For #9106 Remove redundant judgment of WebUtils
2022-09-15 11:34:36 +08:00
DongYafei
9439250e80
[ISSUE#8308] update InstanceControllerV2 for api 2.0 (#9111)
* update InstanceControllerV2 for api 2.0

* for InstanceControllerV2, add parameter groupName for api 2.0
2022-09-15 10:47:07 +08:00
lphx
0cf9c24086
remove redundant code (#9089)
* Modifying duplicate code,remove unnecessary if

* remove [instance.getIp() + ":" + instance.getPort()] and use the original Instance.toIpAddr() method,Because their implementation is the same
2022-09-07 16:46:42 +08:00
KomachiSion
6edddcf48e Remove some v1 persistent datum processor. 2022-08-29 20:19:06 +08:00
KomachiSion
e515915895 Fix UT. 2022-08-29 20:19:06 +08:00
KomachiSion
48695dab16 Remove Instance.java. 2022-08-29 20:19:05 +08:00
KomachiSion
77b3391e10 Remove Instances.java. 2022-08-29 20:19:05 +08:00
KomachiSion
8941086f5d Remove Service.java and Cluster.java. 2022-08-29 20:19:05 +08:00
KomachiSion
c727a38411 Remove old Service usage part1. 2022-08-29 20:19:05 +08:00
KomachiSion
e648586064 Remove ServiceManager usage part3 and remove ServiceManager.java 2022-08-29 20:19:05 +08:00
KomachiSion
2f5ebe0af9 Remove DistroServiceNameTagGenerator.java 2022-08-29 20:19:05 +08:00
KomachiSion
162f4224b3 Remove some unused classes in selector. 2022-08-29 20:19:04 +08:00
KomachiSion
99035c5ec1 Remove some unused classes in push. 2022-08-29 20:19:04 +08:00
KomachiSion
1fe89a31ec Remove some unused classes in pojo. 2022-08-29 20:19:04 +08:00
KomachiSion
5c9c35ab22 Remove some unused classes in misc. 2022-08-29 20:19:04 +08:00
KomachiSion
976f8a6729 Remove some old properties. 2022-08-29 20:19:04 +08:00
KomachiSion
db11e0bf5a Remove ClientBeatProcessor.java and ServiceStatusSynchronizer.java 2022-08-29 20:19:04 +08:00
KomachiSion
9b68e45c97 Remove ServiceManager usage part2. 2022-08-29 20:19:03 +08:00
KomachiSion
f28efe62e1 Remove double write task. 2022-08-29 20:19:03 +08:00
KomachiSion
28ddce8d56 Remove UpgradeJudgement.java 2022-08-29 20:19:03 +08:00
KomachiSion
7af6e869d7 Remove HealthCheckTask.java 2022-08-29 20:19:01 +08:00
KomachiSion
989922600c Remove EmptyServiceAutoCleaner.java 2022-08-29 20:18:49 +08:00
KomachiSion
49e12c8b8e Remove old raft classes 2022-08-29 20:18:49 +08:00
KomachiSion
6f58ebf0c2 Remove EphemeralConsistencyService.java 2022-08-29 20:18:49 +08:00
KomachiSion
9df2536a1e Remove DoubleWriteEventListener.java and DistroConsistencyServiceImpl.java 2022-08-29 20:18:48 +08:00
KomachiSion
bf0783c0e7 Remove ServiceManager usage part1. 2022-08-29 20:18:48 +08:00