Commit Graph

1297 Commits

Author SHA1 Message Date
aofall a534350541
fix: Support disable Curator EnsembleTracker in ServiceDiscovery (#14285) 2024-06-05 11:39:27 +08:00
Lee hong 189d76be5d
check child is json or not in zookeeper.it will be continue if not. (#14166)
* check child is json or not.it will be continue if not.

* try to save code format problem.

* child could be json array.so child could start with { or [.

* fix the problem of it will continue some message to make zookeeper outtime.

* try to continue the string without warn.

* format the code.

* catch the exception of JSONException.

* try to fix java.lang.NoClassDefFoundError because of JSONException.

* add isJson method and implement it in JSON.

* implement the checkJson method and use it in ZookeeperRegistry

* format the code.

* add some test case.

* format the code.

* format the code.

* format the code.

* format the code.

* format the code.

* format the code.

* format the code.

* format the code.

* format the code.

* add some information.

* format the code.

* add human friendly comment.

* format the code.

* format the code.

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: Jermaine Hua <crazyhzm@gmail.com>
2024-05-21 11:36:53 +08:00
TomlongTK dfd135eb95
Fix the problem of multiple namespaces in MetadataReport (#13971)
* Fix the problem of multiple namespaces in MetadataReport

* refine

* Remove registry config setting

* Add some unit tests

* Revert getId

* Fix cache key
2024-05-08 14:09:08 +08:00
zrlw 8863604619
trim application name of old mapping content (#14133)
* trim application name of old mapping content

* trim and filter out empty name at ServiceNameMapping#getAppNames

* remove unused import
2024-05-08 11:59:26 +08:00
Wang Chengming 0a1ad55bff
compatible service discovery, export noting suffix servicename, eg: ${interface}:${version} (#14096)
compatible service discovery, export noting suffix servicename, eg: {interface}:${version}

code format

compatible service discovery, export noting suffix servicename, eg: {interface}:${version}

Co-authored-by: 呈铭 <beck.wcm@antgroup.com>
2024-04-22 19:42:47 +08:00
jean pierre Lerbscher 00812ce41c
Fix Sonar issue s2293 The diamond operator ('<>') should be used (#14005) 2024-03-29 11:40:06 +08:00
foghost a342f67dc0
fix async method call ClassCastException error (#13932) 2024-03-19 09:38:06 +08:00
J.Son 6dbac54b39
'blacklist' renamed to 'blocklist' (#13800) 2024-02-26 17:11:10 +08:00
Albumen Kevin 714e076284
Revert "DefaultProviderFirstParams add THREADPOOL_KEY" (#13648) 2024-01-13 18:16:49 +08:00
funkye 1d9535518e
DefaultProviderFirstParams add THREADPOOL_KEY (#13637)
* DefaultProviderFirstParams add THREADPOOL_KEY

* DefaultProviderFirstParams add THREADPOOL_KEY

* DefaultProviderFirstParams add THREADPOOL_KEY

* format
2024-01-13 01:48:14 +08:00
Y 05d44abe93
add registryUrl parameters from multipleRegistryUrl #13603 (#13633)
Co-authored-by: shaowei ye <yesw@broada.com>
2024-01-10 19:23:24 +08:00
namelessssssssssss fed4755cd6
Fix dubbo.tag override by consumer.tag in NacosRegistry (#13592) 2024-01-02 10:22:13 +08:00
TomlongTK 9df0d154a5
Customize parameters for interface-level registration (#13304) 2023-12-20 21:21:49 +08:00
Owen.Cai d69ae9861b
fix listener hash code error (#13408)
Co-authored-by: caizhenqiu <caizhenqiu@visioninsight.com>
2023-11-29 21:04:42 +08:00
huazhongming 730695a7a2
[3.2]Use spotless to format the code (#13320)
* Use spotless to format the code

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

* Support develop with JDK 21

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

---------

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-11-07 15:40:13 +08:00
阿魁 c373ce10fe
Added scheduler closure check during RegistryNotifier notify. (#13273)
* Added scheduler closure check during RegistryNotifier notify.

* Added logs.

* Updated logs.

* Updated logs.

* Updated logs.

* Add URL.
2023-11-06 16:46:04 +08:00
Albumen Kevin 06e9410f68
Fix MappingListener override in ServiceDiscoveryRegistry (#13277) 2023-11-01 19:16:19 +08:00
Albumen Kevin 6b634b7650
Fix service key params when remove service instance listener (#13272) 2023-10-27 17:46:19 +08:00
zhengkaifor be15772ec3
feat: multiple支持 service discovery模式 (#13137)
* feat: multiple支持 service discovery模式

* feat: 去除无用代码

* feat: review问题修改

* feat: Translate into english

* feat:还原无用改动

* feat:还原无用改动

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-10-20 15:42:41 +08:00
Albumen Kevin fc0f88f4f2
Fix MigrationRule changing when load consumer default value (#13237) 2023-10-20 15:32:01 +08:00
TomlongTK a45f50d8ac
Enhance application-level registry notify message (#13172)
* Enhance application-level registry notify message

* Recovery complete message, because it works in single thread.
2023-10-10 10:06:18 +08:00
Albumen Kevin b2e081e513
Update zookeeper registry dependencies (#13150)
* Update zookeeper registry dependencies

* Fix compile

* Update zookeeper registry dependencies
2023-10-08 10:07:35 +08:00
TomlongTK c12a57eb3c
enhance application discovery toString (#12953) 2023-08-29 16:14:52 +08:00
Albumen Kevin 972a0814b9
Fix Spring Listener order (#12911) 2023-08-16 14:30:52 +08:00
Albumen Kevin 1dd248affa
Service offline speedup (#12869)
* Service offline speedup

* Service offline speedup
2023-08-09 17:11:16 +08:00
wxbty 0add70e3f5
Support multi registries metrics key (#12582)
* init

* fix

* fix

* fix

* fix

* add licence

* fix testcase

* fix testcase

* lowcase

* remove unuse

* opt notify&directory

* fix post&finish

* revert name

* move registerMetadataAndInstance

* move metrics from

* remove some unuse

* remove unuse

* fix style

* fix style

* remove unuse

* remove unuse

* fix default&& move post

* add multi registry lables for subscribe

* fix

* fix url

* fix url

* Fix uts

* add registry key for directory

* Compatible with empty registry keys

* remove unus

* Support registry type

* Fix attachment

* Code enhancement

* Fix registry key

* Fix service discovery notify

* fix

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-07-31 13:44:46 +08:00
Albumen Kevin 22acf36800 Merge branch 'apache-3.1' into apache-3.2 2023-07-29 20:50:00 +08:00
xieshouyu 2488b08d3e
bugFix/fix is available timeout (#12796)
* 1、Fix the issue of timeout for all calls to the isAvailable method after the zookeeper is disconnected
2、Move the isAvailable of NopServiceDiscovery into its own implementation class

* 1、Fix the issue of timeout for all calls to the isAvailable method after the zookeeper is disconnected
2、Move the isAvailable of NopServiceDiscovery into its own implementation class

* 1、submit empty after format error

* 1、move destory to implementation class

* 1、update comment description
2023-07-29 20:12:51 +08:00
xm101 9ee5bf6efc
Update StandardMetadataServiceURLBuilder.java (#12684)
修复SIDE_KEY设置被覆盖问题
2023-07-29 19:25:47 +08:00
Albumen Kevin 9837cfbb0b
Fix register failed if re-register service discovery (#12795) 2023-07-26 11:10:54 +08:00
胡俊 7c7f3db772
multiple registration cannot be achieved when nacos application level registration (#12731)
* fix nacos register bug

* fix nacos register bug

* fix nacos register bug

* check style

* ServiceDiscoveryRegistryFactory update
2023-07-25 21:17:29 +08:00
qijun4tian c54e1b63f9
fix dubbo provider lose when zk restart (#12646) (#12740)
Co-authored-by: 祁军 <junqi@wisedu.com>
2023-07-19 14:55:18 +08:00
stone lion 1b84d1185b
fix tag key been deleted (#12726) 2023-07-16 16:11:00 +08:00
stone lion 68e624f764
Fix anyMethodParameter using consumer first. (#12640) (#12641) 2023-07-14 18:02:41 +08:00
TomlongTK 78ca5e523c
refactor ServiceInstancesChangedListener equals and hashcode method (#12547)
* Remove listeners from the equals and hashcode methods of ServiceInstancesChangedListener

* equals retain listeners
2023-07-13 20:54:38 +08:00
Albumen Kevin d2eb2ba3d7
Performance opt (#12680) 2023-07-11 14:42:33 +08:00
Albumen Kevin c05127e360
Pretty invokers toString format (#12618) 2023-06-29 19:34:37 +08:00
Albumen Kevin f8dfbb0ccc
Skip catch SkipFailbackWrapperException in NacosRegistry (#12594) 2023-06-26 19:05:51 +08:00
Albumen Kevin 680481ccdf
Change retry times to forever (#12593) 2023-06-26 12:59:18 +08:00
Albumen Kevin e79e0214cb
Enhance register type of ServiceConfig (#12583)
* Enhance register type of ServiceConfig

* fix else
2023-06-22 14:30:06 +08:00
Albumen Kevin 3b7934f512
Fix registry repeat export same service (#12578)
* Fix registry repeat export same service

* fix uts

* Fix export

* Fix export
2023-06-21 11:29:54 +08:00
Albumen Kevin 25c2b3808a
Disable register if registry disable register (#12579)
* Disable register if registry disable register

* Fix tag

* Fix tag
2023-06-21 09:23:40 +08:00
Albumen Kevin 8ad792c287
Add transient to some overrided field (#12570) 2023-06-19 21:29:24 +08:00
Albumen Kevin 3160602072
Rename getModelEnvironment to modelEnvironment (#12551) 2023-06-19 09:34:06 +08:00
Albumen Kevin 5f875ea958
Fix Registry Notification use same event time (#12556) 2023-06-19 09:33:36 +08:00
Ken Liu dd94c1561a
fix router match condition (#12491)
* fix router match condition

* fix ut compilation

* add null check
2023-06-12 20:48:03 +08:00
wxbty bde608ec3c
fail fast when protocol exp (#12361)
* fail fast when protocol exp

* use hasExtension

* Adjust the spi detection position

* remove unuse

* remove unuse
2023-06-12 20:47:02 +08:00
Albumen Kevin 8a2dffd55e
Add some nacos connection logs (#12494) 2023-06-12 10:10:19 +08:00
Albumen Kevin ba308219c6
Register services after module started (#12450) 2023-06-07 13:49:49 +08:00
Albumen Kevin 6777c073a1
Support disable 2.6.x url configurators (#12332) 2023-05-16 23:26:46 +08:00