李晓双 Li Xiao Shuang
0348014c17
[ISSUE #9490 ] Optimize datasource name configuration reading ( #9491 )
...
* Optimize data source name configuration reading
* Optimize data source name configuration reading
* Compatible with old and new datasource platform read
* Compatible with old and new datasource platform read
* Compatible with old and new datasource platform read
* Compatible with old and new datasource platform read
* fix unit test
* fix unit test
2022-11-08 09:22:33 +08:00
无处不在
21683957e5
[ISSUE #9415 ]update setExternalStorage logic,support more db check,add 8 count unit test ( #9470 )
...
* [impr]update setExternalStorage method logic,support more db check,add 8 count unit test method
* update comment desc
2022-11-07 17:17:52 +08:00
hth
5ea747b863
[ISSUE #8619 ] add CustomEnvironmentPlugin ( #8619 ) ( #9296 )
...
* [ISSUE #8619 ] add CustomEnvironmentPlugin (#8619 )
* feature issue #8619 .
* custom properties.
* reformat codes and author fix
* remove customEnvironment to nacos-core and Complete test
* add license
* pmd fix
* code optimization
* conflict fix
2022-11-04 15:24:25 +08:00
李晓双 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
杨翊 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
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
杨翊 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
Yann
c191d7a238
fix jraft npe log ( #9271 ) ( #9272 )
2022-10-10 11:46:49 +08:00
杨翊 SionYang
45165f7c06
[ISSUE#8650] Make cluster/report both receive and send metadata. ( #9228 )
...
* cluster/report api return self information.
* Update metadata when received report response.
* Add UT for handle report member info response.
* For checkstyle.
2022-09-28 14:43:14 +08:00
jiaoja
45f38b5aeb
[ISSUE #9154 ] Solve the nullcheck of value previously dereferenced. ( #9157 )
...
* [ISSUE #9154 ] Solve the nullcheck of value previously dereferenced.
* [ISSUE #9154 ] Remove unused import.
2022-09-19 09:45:00 +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
5373513331
update NacosClusterControllerV2 ( #9066 )
2022-09-02 15:39:28 +08:00
Weizhan Yun
0ac96e1602
[ISSUE #9014 ] performance optimization--refacte TpsMonitorPoint ( #9021 )
...
* performance optimization
* fix check style
* fix test unit
* fix test unit for `getTimeFormatOfSecond` method.
* fix unit test for LimiterTest.
* fix error usage case for asserEquals method;eliminate interactions between test methods
2022-08-26 09:57:34 +08:00
chenhao26
db72e4f9c1
fix LookupFactoryTest ut / ci ( #8985 )
...
* fix ci
* run ci
* check cla report
* check style
2022-08-17 20:39:42 +08:00
liqipeng
e97b695db2
[ISSUE #8345 ] Check cluster name in server-side when registerInstance ( #8724 )
...
* Check cluster name in server-side when register ephemeral instance
* Check cluster name in server-side when register persistent instance
* add unit test for register instance
* add unit test for NamingHttpClientProxy
* remove catching NacosException to throw NacosRuntimeException
2022-07-25 09:57:43 +08:00
Oliver
f13016af23
[Polish] Add serialVersionUID ( #8733 )
...
* Add serialVersionUID
* checkstyle
* Auto generate id
2022-07-19 10:30:26 +08:00
MajorHe1
e7498d7a4c
[ISSUE #8707 ] add distroKey log output when distro sync failed. ( #8708 )
...
* [ISSUE #8707 ] add distroKey log output when distro sync failed.
* append toString() method to log getDistroKey()
Co-authored-by: Oliver <wqdyxnbd@163.com>
Co-authored-by: Oliver <wqdyxnbd@163.com>
2022-07-08 11:53:16 +08:00
杨翊 SionYang
7bb1e90549
Remove leave nacos server nodes API temporarily. ( #8700 )
2022-07-07 19:54:30 +08:00
无处不在
fcc9b0aef9
[fix]Fix Word Spelling 'Naocs' in RaftExecutor NameThreadFactory ( #8673 )
2022-07-07 10:58:12 +08:00
杨翊 SionYang
5aabba13c9
[ISSUE#8099] Fast failure for distro sync task and verify task if cluster disconnect. ( #8693 )
...
* Fast failure for distro sync task and verify task if cluster disconnect.
* Fix UnnecessaryStubbingException
2022-07-07 10:41:23 +08:00
xiaochangbai
ae1a1bec93
optimize: port offset constant ( #8652 )
...
* optimize: port offset constant
* optimize: code formatting
* remove extra spaces
2022-07-01 10:00:42 +08:00
liqipeng
f3d134d2c2
[ISSUE #8594 ] makes distro data load timeout can be configured. ( #8595 )
...
* makes distro data load timeout can be configured.
* specify nacos.core.protocol.distro.data.load.timeoutMs default 30s
2022-06-24 15:06:47 +08:00
Karson
e5cfd23186
Use SPI optimize StartingApplicationListener ( #8547 )
...
* Use SPI to load NacosApplicationListener
* add License des
* add License des
* add License des
2022-06-17 11:10:11 +08:00
Cherish 蔡梦缘
703925a84f
feat( #8472 ): [Dependency Governance] Remove useless dependencies. ( #8472 ) ( #8473 )
2022-06-13 10:31:11 +08:00
david6969xin
a6e1ff9508
[ISSUE#8485] (module-core) replace the type specification in this constructor call with the diamond operator ("<>") ( #8557 )
2022-06-13 10:09:05 +08:00
liqipeng
4c23846cd9
fix #8169 : Upgrade spring-boot version to 2.6.6 ( #8184 )
2022-06-06 11:28:32 +08:00
Cherish 蔡梦缘
95f3d115d8
[ISSUE #8471 ] has no bolt, remove bolt properties ( #8475 )
...
[clean code]: has no bolt, jraft-core exclude bolt and use rpc-grpc-impl. (#8471 )
2022-06-01 14:39:32 +08:00
david6969xin
ceb7fa078a
[ISSUE#8358] make this anonymous inner class a lambda (core module) ( #8387 )
2022-05-18 10:25:55 +08:00
lpaz010
f21b332f98
reduce magic value ( #8395 )
2022-05-18 10:16:33 +08:00
yanhom
d89076b3e6
Support for ibm J9 ( #8325 )
...
* support for ibm J9
* format code, add newline at end of file
* format code
* use nacos code style format codes
2022-05-13 11:03:01 +08:00
onewe
8980a960aa
[ISSUE #7487 ] Add generics for the CacheBuilder. ( #7490 )
2022-04-27 13:52:49 +08:00
Cherish 蔡
b718cbf8f2
feat( #5346 ): reset raft cluster ops for no leader, use JRaft Api resetPeers. ( #8220 )
2022-04-22 16:49:16 +08:00
onewe
19185cb338
[ISSUE #8161 ] Icon-font-path and font-custom-path use relative path instead of absolute path ( #8172 )
...
- banner.txt use `server.servlet.contextPath` instead of nacos
Close #8161
2022-04-18 11:27:39 +08:00
Cherish 蔡
b9dfe3ff9b
V2.x fix( #6273 ): server/leave, add end conditions for cluster notifications. ( #8133 )
...
* fix(#6273 ): server/leave, add end conditions for cluster notifications.
* fix(#6273 ): server/leave, add end conditions for cluster notifications.
2022-04-13 10:25:31 +08:00
onewe
d789114cfc
[ISSUE #8092 ] Destroy the thread pool of TpsMonitorManager when the nacos is shutting down ( #8105 )
...
- add destroy method
Close #8092
2022-04-11 10:25:32 +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
chaos
13719df7a0
Improve the code readability of TimerContext replace if with switch case
2022-03-29 09:36:05 +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
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
赵延
cc549cbac7
follower state machine ignore read operation. ( #7989 )
2022-03-25 15:07:42 +08:00
Pixy Yuan
2d0a8add41
Support cluster grpc client to set pool size ( #7993 )
...
* [ISSUE #7992 ] Support ThreadUtils preset processors count by property or env.
* [ISSUE #7992 ] Add thread pool params for cluster grpc client.
2022-03-25 15:04:12 +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
94f894fb80
[develop] add request type field at the head of task data, exchange parse order between Log and GetRequest ( #7871 )
...
* add request type field and exchange Log and GetRequest parse order
* add unit test
2022-03-10 09:54:22 +08:00
胡俊
fdf90133a2
[ISSUE#7886]Feature package scan ( #7895 )
...
* for #7886
* nacos style
* nacos style
* code style
* .
* scan nacos style
* class reader
* class reader
* class reader
* class reader
* add comment
* update dependency
* update dependency
* rat update
check style update
* package change
* pdm exclude
* pdm update
* comment
* comment
* change pkg final
* code structure update
* code style
* code style update
2022-03-08 20:11:21 +08:00
onewe
eaa0efd976
[ISSUE#7902] Optimize some codes for ServerLoaderController ( #7903 )
...
- some type arguments are replaced with <>
- field injection is replaced with constructor injection
- set hash map default initialCapacity
- sdkConCount string variable change to constants
Close #7902
2022-03-07 19:58:32 +08:00
onewe
8098de7baf
[Optimize] use template patten to refactor AbstractMemberLookup#destroy method ( #7880 )
...
- add doDestroy method
- refactor destroy method for other subclass of AbstractMemberLookup
2022-03-04 17:59:51 +08:00