Commit Graph

201 Commits

Author SHA1 Message Date
stellar e826b0c20d
feat:remove old zookeeper (#14028) 2024-05-15 17:09:28 +08:00
王聪洋 d1c6e558a7
Task #13958 Move Rest Protocol to SPI Extensions (#14061) 2024-05-10 09:53:37 +08:00
Albumen Kevin 53553dcef4 Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	dubbo-container/dubbo-container-api/src/main/java/org/apache/dubbo/container/Main.java
#	dubbo-dependencies-bom/pom.xml
#	dubbo-distribution/dubbo-apache-release/pom.xml
#	dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/AbstractMonitorFactory.java
#	dubbo-remoting/dubbo-remoting-http12/pom.xml
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/h12/AbstractServerCallListener.java
#	dubbo-spring-boot/pom.xml
#	dubbo-test/dubbo-test-spring/pom.xml
2024-04-10 13:15:14 +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
Albumen Kevin 76390eed4e Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	dubbo-dependencies-bom/pom.xml
#	dubbo-spring-boot/pom.xml
2024-03-05 09:47:49 +08:00
namelessssssssssss 860ad02e1e
Fix URL issue (#13807) 2024-03-01 14:20:07 +08:00
Albumen Kevin d018475f73 Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	README.md
#	dubbo-common/pom.xml
#	dubbo-common/src/main/java/org/apache/dubbo/config/MetricsConfig.java
#	dubbo-demo/dubbo-demo-triple/pom.xml
#	dubbo-dependencies-bom/pom.xml
#	dubbo-distribution/dubbo-all/pom.xml
#	dubbo-metadata/dubbo-metadata-processor/pom.xml
#	dubbo-native-plugin/pom.xml
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java
#	dubbo-spring-boot/pom.xml
2023-12-27 23:27:35 +08:00
TomlongTK 617dbd3fdd
Make config builder more comprehensive (#13556)
* Make config builder more comprehensive

* Format
2023-12-25 19:17:48 +08:00
huazhongming f7a32be429
Remove unused dependency (#13554)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-12-22 10:25:53 +08:00
huazhongming 36e0ee0a96
Revert dubbo module refactor (#13541)
* Revert dubbo module refactor

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

* Revert dubbo module refactor

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

* Revert dubbo module refactor

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

---------

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-12-21 10:17:43 +08:00
Albumen Kevin 0fccd2ccae Merge branch 'apache-3.2' into apache-3.3
# Conflicts:
#	dubbo-build-tools/pom.xml
#	dubbo-dependencies-bom/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper-curator5/pom.xml
#	dubbo-kubernetes/pom.xml
#	dubbo-native-plugin/pom.xml
#	dubbo-xds/pom.xml
#	dubbo-xds/src/test/java/org/apache/dubbo/rpc/cluster/router/xds/XdsRouteTest.java
#	pom.xml
2023-12-14 19:36:25 +08:00
TestBoost 570cd47d9a
only call DubboBootstrap.reset(); once to make the test org.apache.dubbo.generic.GenericServiceTest faster (#13466) 2023-12-14 19:12:27 +08:00
huazhongming 93ec8e368d
Remove dubbo-container module (#13410)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-11-30 10:37:41 +08:00
Sean Yang a53228d545
feat(logging): #13378 Uniformly uses log4j2 as the logging component (#13402) 2023-11-22 09:58:59 +08:00
hjyp f441e79d8d
[System properties] Add the system properties tool, unified system configuration items (#13307)
* Initialize

* update code style

* delete redundant file

* Change position

* delete redundant import

* Add JsonCompatibilityUtils

* Delete unused import

* change funcs

* Add test case

* update color class

* add license

* fix style

* Add class of SystemPropertyConfigUtils

* Unify config

* Delete permit

* Fix style

* unify config

* Fix code style

* Update comment

* Normalized style

* Fix native CI bug

* unify code style

* Add log

* fix code format

* Add log

* Update graalvm

* Delete log

* Fix bugs
2023-11-20 16:42:18 +08:00
huazhongming d979b211ce
[3.3]Use spotless to format the code (#13322)
* Use spotless to format the code

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

* Use spotless to format the code

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

* Use spotless to format the code

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

* degrade dubbo version

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

* degrade dubbo version

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

* revert degrade dubbo version

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

* Fix ut

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

---------

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-11-07 15:41:45 +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
crazyhzm 35b6682393 Merge remote-tracking branch 'upstream/3.2' into 3.3
# Conflicts:
#	dubbo-cluster/pom.xml
#	dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java
#	dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
#	dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-consumer/pom.xml
#	dubbo-demo/dubbo-demo-spring-boot/dubbo-demo-spring-boot-provider/pom.xml
#	dubbo-demo/dubbo-demo-spring-boot/pom.xml
#	dubbo-dependencies-bom/pom.xml
#	dubbo-metadata/dubbo-metadata-rest/src/main/java/org/apache/dubbo/metadata/rest/ParamType.java
#	dubbo-spring-boot/pom.xml
2023-11-06 13:29:10 +08:00
Sean Yang 539bb11ae7
fix(pom): #13188 Exclude unnecessary transitive dependencies for zookeeper & cleanup pom (#13230) 2023-11-02 09:54:33 +08:00
Linchen Xu b41fe3ca35
Optimize MethodConfigTest (#13234) 2023-10-20 15:41:31 +08:00
Albumen Kevin 0d91d419a8
Remove direct dependency of alibaba dubbo (#13218)
* Remove direct dependency of alibaba dubbo

* disable in ExtensionLoader

* Fix license

* Fix test

* Fix case

* Fix test
2023-10-19 15:25:40 +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
Albumen Kevin 27d9ce3836
Support get alibaba GenericService from spring context (#12585) 2023-06-22 19:31:31 +08:00
Albumen Kevin f28c2fec72
Fix alibaba Rpc compact (#12581)
* Fix alibaba Rpc compact

* Fix alibaba Rpc compact

* Fix alibaba Rpc compact

* Fix alibaba Rpc compact
2023-06-22 08:49:23 +08:00
Albumen Kevin 8ad792c287
Add transient to some overrided field (#12570) 2023-06-19 21:29:24 +08:00
Albumen Kevin e07e5e294b
Fix get method name from invocation (#12519)
* Fix get method name from invocation

* fix compile
2023-06-13 20:25:25 +08:00
Xiang Wei Zhang 40b805ee88
Fix hashCode change in 2.6 DIY ConsistentHashLoadBalance (#12468)
* Fix hashCode change in 2.6 DIY ConsistentHashLoadBalance

When using 2.6.x DIY ConsistentHashLoadBalance, Invoker will wrap to CompatibleInvoker. Then invokers.hashCode() will return different hashCode event original Invokers not change. This will cause many duplicate Object like ConsistentHashSelector in jvm Eden space, and young gc will be very frequently.

* add override equals

* Add object and class check equals
2023-06-09 15:21:58 +08:00
wangda 24935b1bb0
Correcting spelling mistakes (#12480)
Signed-off-by: zhangwd3 <zhangwd3@asiainfo.com>
2023-06-09 10:29:27 +08:00
Albumen Kevin ba308219c6
Register services after module started (#12450) 2023-06-07 13:49:49 +08:00
Albumen Kevin c8ef10e8a5
Check if return AsyncRpcResult in Filter (#12467)
* Check if return AsyncRpcResult in Filter

* Fix compatible
2023-06-06 19:39:50 +08:00
Albumen Kevin d6661cf501
Introduce DelegateURL to proxy apache URL to alibaba URL (#12449)
* Introduce DelegateURL to proxy apache URL to alibaba URL

* Fix license
2023-06-05 10:09:30 +08:00
Albumen Kevin 057dcb4512
Fix alibaba Filter / Result Compact (#12440) 2023-06-01 15:43:07 +08:00
Albumen Kevin 581defa2b4
Add alibaba RpcContext getInvocation compact (#12416) 2023-05-29 15:31:16 +08:00
Albumen Kevin 2ffda4b239
Fix alibaba AbstractLoadBalance compact (#12396) 2023-05-25 09:24:19 +08:00
Albumen Kevin da70e9097f
Fix alibaba AbstractLoadBalance compact (#12394) 2023-05-24 20:19:25 +08:00
Xiang Wei Zhang 35a6365d3f
Fix ClassCastException caused by 2.x's filter in some condition (#12286)
* fix ClassCastException caused by 2.x's filter in some condition

* compatible of RpcResult in dubbo version 2.x

* extends AppResponse to make code better

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>

* Add whenCompleteWithContext empty implement to compatible of FilterChainBuilder's invoke

* Add license

* Update compact

* Fix 2.6's Filter return RpcResult handle as AsyncRpcResult

When DubboProtocol.CompletableFuture running result.thenApply and  FilterChainBuilder.CallbackRegistrationInvoker running asyncResult.whenCompleteWithContext. All Result handle as AsyncRpcResult, so RpcResult add some methods implements seems like AsyncRpcResult does.

* revert last commit

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-05-17 14:25:09 +08:00
Albumen Kevin bdc0695d78
Fix compatible signature mismatch (#12220)
* Fix compatible signature mismatch

* Fix license
2023-05-03 10:42:00 +08:00
Albumen Kevin 3552347d44
Support Shutdown Gracefully (#12118) 2023-04-28 14:21:47 +08:00
KamTo Hung f05662a66d
optimize JsonUtils (#12057) 2023-04-11 11:24:55 +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 f742e25ba2 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-dependencies-bom/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper-curator5/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper/pom.xml
#	dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboInvoker.java
#	pom.xml
2023-03-17 10:07:46 +08:00
Xiang Wei Zhang a6ef8910ca
Fix 2.6.x LoadBalance SPI not work (#11730) 2023-03-13 20:15:54 +08:00
尔等同学 7e51047cb0
delete never thrown exception (#11674) 2023-02-27 20:09:15 +08:00
aamingaa a70cc27700
feat: optimize code (#11671) 2023-02-27 13:09:10 +08:00
Albumen Kevin cbcbac9ce6
Introduce Invocation#getInvokedInvokers to get invokers for ClusterFilter (#11359) 2023-01-20 14:01:14 +08:00
Albumen Kevin 9f9b3d7cb7 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/metadata/ConfigurableMetadataServiceExporter.java
2022-11-22 16:05:58 +08:00
Albumen Kevin 237042cbb5
Remove public modifier in dubbo-compatiable (#10983) 2022-11-22 14:04:08 +08:00
aamingaa ee9d01a6e0
feat: split rpcContext (#10798) 2022-11-10 20:56:26 +08:00
Albumen Kevin f1af604e7e
Fastjson2 Support (#10166) 2022-07-15 10:18:41 +08:00
cheese8 4be39e4744
refactor ExtensionInjector and related (#10301)
* refactor SpiExtensionInjector and related

* refactor the code style
2022-07-12 11:16:48 +08:00