Commit Graph

966 Commits

Author SHA1 Message Date
尔等同学 c272af38c6
Reactor some newInstance method (#11686) 2023-03-03 06:43:37 +08:00
常珂洁 5483693119
fix: remove redundancy exceptions (#11676) 2023-02-28 13:32:31 +08:00
尔等同学 7e51047cb0
delete never thrown exception (#11674) 2023-02-27 20:09:15 +08:00
Albumen Kevin c4d6f94b2c
Introduce getConfig QoS Command (#11664)
* Introduce getConfig QoS Command

* Fix NPE

* Fix NPE
2023-02-27 12:33:04 +08:00
wxbty c041fa1f93
Observability task: registration center (#11493) 2023-02-25 17:22:44 +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
songxiaosheng f8980fe136
Add Consumer Metrics (#11542)
* consumer Metrics filter

* consumer Metrics filter

* fix some problem

* add keyword private final

* add keyword private final

* add consumer point

* rollback some file

* add some metrics

* fix some problem

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

* ♻️ refactor consumer meter collect

---------

Co-authored-by: lcb11 <46276651+lcb11@users.noreply.github.com>
Co-authored-by: lcb11 <2990024235@qq.com>
2023-02-20 16:03:57 +08:00
Albumen Kevin 976dc25bb9 Fix compile 2023-02-16 15:37:31 +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
Albumen Kevin 6c062586b4 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ApplicationModel.java
#	dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ModuleModel.java
#	dubbo-common/src/test/java/org/apache/dubbo/rpc/model/ApplicationModelTest.java
2023-02-16 14:16:12 +08:00
Albumen Kevin 7a774d21a6 Fix conflict 2023-02-16 11:24:20 +08:00
Albumen Kevin 1dfd06b381
Fix concurrent issue in scope model (#11525) 2023-02-16 10:40:31 +08:00
Albumen Kevin 988768e589 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/config/AbstractConfig.java
#	dubbo-common/src/test/java/org/apache/dubbo/common/utils/JsonUtilsTest.java
#	dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java
#	dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/ServiceNameMapping.java
#	dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ProfilerServerFilter.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleInvoker.java
2023-02-16 10:09:10 +08:00
Albumen Kevin d874a87303
Skip mapping retry if metadata config is invalid (#11323)
* Skip mapping retry if metadata config is invalid

* Fix uts
2023-02-15 15:50:35 +08:00
Albumen Kevin 551ff4a374
Enhance service discovery update interval (#11223)
* Enhance service discovery update interval

* Update DefaultApplicationDeployer.java
2023-02-15 07:17:13 +08:00
KamTo Hung ae98de212b
Perfect some code (#11533)
* Perfect some code
1. Replace filter...findAny…isPresent to anyMatch, we can reduce some circulation
2. Reduce some new ArrayList<>()
3. Add 'final' for member variable

* Perfect some code. (#11534)

* Perfect some code. (#11534)

* Perfect some code. (#11534)

* Perfect some code. (#11534)
2023-02-15 06:54:46 +08:00
Albumen Kevin b21baffa8c
Fix config absent when refresh (#11505) 2023-02-14 15:15:00 +08:00
KamTo Hung 6ded7b23ff
Fix hasPreparedInternalModule is always false. (#11535) (#11536)
* Fix hasPreparedInternalModule is always false. (#11535)

* Fix hasPreparedInternalModule is always false. (#11535)
2023-02-14 10:49:31 +08:00
jojocodeX bef06c8313
Metrics Count Optimization (#11529) 2023-02-14 07:33:58 +08:00
Webster cc32ebefa1
add thread pool metric (#11461)
* add thread pool metric,and run successfully

* add more thread pool metric,and run successfully

* delete comment

* avoid start import

* avoid start import and unused import

* avoid check

* ut pass

* Resolve unit test failures
The previous unit test run failed due to the introduction of thread pool metrics,
Unit tests now filter thread pool metrics

* Spin-off the applicationModel from the DefaultMetric Collector

---------

Co-authored-by: dongdong.yang <dongdong.yang@ly.com>
2023-02-12 08:57:35 +08:00
songxiaosheng 42cd91d8cd
Optimization dubbo meter pull delay and add dubbo version meter (#11457) 2023-02-08 14:43:45 +08:00
songxiaosheng e49663648d
🍱 provider collector extract to FrameworkModel scope (#11420) 2023-02-02 16:24:52 +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
dependabot[bot] 7439ae40b5
Bump testcontainers from 1.15.3 to 1.17.6 (#11367)
Bumps [testcontainers](https://github.com/testcontainers/testcontainers-java) from 1.15.3 to 1.17.6.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.15.3...1.17.6)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-28 11:22:49 +08:00
mxsm d2eb0ef458
[ISSUE #11294] Optimize ConcurrentHashMap#computeIfAbsent have performance problem in jdk1.8 (#11326) 2023-01-19 23:07:12 +08:00
Albumen Kevin f42f21bce8 Fix test conflict 2023-01-11 15:29:41 +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 fc00efd704
Fix test cases for service name mapping (#11280) 2023-01-11 14:30:19 +08:00
Albumen Kevin 84c1c35aae
Add serialization check (#11217) 2023-01-11 11:41:52 +08:00
Albumen Kevin 213363422e
Add mapping retry (#11265) 2023-01-11 10:47:37 +08:00
Albumen Kevin fbbca9d405
Fix config unable to serialize (#11267) 2023-01-10 14:12:17 +08:00
Albumen Kevin e87d896352 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-kubernetes/src/main/java/org/apache/dubbo/registry/kubernetes/KubernetesServiceDiscovery.java
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ReflectionBasedServiceDiscovery.java
2023-01-05 10:26:24 +08:00
Albumen Kevin ad79c9e8fd
Fix service instance update failed (#11236) 2023-01-05 10:17:14 +08:00
Albumen Kevin b8ea46d038 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/command/DefaultCommandExecutor.java
#	dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/ConnectionHandler.java
#	dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/AbstractServer.java
2023-01-04 17:36:49 +08:00
Andy Cheung 34168e6d0e
Merge error code 3-3 to 3-8, 6-4 to 99-0. (#11225)
* Replace LoggerCodeConstants.java with 3.2 branch.

* Add hints in the constant file.

* Add hints in the constant file. (2)

* Merge 3-3 to 3-8.

* 6-4 -> 99-0.

* 6-4 -> 99-0.

* 6-4 -> 99-0.

* 6-4 -> 99-0. (4)

* 6-4 -> 99-0. (5, Compatible)

* Change AbstractH2TransportListener's error code per @EarthChen's request.
2023-01-03 15:03:55 +08:00
Albumen Kevin 2a7dd3dc29
Fix error code in 3.2 branch (#11199)
* Fix error code in 3.2 branch

* Fix error code in 3.2 branch
2022-12-25 20:33:15 +08:00
Albumen Kevin 459a0f915b 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
#	pom.xml
2022-12-22 15:50:23 +08:00
Albumen Kevin 873df39a79 Merge branch '3.1.4-release' into apache-3.1 2022-12-22 15:47:28 +08:00
Albumen Kevin bb05764dd3
Fix Consumer ClassLoader Change (#11179)
* Fix Consumer ClassLoader Change

* Add test cases

* Fix uts
2022-12-21 23:29:42 +08:00
Albumen Kevin eba39fd65b Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/CacheableFailbackRegistry.java
2022-12-21 23:25:53 +08:00
Albumen Kevin 4a2566d2db
Lazy init scope model in config (#11142) 2022-12-21 11:56:21 +08:00
Albumen Kevin 80a15197e6 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcInvocation.java
2022-12-16 12:56:56 +08:00
Albumen Kevin 941f1b4530 Merge branch 'apache-3.1' into 3.1.4-release 2022-12-16 12:55:51 +08:00
Albumen Kevin 705b327885
Revert #10839, #11082 and #11086 (#11160) 2022-12-16 12:53:22 +08:00
Albumen Kevin 6682df3772 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/Constants.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/ReflectionPackableMethod.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleProtocol.java
2022-12-15 20:16:16 +08:00
Albumen Kevin b58a06443e Temporally disable MultiInstanceTest 2022-12-15 18:11:23 +08:00
Albumen Kevin b1ae0def58 Fix uts 2022-12-15 18:10:10 +08:00
Albumen Kevin 7ec01c0941 Fix testMultiProviderApplicationsStopOneByOne create new framework model 2022-12-15 17:26:17 +08:00
Albumen Kevin fc7f019a08 Disable pre check in MultiInstanceTest 2022-12-15 14:09:57 +08:00
Albumen Kevin 6cda325133
Add some check for MultiInstanceTest (#11139)
* Add some check for MultiInstanceTest

* Add some check for MultiInstanceTest

* Add some check for MultiInstanceTest
2022-12-15 12:40:36 +08:00