Commit Graph

59 Commits

Author SHA1 Message Date
Albumen Kevin ea35f7ed5c Revert "refactor: migrate tracing core from boot-start to dubbo deployer (#12453)"
This reverts commit a613cae2
2023-06-20 10:02:30 +08:00
conghuhu a613cae2f3
refactor: migrate tracing core from boot-start to dubbo deployer (#12453)
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-17 19:54:12 +08:00
TomlongTK fa8e09201f
packable method extension (#12199)
* packable method extension

* support content-type

* packable method extension

* support content-type

* get packable factory type from configuration

* Add new SPI to dubbo-all(dubbo-distribution/dubbo-all/pom.xml in shade plugin) to being transformed

* At present, Use CONTENT_PROTO as content-type, while support customize content-type, need fix it

* remove unused import class

---------

Co-authored-by: longqiang02 <longqiang02@maoyan.com>
2023-04-28 10:55:01 +08:00
wxbty d6f9d8d38f
Configuration center metrics separate module (#12096)
* init config module

* remove old

* add pom

* add pom

* add in artifact

* use consts

* add comment

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-04-19 18:33:13 +08:00
suncairong163 912deb69a8
Feature/3.2 rest protocol provider (#11640) 2023-04-05 14:10:53 +08:00
wxbty 1435c23e92
Simplify event publishing (#11863) 2023-03-28 16:11:14 +08:00
wxbty 3f8a16f0ac
support exception process when service not found (#11088) 2023-03-23 19:50:11 +08:00
wxbty 06605365c5
splits qos-api pkg (#11853)
* init

* add licence

* fix path name

* add api for depall

* add bom pom

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-03-17 13:33:49 +08:00
Albumen Kevin 0a9b19c306
Exact to support dynamic cert (#11578) 2023-03-08 20:11:07 +08:00
Ken Liu 8c786cdf01
Add 'label match' support for override and tag rules (#11094) 2023-02-26 15:17:36 +08:00
wxbty c041fa1f93
Observability task: registration center (#11493) 2023-02-25 17:22:44 +08:00
jojocodeX 638b193c2c
dubbo-security Jackson error (#11622) 2023-02-23 15:07:38 +08:00
wxbty 671e0f8bb9
Observability task: metadata center (#11593)
* init metadata

* add pom

* add licence

* add licence

* remove unuse pom

* remove unuse pom

* remove unuse pom

* fix test

* fix test

* fix test

* fix pom

* use applicationModel

* remove unuse

* add test

* add push testcase

* add test case

* add test case

* add testcase

* rename

* opt

* debug

* fix testcase

* add pom

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-02-22 20:44:58 +08:00
suncairong163 02a59e2f40
3.2 consumer proxy invocation handler (#11108)
* add dubbo mvc feign client to support mvc remote call

* add dubbo mvc dispatcher servlet

* add dubbo mvc dispatcher servlet

* add   MvcDispatcherServlet  unit test

* add dubbo mvc feign client to support mvc remote call

* add dubbo mvc dispatcher servlet

* add Dubbo mvc Provider RPCInvocation create

* mvc remove unused code

* remove mvc unused test code

* remove unused code

* BodyProviderParamParser param type modify

* modify pom dependency version

* add  dubbo-metadata-api  dependency

* 新增依赖Jakarta支持 tomcat10

* ApplicationModel load  ParamParser

* ParamParser header & param map convert

* ParamParser header & param map convert

* 1 增加mvc协议
2 删除多余的resource包

* 1 增加mvc协议
2 增加netter server for http

* 重构 NettyHttpClient NettyHttpServer

* add path parse util & requestTemplate

* add mvc consumer http-connection

* mvc change  HttpConnectionPreBuildIntercept name and add SerializeBodyIntercept extend

* 1. 迁移mvc代码到rest下,合并http统一解析逻辑
2. 删除多余新增的remoting 调用模块

* 解决报错

* 1 抽象http 调用
2 改造rest调用风格

* 修改方法命名

* 修改方法名

* 删除多余的clients

* 还原restprotocol,逻辑迁移至新分支  3.2_refactor_rest_protocol

* add provider  PathMatcher

* add   ServiceRestMetadata  PathMatcher

* add   ServiceRestMetadata  PathMatcher

* add jax_rs and mvc annotation class constants

* refactor PathMatcher name

* add annotation class

* maintain rest metadata

* maintain  jax_rs and mvc annotation

* maintain  jax_rs and mvc annotation

* remove mvc module

* remove rest mvc code to code review

* add springmvc & rest annotation api module

* add springmvc & rest annotation api module

* add pathMatcher equal  test

* remove mvc module

* rest provider RPCInvocation build

* RPCInvocation build add dubbo-metadata-api dependency

* RestMethodMetadata add method to consumer service map

* RestMethodMetadata add method to consumer service map

* rest consumer HttpInvokeInvocationHandler

* rest consumer HttpInvokeInvocationHandler

* add dubbo-metadata-api dependency

* dubbo-rpc pom fix

* 移动模块

* 删除模块引用

* consumer metadata  resolve

* RestProtocol consumer

* RestProtocol consumer

* requestConvert adaptive

* JSON serializeObject to outputStream

* JsonUtilsTest  serialize & unSerialize

* ok http client

* http client reconstruct

* rest protocol BaseConvert

* rest protocol  ParamParser reconstruct

* rest protocol  addKeepAliveHeader

* requestTemplate isBodyEmpty()

* remove unused code

* create ConsumerParseContext

* body default byte[0]

* rest http message decode

* writeTextContent &  writeJsonContent & writeFormContent

* remove mvc & rest annotation module

* remove provider code

* fix some pr advice

* Add ASF license header for  newly created files

* move RestClientFactory  code  to dubbo-remoting-http

* exact  request convert code to a factory class

* modify  request convert code

* modify dubbo-dependencies-bom

* modify dubbo-remoting-http pom

* refactor spi  resource file  name

* dubbo-metadata-api remove
dubbo-configcenter-zookeeper dependency for
 cyclic reference

* newly create file add ASF

* fix compile error

* Enhance Code

* add rest protocol ConsumerParamParser

* some fix

* rest json content-type test

* RestProtocol merge doRefer code to protocolBindingRefer

* remove restInvoker

* rest protocol add JsonFactory to support custom

* rest protocol add JsonFactory to support custom

* jaxrs rest ParamNoAnnotatedProcessor  support fix

* add rest http message encode

* add rest http message encode

* rest okHttpClient requestBody fix

* rest jaxrs form content-type support

* RestProtocol protocolBindingRefer reconstruct

* RestProtocol protocolBindingRefer reconstruct  object to invoker & Invocation

* move RequestTemplate to remoting-http

* rest unit test

* add httpclient  & url connection rest client

* Enhance invocation

* enhance

* add ParameterTypesComparator  for metadataMap

* add ASF for new file

* Fix conflict

* Fix header

* fix import

* fix import

* fix import

* fix import

* fix import

* Fix json

* revert some change

* Remove jsonfactory

* Remove jsonfactory

* Simplify rest client

* Fix protocol

* fix codec

* tmp disable test

* rest metadata resolver add  interface judge

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* ADD TODO

* RESOLVE HTTP client java.net.SocketException: socket closed

* RESOLVE HTTP client java.net.SocketException: socket closed

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* fix some review advice

* fix some review advice

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* fix some review advice

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* URLConnectionRestClient getMessage

* remove unused import

* import fix

* code merge

* code merge

* code merge

* code merge

* code merge

* Fix conflicts

* change  restResult InputStream to bytes protect from  fd leak

* merge code

* Fix import

* Fix import

* Fix uts

* Remove unused code

* Fix logger

* Update okhttp version

* Update okhttp version

* rest protocol  add AnotherUserRestService service ut

* rest protocol  add String & byteArray codec

* Fix version

* Fix uts

* rest protocol  add XMLCodec

* stream release

* ServiceRestMetadata port change int to Integer

* service RestMetadata service map init

* xml codec change  for xxe

* Fix import

* code style

* code style

* Fix shade

---------

Co-authored-by: suncr <suncairong@moresec.cn>
Co-authored-by: Liujunjie <42363259+LiujunjieALiling@users.noreply.github.com>
Co-authored-by: junjie3.liu <junjie3.liu@ximalaya.com>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-02-22 14:02:16 +08:00
wxbty e780b3d5c1
Provides the public part of metrics data collection and export (#11522)
* init

* add licence

* update common func

* fix conflict

* add 2 new metaData

* fix testcase

* add param ignore

* revert some format

* fix refrence && remove listener spi

* opt collector spi

* opt collector spi

* opt collector spi

* fix sipi

* fix reflact-json

* fix reflact-json

* move module

* revert default collector

* add licence

* move default collector

* fix testcase

* add comment

* fix frame

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: wangxiaobin <wangxiaobin@cai-inc.com>
2023-02-16 14:56:19 +08:00
earthchen 502b4c86df
Tri grpc compatibility (#11544) 2023-02-13 21:16:52 +08:00
wxbty 62e96dbcd0
fix t-digest miss (#11516)
Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-02-10 16:03:40 +08:00
jojocodeX a11e639949
Add Spring Security Plugin (#11418)
* Add Spring Security Plugin

* Add license

* Checkstyle

* refactor

* refactor

* refactor

* refactor

* refactor

* checkStyle

* refactor

* refactor

* refactor

* refactor

* Activate Add onClass

* Activate Add onClass

* fix NP

* fix sonarcloud check

* add comment

* refactor

* format

* refactor

* refactor

* Revert "refactor"

This reverts commit 07d6ffee13.

* refactor

* config key rename

* ci test

* ci test

* ci test

* rename

* Empty commit

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-02-08 18:20:20 +08:00
wxbty 4a2f26cc27
move metrics from common to dubbo-metrics (#11386)
* move metrics pkg

* fix path

* revert unnecessary formatting changes

* fix export common path

* add default in all

* spi path fix

* revert merged content && simplify  metrics pkg import

* import single dep

* MetricsFilter has been migrated to the default package

* revert api pkg in bom

* close hint

* fix

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-02-01 10:30:06 +08:00
Albumen Kevin a278feb372 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/config/ApplicationConfig.java
#	dubbo-config/dubbo-config-spring/src/main/resources/META-INF/dubbo.xsd
#	dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosNamingServiceWrapper.java
#	dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosServiceDiscovery.java
#	dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/util/NacosNamingServiceUtils.java
#	dubbo-registry/dubbo-registry-nacos/src/test/java/org/apache/dubbo/registry/nacos/NacosNamingServiceWrapperTest.java
#	dubbo-registry/dubbo-registry-nacos/src/test/java/org/apache/dubbo/registry/nacos/NacosRegistryTest.java
2023-01-11 15:05:01 +08:00
Albumen Kevin 84c1c35aae
Add serialization check (#11217) 2023-01-11 11:41:52 +08:00
Koy Zhuang ab5d95f46b
update(qos): support anonymous access. (#11076) 2022-12-12 15:22:26 +08:00
conghuhu 285d70c26a
feat: Client decoupling of Connection and Netty (#10819) 2022-11-16 10:55:37 +08:00
Albumen Kevin c464e55700 fix transform 2022-11-12 14:49:34 +08:00
Albumen Kevin 260d248297 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-distribution/dubbo-all/pom.xml
2022-11-12 14:42:05 +08:00
Albumen Kevin 7705811ff5
Add coverage module & file lint test (#10920) 2022-11-12 14:39:33 +08:00
Albumen Kevin fd103b7241
Remove fastjson and gson transitive dependency (#10792) 2022-11-08 19:22:33 +08:00
xin gu 6e40057524
Support netty3 and other transporters in port unification (#10886)
* Support netty3 and other transporters in port unification

Support netty3 and other transporters in port unification

* checkstyle

checkstyle
2022-11-07 17:11:53 +08:00
Kunshuai Zhu 81fe206b42
Move reactive-triple to a stand-alone module (#10605)
* Remove reactive-triple to a stand-alone module

* fix

* move dependency to dubbo-dependencies-bom

* move to dubbo-plugin
2022-09-14 15:57:11 +08:00
Albumen Kevin db210e02d4
Shade kubernetes and xds module (#10514) 2022-09-01 09:48:02 +08:00
Albumen Kevin f1af604e7e
Fastjson2 Support (#10166) 2022-07-15 10:18:41 +08:00
huazhongming c9b6e85d03
The compiler version is the same as the trunk version (#10144) 2022-06-14 14:09:14 +08:00
GuoHao 7c13626872
[3.0 Triple] Support native stub generator (#9822)
Support native stub generator
2022-03-27 10:50:01 +08:00
ken.lj 970964a012
Fix curator5 compatibility (#9749)
fixes #9738
2022-03-10 17:07:48 +08:00
ken.lj 1b31bb5551
Try to remove curator5 module (#9559) 2022-01-11 20:04:14 +08:00
ken.lj b2a4f612ec
3.0 service discovery metadata refactor (#9506) 2021-12-29 10:56:05 +08:00
Albumen Kevin efa6900bb1
[3.0] Add connectivity validation, router snapshot (#9112)
* refactor BitList

* refactor BitList

* remove dependency

* add connectivity directory support

* Fix ut

* Fix ut

* fix npe

* fix npe

* add disable action

* add comment

* add comment

* fix ut

* add router snapshot

* Add comment

* add test

* fix ut

* fix npe

* fix ut

* add ut

* set consumerUrl

* refactor BitList add tailList

* add comment

* support tailList in router chain

* fix default

* fix ut

* fix log

* fix dup

* Fix Directory available check

* change order

* fix ut

* fix logic

* fix concurrent

* fix random problem

* recover common router

* ensure semaphore

* recover meta

* fix invoker
2021-11-03 11:13:04 +08:00
Albumen Kevin ba86d61db3
Update Dubbo Distribution Pom (#9066)
* Update Dubbo Distribution Pom

* Add hessian include
2021-10-19 15:42:23 +08:00
Albumen Kevin 31c5ee4086
Refactor Injvm invoke (#8926)
* Refactor Injvm invoke

* Add ut

* Fix import

* Remove deprecated method & fix ut

* Fix Cluster join
2021-09-28 10:58:51 +08:00
Albumen Kevin 1dfb114734
[3.0] Multi Instances Related Refactor (#8737)
* Refactor some ExtensionLoader usage

* Fix ut

* Refactor some ExtensionLoader usage

* Introduce Initializer for ScopeModel

* Fix ut

* Fix ut

* Add TCCL Changer

* remove some default model usage

* remove some default model usage

* Fix NPE

* Remove Hessian2 TL

* Fix NPE

* Fix NPE

* Fix Shade

* Fix DubboBootstrap init

* Fix Metadata Serialize

* Fix not support multi classloader

* Add Multi ClassLoader Test case

* Fix UT

* add ant

* Fix UT

* Fix Merge Directory
2021-09-10 14:43:34 +08:00
Albumen Kevin ff39bf36c3
Add 3.0 Multi Instance Support (#8662)
* Add ExtensionDirector and Models

* Fix access static getter method of ApplicationModel

* Replace ExtensionFactory with ExtensionInjector

* specify scope of some SPIs

* Support scoped injection for extension

* improve create extension loader logic

* Add ScopeModel and ScopeBeanFactory, fix extension initialization of XxxConfig

* polish doc of scope model

* Extract FrameworkStatusReportService from FrameworkStatusReporter

* Fix application model of default bootstrap instance

* Pass scope model through URL

* Fix scope model of registry, metadata, cluster and so on

* exact ServiceModel from ProviderModel and ConsumerModel

* Add ASF license header for ScopeBeanFactoryInitializer

* Remove unused import

* Remove unused import

* Fix ut in ConfigManagerTest

* Change default Scope Behave

* Resolve recursive creation of Scope Model

* Fix inject default model when scope is parent

* Fix inject default model when scope is parent

* Compact with url without ScopeModel

* Change HttpBinder Scope

* Change some SPIs' scope

* Fix setApplicationModel override issue of MetadataServiceNameMapping

* Default inject ScopeModel in ConfigManager

* Add default Scope for AbstractConfig when init

* Fix field override & Fix ut env

* Fix zk not startup in DubboBootstrapMultiInstanceTest

* Fix ExtensionAccessor not inject in UT of MetricsFilterTest

* Compact old style getName

* Fix UT in DNSServiceDiscoveryTest

* Compact old style ApplicationModel

* Fix UT in DNSServiceDiscoveryTest

* Fix repository changed after ApplicationModel destroyed

* Fix SpringExtensionInjector pollution in UT

* Pass ApplicationModel in ServiceInstance

* reintroduce metadata delay key

* Add Transient on ApplicationModel getter of DefaultServiceInstance

* Fix Configurator Listener in Singleton mode override issue

* Fix Configurator Listener in Singleton mode override issue

* Compact old style getApplication

* Invocation pass ServiceModel

* Compact old style registerConsumer

* Fix NPE in RpcInvocation

* Add ServiceModel pass when init

* Fix ServiceModel cast error

* Add ServiceModel pass when invoke

* Fix NPE when simplify registry url

* Revert "Resolve recursive creation of Scope Model"

This reverts commit 37a99957

* Improve scope model aware

* polish scope model

* Cleanup ApplicationModel.defaultModel usage

* Fix ut

* Compatible with 2.6 Registry

* Fix ut

* Add Callback Service build ProviderModel

* improve scope model of config bean

* Fix scope model of reference/service model

* Revert CallbackServiceCodec for dev

* Fix scope model NPE

* Fix consumer url NPE

* Add Callback Service build ProviderModel

* Fix NPE when destroy

* Fix ut

* add failback logic for ut

* Fix ut

* Add Scope Model check

* Fix uts

* Fix ut in DubboBootstrapTest

* Fix ut in DubboBootstrapTest

* Fix uts

* Reset ApplicationModel Before Test

Co-authored-by: gongdewei <kylixs@qq.com>
2021-09-02 17:54:20 +08:00
ken.lj 0f52c56042
add test case for service discovery process (#8607) 2021-08-31 08:58:00 +08:00
Albumen Kevin 873937453b
Compact with dubbo-all without farbic-io (#8546) 2021-08-19 19:00:55 +08:00
Albumen Kevin 3f3cea771e
Dependencies Upgrade (#8351)
* Dependencies Upgrade

* fix ut

* update nacos version

* remove eclipse-collections dependency

* fix compile error

* revert 401c56e6

* exclude guava

* fix test compile
2021-07-26 09:57:30 +08:00
赵延 dcdfe5afa4
Compatible for curator5. (#8263)
* compatible for curator5.

* compatible for curator5.

* fix ut.

* dependency fix.

* for compatible, dubbo-sample CompatibleRegistry use setMethod.

* ut fix.

* use curator as the default ZookeeperTransporter.

* ut fix.

* code clean. make ZookeeperTransporter inject at constructor.
2021-07-13 22:47:25 +08:00
Albumen Kevin 6e9dbe9b43
Add default Dynamic Param Key (#8028)
* Add default Dynamic Param Key

* add ASF license header

* remove debug output

* Fix param being override

* skip null value

* introduce a serializable URLParam

* perfect comment

* add serialVersionUID
2021-06-11 22:19:42 +08:00
赵延 724ec8b554
[3.0] Service Name Mapping Refactor And Nacos model some support. (#7824) 2021-06-10 17:18:49 +08:00
Wu Zhiguo db41d2a5f4
[3.0]Cleanup EventDispatcher mechanism (#7677) 2021-06-09 00:23:17 +08:00
huazhongming e189221708
[3.0] Support url merge processor extension (#7932) 2021-06-08 17:21:01 +08:00
Albumen Kevin 7dd5524733
Fix Integration Test (#7853)
* fix group key fetch

* enhance LRUCache (#7461)

* enhance LRUCache

* enhance LRUCache

(cherry picked from commit d3a400daca)

* add dependency pass

Co-authored-by: gcx <18716558336@163.com>
2021-05-24 20:48:14 +08:00