Commit Graph

36 Commits

Author SHA1 Message Date
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
Albumen Kevin f1af604e7e
Fastjson2 Support (#10166) 2022-07-15 10:18:41 +08:00
Gong Dewei 1bdf359b1a
[3.0] Manage global resources and executor services, fix zk client connections (#9033)
* shutdown scheduledExecutors and executorServiceRing

* fix NPE of configuration

* Fix notify loop after executor service is shutdown

* improve registry center in tests

* polish unregister shutdown hook log

* Fix systemConfiguration NPE

* enable surefire reuseForks for fast testing

* Fix checking DubboShutdownHook is alive

* fix SPI/Bean instantiation constructor matching

* shutdown share executor

* release zk client

* Improve application destroy processing

* Add GlobalResourcesRepository to manager static resources, including ExecutorService and HashedWheelTimer

* revert zk client address mapping

* Fix zk client early close problem

* improve executor service

* improve both start by module and by application

* release sharedScheduledExecutor and fix AccessLogFilter

* Fix tests

* checking zk registry if destroyed

* fix testSystemPropertyOverrideReferenceConfig config error

* improve KeepRunningOnSpringClosedTest

* SPI extension/scope bean prefers parameterized constructor instead of default constructor

* Support compatible usage of ZookeeperRegistryFactory

* Improve the application/module destroy process, the deployer destruction is divided into pre-destroy and post-destroy

* Destroy NacosDynamicConfiguration

* Destroy MetadataReportFactory

* Recreate adaptive classes

* Destroy global resources on dubbo shutdown

* Fix zk thread leaks when create client failed

* Improve protocol destroying

* Improve thread name of protocol port

* Manage global EventLoopGroup, HashedWheelTimer, etc.

* Protected metadata info in memory

* Support checking unclosed threads when finish test class

* Improve application check started

* add test log4j.properties

* add pom.xml of dubbo-test-check

* fix CodecSupport.checkSerialization error

* Fix ReferenceCountExchangeClientTest log msg checking

* Fix ServiceInstanceMetadataUtilsTest and MigrationInvokerTest

* Fix protocol destroy problem

* rename test check jvm args

* cancel asyncMetadataFuture and unregisterServiceInstance in pre-destroy application

* Ignore refresh metadata if application is stopping

* Remove unused destroyDynamicConfigurations method

* Change ZookeeperTransporter to application scope

* Add testMultiProviderApplicationsStopOneByOne

* Destroy ZookeeperTransporter in RemotingScopeModelInitializer

* support specify test check report file
2021-10-19 10:11:53 +08:00
ken.lj 8bdecea7ef
Move some SPI extensions to apache/dubbo-spi-extensions, add sub package modules (#6157) 2020-08-17 13:38:04 +08:00
ken.lj 6b86651ee7 Protobuf service definition and serialization support 2019-09-17 15:50:18 +08:00
Mercy Ma e7ce16d992
Dubbo Cloud Native (#4764)
* Polish apache/dubbo#4542 : [Enhancement] Adapt the Java standard Event/Listener mechanism

* Polish apache/dubbo#4541 : [Feature] Add local File System DynamicConfigurationFactory‘s extension

* Polish apache#4541 : Bugfix

* Polish apache/dubbo#4541 : Optimization

* Polish apache/dubbo#4541 : Add the compatibility for PollingWatchService on the some platforms

* Polish apache/dubbo#4541 : Add delay publish without ThreadPoolExecutor

* Polish apache/dubbo#4541 : Refactor the extension name

* Polish apache/dubbo#4541 : Add remove ops

* Polish apache/dubbo#4541 : Add testable constructor

* Polish apache/dubbo#4541 : Add getConfigGroups method

* Polish apache/dubbo#4610 : [Refactor] Refactor the bootstrap module

* Polish apache/dubbo#4541 : Fix the nulling URL issue

* Polish apache/dubbo#4622 : [Refactor] Refactor ConfigManager

* Polish apache/dubbo#4622 : [Refactor] Refactor ConfigManager

* Polish apache/dubbo#4622 : Support multiple configcenters

* Polish apache/dubbo#4671 : ServiceNameMapping will not map the group, version and protocol

* update referenceCount log (#4683)

Add comments to support multiple shared connections

* Polish /apache/dubbo#4687 : Remove the duplicated test code in dubbo-config-spring (#4688)

* #4685  修改代码if判断false问题 if (hasException == false)修改成if (!hasException) (#4695)

* Fixed Service annotation method parameters are not in effect (#4598)

* keep demo simple, and switch to use zookeeper as registry center (#4705)

* keep demo simple, and switch to use zookeeper as registry center

* remove comment

* @Reference auto-wires the instance of generic interface #4594 (#4677)

* try to shorten maven output to make travis build pass (#4710)

* use CountDownLatch to check zk registry if establish connection (#4589)

* Minor change

* Rename the extension name of WritableMetadataService

* Polish apache/dubbo#4759 : [Refactor] Change the signature of methods of MetadataService #4759

* Merge remote-tracking branch 'upstream/master' into dubbo-cloud-native

# Conflicts:
#	dubbo-all/pom.xml
#	dubbo-bom/pom.xml
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ConfigCenterConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/RegistryConfig.java
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
#	dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
#	dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/DynamicConfiguration.java
#	dubbo-configcenter/dubbo-configcenter-api/src/test/java/org/apache/dubbo/configcenter/mock/MockDynamicConfiguration.java
#	dubbo-configcenter/dubbo-configcenter-consul/src/main/java/org/apache/dubbo/configcenter/consul/ConsulDynamicConfiguration.java
#	dubbo-configcenter/dubbo-configcenter-etcd/src/test/java/org/apache/dubbo/configcenter/support/etcd/EtcdDynamicConfigurationTest.java
#	dubbo-configcenter/dubbo-configcenter-nacos/src/main/java/org/apache/dubbo/configcenter/support/nacos/NacosDynamicConfiguration.java
#	dubbo-configcenter/dubbo-configcenter-nacos/src/test/java/org/apache/dubbo/configcenter/support/nacos/NacosDynamicConfigurationTest.java
#	dubbo-configcenter/dubbo-configcenter-zookeeper/src/main/java/org/apache/dubbo/configcenter/support/zookeeper/ZookeeperDynamicConfiguration.java
#	dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/definition/model/MethodDefinition.java
#	dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/identifier/MetadataIdentifier.java
#	dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java
#	dubbo-metadata/dubbo-metadata-api/src/test/java/org/apache/dubbo/metadata/report/identifier/MetadataIdentifierTest.java
#	dubbo-metadata/dubbo-metadata-definition-protobuf/src/main/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilder.java
#	dubbo-metadata/dubbo-metadata-definition-protobuf/src/test/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilderTest.java
#	dubbo-metadata/pom.xml
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/AbstractConfiguratorListener.java
#	dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
#	dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistryFactory.java
#	dubbo-rpc/dubbo-rpc-xml/src/main/java/org/apache/dubbo/xml/rpc/protocol/xmlrpc/XmlRpcProtocol.java

* Polish apache/dubbo#3984 : Add the implementation of Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)

* Code merge
2019-08-08 10:42:14 +08:00
violin 455d29a224 [Dubbo-3829] support google pb generic invocation (#3975)
* modify generic filter to support google pb service test.

* save

* save code

* save genericFilter 改写完毕

* save

* add Licensed

* fix some problem after code review

* change directory name after change module name
2019-05-08 16:25:45 +08:00
huaifeng 77df9d7bd2 native hessian merge (#3966)
* Merge serialization-native-hessian-for-apache-dubbo into incubator-dubbo

* test success

* test success

* Merge serialization-native-hessian-for-apache-dubbo into incubator-dubbo

* change maven install

* add apache license

* remove @Generated

* optimize import

* remove thrift

* merge master

* distribution pom add native hessian
2019-05-06 10:26:31 +08:00
Taosheng Wei 201795bd5c [Dubbo-3707] Merge dubbo-serialization-gson into incubator-dubbo (#3714) 2019-04-16 10:46:39 +08:00
ken.lj 59dab14ceb Use maven CI friendly versions: revision. (#3851) 2019-04-12 11:41:51 +08:00
huazhongming a378a01994 Merge dubbo-serialization-avro into incubator-dubbo #3708 (#3717) 2019-04-09 14:11:13 +08:00
Ian Luo bc67770d64 [maven-release-plugin] prepare for next development iteration 2019-03-18 19:11:51 +08:00
Ian Luo a36cc7520e [maven-release-plugin] prepare release dubbo-2.7.1 2019-03-18 18:40:15 +08:00
Ian Luo a162d3e662 Revert "[maven-release-plugin] prepare release dubbo-2.7.1"
This reverts commit a3454a98eb.
2019-03-18 14:27:50 +08:00
Ian Luo f1babd9d19 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit 9941995cfa.
2019-03-18 14:27:33 +08:00
Ian Luo 9941995cfa [maven-release-plugin] prepare for next development iteration 2019-03-18 12:08:21 +08:00
Ian Luo a3454a98eb [maven-release-plugin] prepare release dubbo-2.7.1 2019-03-18 12:08:08 +08:00
Huxing Zhang de4f91b689 [maven-release-plugin] prepare for next development iteration 2019-01-18 11:05:09 +08:00
Huxing Zhang e4f39a3a11 [maven-release-plugin] prepare release dubbo-2.7.0 2019-01-18 11:04:41 +08:00
Ian Luo b8bc80bd45
enhance pull request 2618 (#2691)
* enhance pull request 2618

* move spi file into the right directory

* ignore protostuff test case

* make unit test pass, support Time type

* fix useless imports issue

* add license header
2018-10-26 23:55:46 +08:00
Song Kun ac013b1a65 [Dubbo-1983] Support Protobuf Serialization (#2618)
* finish support protobuf

* polish

* fix code review

* use the general test for serialization
2018-10-26 11:06:09 +08:00
时无两丶 1ef12208df Optimize ut for serialization model. (#2632)
* 1. Integrate the unit test of the serialization module, code reuse.
2. Remove redundant unit tests and pojo classes.
3. Remove the useless pojo class in the common module.

* fix ci fail

* fix ci fail

* fix ci fail

* fix ci fail

* remove author info
2018-10-15 21:35:36 +08:00
Jerrick Zhu c0ca042253 Add compatible module and rename groupId to org.apache.dubbo (#1952)
* remove dubbo-test-examples and dubbo-test-benchmark

* rename package to org.apache.dubbo

* support old SPI file

* remove final for RpcException and URL

* add debug sysout in UT

* add debug info in UT

* ignore 2 cases temporary

* add finally clear for SHUTDOWN_WAIT_KEY property

* clear SHUTDOWN_WAIT_KEY before test

* add dubbo SPI and interface bridge class

* support EchoService and GenericService

* rename groupId to org.apache.dubbo

* add debug info for UT
2018-06-19 11:31:09 +08:00
ken.lj 82905e14da bump version to 2.7.0-SNAPSHOT 2018-06-06 10:30:19 +08:00
ken.lj 1e729afa0a [maven-release-plugin] prepare for next development iteration 2018-05-24 17:52:17 +08:00
ken.lj 5eeb240337 [maven-release-plugin] prepare release dubbo-2.6.2 2018-05-24 17:51:14 +08:00
ken.lj d7b3eaffd9 Go back to 2.6.2-SNAPSHOT to prepare for the next release. 2018-05-21 21:20:46 +08:00
ken.lj a6401e64b5 [maven-release-plugin] prepare for next development iteration 2018-05-14 21:25:37 +08:00
ken.lj afab04c53e [maven-release-plugin] prepare release dubbo-2.6.2 2018-05-14 21:25:19 +08:00
ken.lj a9c975c809 Bump version to 2.6.2-SNAPSHOT 2018-05-14 20:58:39 +08:00
ken.lj 944d5208b4 Bump version to 2.6.2-SNAPSHOT 2018-05-14 20:46:53 +08:00
ken.lj f5de637fcc Bump version to 2.6.2 for release 2018-05-10 17:21:43 +08:00
ken.lj 7f052f18fd upgrade to 2.6.2-SNAPSHOT 2018-04-26 19:26:34 +08:00
ken.lj 1503d6deee We need to change the version to SNAPSHOT to satisfy release:prepare 2018-04-26 19:22:49 +08:00
Ian Luo 20aa3f0b2f manually merge the work made by pull request #1491 on master branch (#1554)
* Manually merge pull request #1486, to make travis ci and codecov work after apache incubator transition.

* update pom license, scm, maillists, issuemanagement, add DISCLAIMER (#1491)
2018-04-04 22:54:17 -05:00
ken.lj 4a5c5e200d
Merge pull request #1389, refactor dubbo deployment process
Fixes #1322
2018-03-06 06:04:31 -06:00