Commit Graph

39 Commits

Author SHA1 Message Date
heliang666s 3e4fda20bb
Update the comment content in pom.xml to be consistent (#14039) 2024-04-08 16:34:36 +08:00
hyhnet d50adb7c83
fix typos (#13858)
Co-authored-by: Cyrus <yecity@gmail.com>
2024-03-10 11:22:59 +08:00
huazhongming f7a32be429
Remove unused dependency (#13554)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-12-22 10:25:53 +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
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
KamTo Hung f05662a66d
optimize JsonUtils (#12057) 2023-04-11 11:24:55 +08:00
suncairong163 308aea12ec
Feature/dubbo rest 3.2 spring annotaion fix (#12043) 2023-04-10 19:12:01 +08:00
suncairong163 912deb69a8
Feature/3.2 rest protocol provider (#11640) 2023-04-05 14:10:53 +08:00
尔等同学 7e51047cb0
delete never thrown exception (#11674) 2023-02-27 20:09:15 +08:00
Albumen Kevin 0df34a1a20
Remove ExtensionLoader getExtension usage (#10971) 2022-12-22 10:02:22 +08:00
Albumen Kevin 1fbeed8e55
Remove public modifier in metadata and registry (#10980) 2022-11-22 10:47:54 +08:00
cnjxzhao 8acf34d8e3
3.1-Error code is managed with constants (#10771) (#10843) 2022-11-01 07:52:17 +08:00
sunchaser-lilu eb0e25e55f
docs: Fix some punctuation problems and incorrect writing position of ASF license header (#10660) 2022-09-23 14:06:21 +08:00
hdyztmdqd 06cb5cdd3f
Optimization code (#10158)
* Use StringBuilder#append(Char) to improve performance

* replace with lambda

* The original implementation calls the get method twice.Replace it with computeIfAbsent.

Co-authored-by: huangdeyuan <295258290@qq.com>
2022-06-27 11:16:15 +08:00
Albumen Kevin 675cd4bb13
[3.0] Exact json utils (#10156) 2022-06-16 14:54:31 +08:00
Albumen Kevin 225c2089a1
[3.0] Optimize Converter to cache (#9861)
* [3.0] Optimized Converter to cache

* add asf header

* fix compile
2022-03-31 09:49:13 +08:00
ken.lj b2a4f612ec
3.0 service discovery metadata refactor (#9506) 2021-12-29 10:56:05 +08:00
Albumen Kevin f33398f857
JDK17 Support for Dubbo (#9062)
* Add JDK17 Support for Javaassist

* compact javaassist

* compact javaassist

* opt code

* fix compile

* fix classpath

* add ant

* tmp fix

* fix ut

* change name

* Refactor get class

* remove reflect get stackTrace

* Fix support jdk 17

* Add jdk 17 to ut

* Add jdk 17 to ut

* update mockito version

* update jacoco

* ignore java compile

* add open

* fix ut

* fix ut

* fix jupiter api

* fix pom

* disable zk 3.4

* disable script router in jdk 17

* remove curator5

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix zk

* remove test scope

* fix ut

* add open

* fix ut

* add curator

* fix pom

* fix pom

* enable debug

* remove add open

* add open profile

* auto activate open

* disable test in zk

* refactor zk dependency

* remove curator test

* add zookeeper dependency

* fix compile

* change zk default wait time

* change zk default wait time

* fix ut

* set throwable message by constructor

* Add unit prepare jdk 17 support

* fix zk dependency

* remove jackson-databind
2021-12-27 13:18:15 +08:00
Albumen Kevin c1bb96affb
Remove all method with param directly return in RestService (#9234) 2021-11-08 13:27:02 +08:00
Albumen Kevin 988c00f594
Remove param directly return in RestService (#9233) 2021-11-08 13:19:46 +08:00
Gong Dewei eba466e0c8
[3.0] improve unit test efficiency (#8877)
* speed up maven building, disable update snapshot, remove unnecessary repositories

* reduce shutdown wait time

* update maven version to fix build error such as "java.lang.IllegalStateException: Entry [id:..][route:{s}->...][state:null] has not been leased from this pool", see
 https://issues.apache.org/jira/browse/HTTPCORE-634 (httpcore 4.4.14)

* add shutdown timeout for netty4

* fix scope model

* read server shutdown wait time before destroy

* Add shutdown timeout for triple protocol

* Improve register center of tests

* set shutdown wait time as attribute of ProtocolServer

* Fix reconnect and close

* fix closePromise
2021-09-23 17:38:19 +08:00
DittoTool 914c3777bb
Inefficient Usages of Java Collections (#8784)
* Transform two LinkedHashMap objs to HashMap objs

* Transform a LinkedHashMap obj to HashMap obj

The map object is actually not used.

* Transform a LinkedHashMap obj to HashMap obj

* Transform a LinkedHashMap obj to HashMap obj

* Transform a LinkedHashSet obj to HashSet obj

* Transform a LinkedHashSet obj to HashSet obj

* Transform a LinkedList obj to ArrayList obj

* Transform an ArrayList obj to HashSet obj

* Transform two ArrayList objs to LinkedList objs

* Transform an ArrayList obj to LinkedList obj

* Fix a compile error

* Update FileSystemDynamicConfiguration.java

* Update FileSystemDynamicConfiguration.java
2021-09-14 13:58:18 +08:00
Gong Dewei 5c2161aa0e
[3.0] Multi instance - multi module config/deploy and spring support (#8789)
* Add spring support for multi instance

* Fix testMultiModuleApplication

* polish ApplicationModel and so on

* destroy application when all module are removed

* Extract ApplicationDeployer and ModuleDeployer, add ModuleConfigManager, add spring support for module manage

* Fix ut

* Initialize SpringExtensionInjector

* Fix DubboHealthIndicatorTest

* Fix SpringExtensionInjector avoid using not completed Spring ApplicationContext

* Prepare application instance before refer services, fix SpringXmlConfigTest

* App index starts from 1 in each FrameworkModel

* Add ConfigScopeModelInitializer, Refactor DubboShutdownHook

* Register bean with class is change to getOrRegisterBean

* Fix ShutdownTelnetTest

* Fix missing dependency

* Fix not found ApplicationModel bean in spring context

* Add module deploy and reload test

* Put deployer to scope model attributes

* Add getDeployer() to ApplicationModel/ModuleModel
2021-09-14 10:17:07 +08:00
hunjipo 0b067c628b
Use StringBuilder#append(Char) to improve performance (#8169)
* To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.

* fix ReflectUtils#getName error

Co-authored-by: praychen <pray9612>
2021-07-08 21:51:35 +08:00
Albumen Kevin 0e66de1c61
[3.0] Code reformat (#8019)
* convert files, add checker

* rename id

* tab to space

* change git attributes auto convert

* fix end new line

* fix end new line

* fix end new line

* ignore generated files

* override tomcat-embed-core version

* add ignore for codestyle/checkstyle.xml

* add ignore for codestyle/checkstyle.xml

* add rat ignore

* add suppression

* force update

* disable zk dynamic configurator
2021-06-10 20:13:39 +08:00
Albumen Kevin 8bc9257f4e
Migrate master bugfix (#7927) 2021-06-01 14:14:35 +08:00
xiaoheng1 175d85f961
Fix testPublishConfigCas exec fail (#7664)
* fix testPublishConfigCas exec fail

* fix AbstractInterfaceBuilderTest.build test case.

* disable testGetResource
2021-04-30 15:02:53 +08:00
GuoHao cdac24856b
Fix codestyle and license (#7137) 2021-01-26 21:27:46 +08:00
Robert LU 7580232b4a
[Dubbo-7029] new format ServiceDefinition (#7029) 2021-01-10 19:02:52 +08:00
ken.lj 95bee527a1 Merge branch '2.7.6-release'
# Conflicts:
#	dubbo-dependencies-bom/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper/pom.xml
#	pom.xml
2020-03-31 18:14:02 +08:00
Huang YunKun 369907ebff
fix checkstyle issue for ServiceRestMetadataStorage.java 2020-03-31 11:31:32 +08:00
huangdx0726 40be2972e3
[dubbo-5876] Remove unused variable (#5879) 2020-03-28 23:44:04 +08:00
Mercy Ma af4cff2846
Resolve the License issue (#5903) 2020-03-23 15:58:16 +08:00
ken.lj be9259950f modify files not meet ASF license requirements 2020-03-23 13:11:40 +08:00
Mercy Ma 56f1c1861b
2.7.6 Refactor + Enhancement (#5772)
* Polish /apache/dubbo#5745 : Increasing the stack size in the start.sh

* Polish /apache/dubbo#5297 : Only one of the multiple registration centers using nacos can register

* Polish /apache/dubbo#5442 : VERSION_KEY和GROUP_KEY为空时,注册到NACOS的服务名与alibaba实现不一致,导致无法消费

* Polish /apache/dubbo#5442 : Merge upstream/master

* Polish /apache/dubbo##5239 : Mock字段注入异常

* Polish /apache/dubbo##5239 : Mock字段注入异常

* Polish /apache/dubbo#5770 : Removing the interinal JDK API from FileSystemDynamicConfiguration

* Polish /apache/dubbo#5771 : [Enhancement] Refactor the APT test-cases implementation of dubbo-metadata-processor in Java 9+

* Bugfix for the test-cases
2020-02-21 19:56:32 +08:00
Mercy Ma 7b0ae127a9
2.7.6 REST Metadata (#5738)
* Polish /apache/dubbo#4687 : Remove the duplicated test code in dubbo-config-spring

* Polish /apache/dubbo#4674 & /apache/dubbo#4470

* Polish /apache/dubbo#5093 : Revert the previous commit

* Polish apache/dubbo#5093 : [Feature] Dubbo Services generate the metadata of REST services

* Polish apache/dubbo#5306 : [Migration] Upgrade the @since tags in Javadoc migration cloud native to master

* Polish apache/dubbo#5306 : [Migration] Upgrade the @since tags in Javadoc migration cloud native to master

* Polish apache/dubbo#5309 : [ISSURE] The beans of Dubbo's Config can't be found on the ReferenceBean's initialization

* Polish apache/dubbo#5312 : Resolve the demos' issues of zookeeper and nacos

* Polish apache/dubbo#5313 : [Migration] migrate the code in common module from cloud-native branch to master

* Polish apache/dubbo#5316 : [Refactor] Replace @EnableDubboConfigBinding Using spring-context-support

* Polish apache/dubbo#5317 : [Refactor] Refactor ReferenceAnnotationBeanPostProcessor using Alibaba spring-context-suuport API

* Polish apache/dubbo#5321 : Remove BeanFactoryUtils

* Polish apache/dubbo#5321 : Remove AnnotatedBeanDefinitionRegistryUtils

* Polish apache/dubbo#5321 : Remove AnnotationUtils

* Polish apache/dubbo#5321 : Remove ClassUtils

* Polish apache/dubbo#5321 : Remove BeanRegistrar

* Polish apache/dubbo#5321 : Remove ObjectUtils

* Polish apache/dubbo#5321 : Remove PropertySourcesUtils

* Polish apache/dubbo#5325 : [Migration] To migrate dubbo-metadata-api from cloud-native branch

* Polish apache/dubbo#5326 : [Migration] To migrate dubbo-metadata-processor from cloud-native branch

* Polish apache/dubbo#5329 : [Feature] To add the default metadata into ServiceInstance

* Polish apache/dubbo#5339 : [Refactor] Refactor the DynamicConfiguration interface

* Polish bugfix

* Fixes test cases

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

# Conflicts:
#	dubbo-configcenter/dubbo-configcenter-zookeeper/src/test/java/org/apache/dubbo/configcenter/support/zookeeper/ZookeeperDynamicConfigurationTest.java
#	dubbo-metadata/dubbo-metadata-api/src/test/java/org/apache/dubbo/metadata/DynamicConfigurationServiceNameMappingTest.java

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

# Conflicts:
#	dubbo-configcenter/dubbo-configcenter-zookeeper/src/test/java/org/apache/dubbo/configcenter/support/zookeeper/ZookeeperDynamicConfigurationTest.java
#	dubbo-metadata/dubbo-metadata-api/src/test/java/org/apache/dubbo/metadata/DynamicConfigurationServiceNameMappingTest.java

* Polish /apache/dubbo#5721 : [Enhancement] Setting the default IDs for Dubbo's Config Beans

* Polish /apache/dubbo#5729 : [Optimization] To remove EnableDubboConfigBinding and EnableDubboConfigBindings

* Polish /apache/dubbo#5594 : [Feature] Add the resolver of ServiceRestMetadata based on Java Reflection

* Polish /apache/dubbo#5736 : [Feature] Introducing Conversion features

* Polish /apache/dubbo#5737 : [Feature] Introducing "dubbo-metadata-processor" module

* Polish /apache/dubbo#5594 : Change the Metadata implementation

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases

* Polish /apache/dubbo#5594 : Fixed test cases
2020-02-17 20:15:43 +08:00
ken.lj a7a26d8977 Revert "revert metadata related changes"
This reverts commit 50315fe3d1.
2019-11-15 13:30:32 +08:00
ken.lj 8d7e483bbd Revert "mreged changes from metadata"
This reverts commit 5f89039177, reversing
changes made to d4ba7f906a.
2019-11-15 13:22:35 +08:00
ken.lj 50315fe3d1 revert metadata related changes 2019-11-15 11:20:14 +08:00