Commit Graph

21 Commits

Author SHA1 Message Date
namelessssssssssss f020f3e3d1
Remaining works of config-api refactor (#13045)
* * Move Configurator & Factory to common

* * Move ServiceNameMapping & MappingListener & MappingChangedEvent to common
* Add ServiceNameMappingUtils

* * Move ClusterUtils to common

* * Add ClusterInvokerFactory

* * Move InterfaceConfigValidator & MethodConfigValidator to cluster
* Move ConfigCenterConfigValidator to configcenter-api

* * Move DefaultMetricsServiceExporter to metrics-default

* * Move Lifecycles

* * Fix a part cyclic dependencies problem

* * Move ApplicationPostOfflineLifecycle to dubbo-registry

* * Fix a part cycle dependencies problem

* * Fix ut about MetadataReportInstance & Move Prometheus ut to metrics
* Move ClusterInvokerFactory to rpc-api

* * Update config-api pom

* * Add license

* * Fix module version of metadata-api

* * Move some MetadataService API to registry-api

* Add interface ApplicationMetadataUpdater to reduce the depedencies of  dubbo-metadata on dubbo-registry

* Temporary remove some tests that caused cyclic reference

* Temporary remove some tests that caused cyclic reference

* Add license

* Add test-config module for test

* Add license

* Fix pom

* Tests fix

* Pom fix

* Fix a bean registry problem

* Move config-test to dubbo-config

* Fix pom

* Add removed test

* Add removed test

* Remove application.yaml

* Fix version

* Fix codestyle

* Fix spi file

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-demo-native

* Fix dependencies of dubbo-rpc

* Fix dependencies of dubbo-rpc-rest

* Fix dependencies of dubbo-rpc-rest

* Fix dependencies of dubbo-rpc-rest

* Fix dependencies of dubbo-rpc-rest

* Fix spi file of ApplicationDeployListener

* Fix test about exporter count

* Fix test about exporter count

* Update pom

* Add test msg

* Change MetadataUpdater init process

* Change MetadataUpdater init process

* Change MetadataUpdater init process

* Change MetadataUpdater init process

* Fix dependencies of dubbo-rpc-rest

* Using lifecycle instead of ApplicationDeployListener

* Update doc

* Update log

* Fix pom of dubbo-config-spring & dubbo-plugin-security & dubbo-rpc-rest

* Add scope for ApplicationLifecycle

* Fix pom of dubbo-config-spring

* Fix ut of rpc-rest(PR#13087)

* Fix bug of DefaultClusterInvokerFactory

* Fix bug of DefaultClusterInvokerFactory

* Fix bug of DefaultClusterInvokerFactory

* Fix bug of ServiceInstanceCustomizer

* Add dubbo-config-test to ignore list

* Code style & bug fix

* Remove unused import

* Add zookeeper-curator for test

* Test zookeeper version

* Test zookeeper version

* Test fix zookeeper

* Remove unnecessary modification

* Add test props

* Remove unused dependencies

* Code style fix

* Remove unnecessary dependencies & Code style fix

* Fix dependencies

* Update pom.xml

* Add dubbo-config-test as ignored

* Refactor ClusterInvokerFactory

* Refactor ClusterInvokerFactory

* Refactor ClusterInvokerFactory
2023-10-03 22:40:12 +08:00
namelessssssssssss a6a6d57dd7
Add SPI Interface ApplicationLifecycleManager for dubbo-core refactor (#12750)
* Add SPI ApplicationLifecycleManager and its implements

* Add new protocol for publishing registry event

* Migrate DefaultApplicationDeployer to 3.3

* Add SPI file

* Code style fix

* Code style fix

* Remove DefaultApplicationLifecycle

* * Add start() for ApplicationLifecycle
* Code style fix
* Remove unused dependencies from dubbo-config-api

* Implement ApplicationLifecycle.start for MetadataApplicationLifecycle and MetricsApplicationLifecycle

* Using @Activate with order instead of dependOnXXX in ApplicationLifecycle

* Move all ApplicationLifecycle implements back to dubbo-config

* * Move all lifecycle implements back to config-api for test

* Code style & bug fix

* Bug fix

* Add license

* Remove unused codes

* Add license

* Add license

* Add license

* Remove unused import

* Update test and pom

* Bug fix

* Update pom.xml

* Bug fix

* Bug fix

* Add SPI ApplicationLifecycleManager and its implements

* Add new protocol for publishing registry event

* Migrate DefaultApplicationDeployer to 3.3

* Add SPI file

* Code style fix

* Code style fix

* Remove DefaultApplicationLifecycle

* * Add start() for ApplicationLifecycle
* Code style fix
* Remove unused dependencies from dubbo-config-api

* Implement ApplicationLifecycle.start for MetadataApplicationLifecycle and MetricsApplicationLifecycle

* Using @Activate with order instead of dependOnXXX in ApplicationLifecycle

* Move all ApplicationLifecycle implements back to dubbo-config

* * Move all lifecycle implements back to config-api for test

* Code style & bug fix

* Bug fix

* Add license

* Remove unused codes

* Add license

* Add license

* Add license

* Remove unused import

* Update test and pom

* Bug fix

* Bug fix

* Update pom.xml

* Bug fix

* Bug and codestyle fix

* Codestyle fix

* Fix accessibility issues in AbstractDeployer

* Bug fix

* Add new ApplicationLifecycle to fix application config initialize issue

* Bug fix

* Remove unused codes

* Remove ProtocolRegistryEventWrapper

* Fix wrong call sequences in initialize() and postModuleChanged()

* Add spi config

* Fix order issues for lifecycle impl

* Cache lifecycle impls to BeanFactory

* * Refactor lifecycle to event-based
* Add ApplicationEvent and its implements
* Simplify deployers
* Add ModelContext and its implements

* * Add license & bug fix

* * Bug fix

* * Move contexts

* * Add license

* Update doc

* Update docs

* Remove unused methods

* Remove unused methods & Bug fix

* Bug fix

* * Remove events
* Add lifecycles

* * Add license

* * Add license

* * Fix spi file name
* Add log for ApplicationLifecycleManager

* Update pom.xml

* * Bug fix
* Remove unused import

* Update pom.xml

* * Simply codes relate to ApplicationContext

* * Codestyle fix

* * Fix conflict ut

* * Migrate module offline process to ModuleOfflineLifecycle

* * Add new lifecycle

* * Add license

* * Ut & codestyle fix

* * Call sequence bug fix

* * Add doc

* * npe fix

* * Codestyle & doc fix

* * Fix the usage of Lifecycle.needInitialize

* Update org.apache.dubbo.metadata.ServiceNameMapping

* * Fix ut

* Update DefaultCollectorTest.java

* * Update test

* * Move AbstractDeployer back to dubbo-common
2023-09-10 09:59:03 +08:00
namelessssssssssss bf3d4f4ca3
Metrics event split (#12888)
* Split event-related api out of dubbo-metrics-api.

* Add new module to .artifacts

* Temporary remove dubbo-plugin-metrics

* Fix pom

* * Remove the use of dispatcher name

* * Bug fix

* * Bug fix

* Update ScopeClusterInvokerTest.java

* * Trigger test

* * Fix ut

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-08-31 08:02:41 +08:00
胡俊 04f3fe7d2b
add netty4 metrics. (#12695) 2023-08-09 15:46:03 +08:00
chaicho 059fdf2613
Add module dubbo-all-shaded to avoid netty version conflict. (#12864) 2023-08-08 16:40:24 +08:00
conghuhu 4b62513dff
chore: add seata sentinel starter & rename tracing starter (#12543)
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: Ken Liu <ken.lj.hz@gmail.com>
2023-07-07 10:22:48 +08:00
qinliujie 0d4e8304bc
refactor dubbo module (#12276)
* refactor:extract MergeableCluster as a single module

* fix:add license header

* fix:add dubbo-plugin-cluster-mergeable to .artifacts

* refactor:extract module from dubbo-cluster

* refactor:extract dubbo-plugin-router-condition module

* refactor:extract dubbo-plugin-router-tag module

* refactor:move metric filter out from dubbo-cluster

* refactor:add pom dependency

* fix:ut and dependency

* fix:ut

* refactor:extract dubbo-plugin-loadbalance-adaptive

* refactor:extract dubbo-remoting-zookeeper-api module

* refactor:extract dubbo-configcenter-file module

* refactor:extract dubbo-metadata-rest module

* refactor:extract dubbo-monitor-common module

* refactor: extrace dubbo-plugin-access-log module

* refactor: extrace dubbo-plugin-tps module

* refactor: extrace dubbo-plugin-token module

* refactor: extract dubbo-plugin-generic-invoke module

* refactor: extract dubbo-plugin-context module

* refactor: extract dubbo-plugin-classloader-filter module

* refactor: extract dubbo-plugin-proxy-bytebuddy module

* refactor: extract dubbo-plugin-qos-trace module

* refactor: extract FutureFilter from dubbo protocol module

* refactor: add modules to pom

* ut:fix ut dependency
2023-07-03 15:55:42 +08:00
conghuhu 95207b9079
fix: fix missing metrics filter & recover #12453 (#12577)
* recover "refactor: migrate tracing core from boot-start to dubbo deployer (#12453)"

This reverts commit ea35f7ed5c.

* fix: fix missing metrics filter

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-06-28 20:36:38 +08:00
carlvine500 27e6838c3b
add spring boot interceptor to copy header(dubbo-tag)/cookie(dubbo.tag) (#12514)
* add spring boot interceptor to copy header(dubbo-tag)/cookie(dubbo.tag)

* copy dubbo.tag in urlParameter

* copy dubbo.tag in urlParameter

* remove dubbo.tag in interceptor

* add dubbo-spring-boot-interceptor to dubbo-dependencies-all/.artifacts/dubbo-bom

---------

Co-authored-by: liutingfeng <tingfeng.liu@successchannel.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-06-28 20:30:45 +08:00
Albumen Kevin fd14e7b76f Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java
#	dubbo-test/dubbo-test-modules/src/test/java/org/apache/dubbo/dependency/FileTest.java
2023-06-12 20:52:32 +08:00
Ken Liu 0f336d8736
fix dependency check (#12505) 2023-06-12 19:03:09 +08:00
conghuhu 6325a765bc
feat: add springboot-starter for nacos and zookeeper (#12488) 2023-06-12 12:23:55 +08:00
huazhongming 52e4e4e301
remove dubbo-native-plugin module (#12358)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-05-21 21:00:46 +08:00
crazyhzm 71cc51bf69 Merge branch '3.2' into 3.3
# Conflicts:
#	dubbo-dependencies-bom/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper-curator5/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper/pom.xml
#	pom.xml
2023-05-17 14:07:55 +08:00
conghuhu 76d4982e1e
feat: add dubbo-spring-boot-tracing-otel-otlp-starter (#12299)
* feat: dubbo-spring-boot-tracing-otel-otlp-starter

* style

* chore: add otel-otlp-exporter to pom

* feat: add headers cfg in otlp

* fix: add license

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-05-16 19:52:50 +08:00
Albumen Kevin 992abd2d34 Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	dubbo-config/dubbo-config-api/pom.xml
#	dubbo-distribution/dubbo-all/pom.xml
#	dubbo-metrics/dubbo-metrics-default/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metrics.collector.MetricsCollector
#	pom.xml
2023-05-05 13:07:25 +08:00
huazhongming 9d9df82194
Fix the dubbo-config-spring6 module is lost (#12228)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-05-05 11:31:07 +08:00
conghuhu 48bd823253
chore: recover dubbo-spring-boot-observability-starter to compatible … (#12124)
* chore: recover dubbo-spring-boot-observability-starter to compatible with v3.2.0

* add license

* fix: change tracing
2023-04-24 19:50:05 +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
conghuhu 559b13ae2e
feat: add tracing starters && add zipkin auto configuration (#12013)
* fix: fix observ-starter some bugs

* faet: add zipkin auto configuration

* fix: remove zipkin endpoint default value

* feat: add prometheus client bom to observability starter

* feat: add observability starters

* fix: add license

* feat: add observability-brave-zipkin-starter to dubbo-distribution

* fix: add moudles to dubbo-bom

* stylelint

* chore: change observ starter name

* fix
2023-04-15 11:47:12 +08:00
Albumen Kevin 412471a98f
Enhance inconsistent version check (#12038)
* Enhance inconsistent version check

* Fix seperate

* Fix load

* Fix load

* Fix test

* Update pom.xml

* Print tree

* use zip instead

* Fix test
2023-04-11 15:14:48 +08:00