Commit Graph

1589 Commits

Author SHA1 Message Date
robin977 711de7c2a0
Adds metrics initialization metrics for the service interface(#12850) (#12892)
* Fixed the observable collection thread pool indicator

* Adds metrics initialization metrics for the service interface(#12850)

---------

Co-authored-by: robin <pengrobin607@gmail.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-08-26 20:54:08 +08:00
Albumen Kevin 2a5b437d58
Support check if qos server is started (#12952) 2023-08-23 19:00:07 +08:00
dependabot[bot] 631c1e0f24
Bump org.aspectj:aspectjweaver from 1.9.19 to 1.9.20 (#12930)
Bumps [org.aspectj:aspectjweaver](https://github.com/eclipse/org.aspectj) from 1.9.19 to 1.9.20.
- [Release notes](https://github.com/eclipse/org.aspectj/releases)
- [Commits](https://github.com/eclipse/org.aspectj/commits)

---
updated-dependencies:
- dependency-name: org.aspectj:aspectjweaver
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 18:33:19 +08:00
Albumen Kevin 85b03bca56
Support keep running on spring closed with properties (#12912)
* Support keep running on spring closed with properties

* name
2023-08-16 15:15:13 +08:00
Albumen Kevin 972a0814b9
Fix Spring Listener order (#12911) 2023-08-16 14:30:52 +08:00
TomlongTK 1c48ba262c
use ProtocolUtils.isGeneric judge generic type (#12876) 2023-08-11 14:15:20 +08:00
kanghailin 45405ff340
Optimize code in DubboSpringInitializer (#12834) 2023-08-09 19:15:27 +08:00
wxbty 0add70e3f5
Support multi registries metrics key (#12582)
* init

* fix

* fix

* fix

* fix

* add licence

* fix testcase

* fix testcase

* lowcase

* remove unuse

* opt notify&directory

* fix post&finish

* revert name

* move registerMetadataAndInstance

* move metrics from

* remove some unuse

* remove unuse

* fix style

* fix style

* remove unuse

* remove unuse

* fix default&& move post

* add multi registry lables for subscribe

* fix

* fix url

* fix url

* Fix uts

* add registry key for directory

* Compatible with empty registry keys

* remove unus

* Support registry type

* Fix attachment

* Code enhancement

* Fix registry key

* Fix service discovery notify

* fix

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-07-31 13:44:46 +08:00
Albumen Kevin 97227e4e8e
PutAll configs to application environment instead of override for spring properties (#12812) 2023-07-29 19:19:43 +08:00
Albumen Kevin 5caa8524a9
Check if delay is -1 before property for manual publish (#12794) 2023-07-26 11:09:55 +08:00
dependabot[bot] 2e60ddfdaf
Bump org.springframework.boot:spring-boot-starter-test (#12786)
Bumps [org.springframework.boot:spring-boot-starter-test](https://github.com/spring-projects/spring-boot) from 2.7.13 to 2.7.14.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.13...v2.7.14)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 21:03:04 +08:00
Albumen Kevin ba5ca1c150
Remove -1 delay usage (#12767) 2023-07-25 20:38:36 +08:00
Albumen Kevin cec66fa263
Fix compact with spring 3.2.x (#12741) 2023-07-17 14:20:51 +08:00
Albumen Kevin e322b17301
Check if initialized for ReferenceBean (#12723)
* Check if initialized for ReferenceBean

* fix name
2023-07-14 13:52:07 +08:00
liufeiyu1002 1c5265073b
Fix deadlock when starting (#12659) 2023-07-14 09:52:11 +08:00
suncairong163 d452ea4924
Feature/dubbo32. resteasy filter&intercept support (#12492)
* export path matcher & Invoker to user

* export path & invoker to user

* add path matcher service method compare ut

* fix httpMethodMatch

* fix bug

* add resteasy filter & intercept

* add comment

* add filter  & intercept  ut

* add filter  & intercept  ut

* fix content-type add headers

* some modify request

* some change request & add response filter

* add licence

* some modify request

* add rest easy exception mapper

* add filter context ,execute filter by loop

* add test dependency

* response filter on class modify

* fix ClassNoFoundError by add onclass & some chang request

* fix change request

* add response intercept ut

* add response intercept ut

---------

Co-authored-by: suncr <suncairong@moresec.cn>
Co-authored-by: huazhongming <crazyhzm@gmail.com>
2023-07-12 12:26:03 +08:00
Albumen Kevin d2eb2ba3d7
Performance opt (#12680) 2023-07-11 14:42:33 +08:00
Albumen Kevin f2e9fb9b31
Fix reference bean has not been init if deployer is early started (#12697) 2023-07-08 15:34:12 +08:00
Albumen Kevin 6ad735d74a
Fix server shutdown await timeout (#12644) 2023-07-03 10:16:14 +08:00
Albumen Kevin 563a0e472a
Enable spring bean autowired to get scope model in advance (#12608)
* Enable spring bean autowired to get scope model in advance

* Fix uts

* Fix uts
2023-06-29 10:31:36 +08:00
dependabot[bot] 150b19e84a
Bump spring-boot-starter-test from 2.7.12 to 2.7.13 (#12601)
Bumps [spring-boot-starter-test](https://github.com/spring-projects/spring-boot) from 2.7.12 to 2.7.13.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.12...v2.7.13)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 19:56:35 +08:00
Albumen Kevin e79e0214cb
Enhance register type of ServiceConfig (#12583)
* Enhance register type of ServiceConfig

* fix else
2023-06-22 14:30:06 +08:00
Albumen Kevin 3b7934f512
Fix registry repeat export same service (#12578)
* Fix registry repeat export same service

* fix uts

* Fix export

* Fix export
2023-06-21 11:29:54 +08:00
Albumen Kevin 25c2b3808a
Disable register if registry disable register (#12579)
* Disable register if registry disable register

* Fix tag

* Fix tag
2023-06-21 09:23:40 +08:00
Albumen Kevin ea35f7ed5c Revert "refactor: migrate tracing core from boot-start to dubbo deployer (#12453)"
This reverts commit a613cae2
2023-06-20 10:02:30 +08:00
Albumen Kevin a941985c99
Skip check ignored extensions (#12571) 2023-06-19 21:29:14 +08:00
Albumen Kevin 3160602072
Rename getModelEnvironment to modelEnvironment (#12551) 2023-06-19 09:34:06 +08:00
Albumen Kevin b20d63ef1f
Disable all filters for internal service (#12515)
* Disable all filters for internal service

* fix uts

* fix uts
2023-06-18 15:12:38 +08:00
Zhang Xiang Wei 467622aac6
fix https://github.com/apache/dubbo/issues/12526 (#12527) 2023-06-18 13:45:06 +08:00
conghuhu a613cae2f3
refactor: migrate tracing core from boot-start to dubbo deployer (#12453)
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-17 19:54:12 +08:00
Albumen Kevin 83b4114a9f
Fix ServiceConfig Ref unable to toString (#12511) 2023-06-13 08:35:20 +08:00
Ken Liu 3fa518505f
Add log for remote configuration. (#12294)
* add log for remote configuration.

* Give dynamic routing rule notification 'info'  log level.

* remove unused imports

* revert warn log change

* fix import

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-06-12 20:30:42 +08:00
Albumen Kevin 784edd7a85
Support Reference check timeout (#12506) 2023-06-12 19:28:03 +08:00
Albumen Kevin c7a69a60a8
Check registry in checkAndUpdateSubConfigs (#12486) 2023-06-10 18:15:20 +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 f35ac09353
Publish Module deployer state event (#12477)
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-08 12:48:55 +08:00
Albumen Kevin a758a1e7e0
Resolve conflicts of spring bean (#12474)
* Resolve conflicts of spring bean

* Fix import

* Fix uts

* Fix uts

* Fix uts
2023-06-08 12:47:57 +08:00
Albumen Kevin 04d132fee1
Check reference after register (#12472)
* Check reference after register

* Add logs

* Fix method

* Fix style

* Fix remove

* Fix remove
2023-06-08 10:13:55 +08:00
TomlongTK c4702142bf
add metrics enable switch (#12389)
* add metrics enable switch

* default false

* default false

* set default true and fix unit test

* xsd set default true

* rename enabled to enableRpc

* make enableRpc default value to true

* fix camel name

* remove default value

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-07 18:54:20 +08:00
Albumen Kevin ba308219c6
Register services after module started (#12450) 2023-06-07 13:49:49 +08:00
dependabot[bot] 2227f0b4aa
Bump testcontainers from 1.18.1 to 1.18.3 (#12456)
Bumps [testcontainers](https://github.com/testcontainers/testcontainers-java) from 1.18.1 to 1.18.3.
- [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.18.1...1.18.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 17:37:33 +08:00
Albumen Kevin f60ac914f4
Use Dubbo Proxy instead of Spring Proxy (#12439)
* Use Dubbo Proxy instead of Spring Proxy

* Fix exception
2023-06-01 18:46:29 +08:00
wxbty 55a8940ad1
Add default enable for protocol and histogram (#12137)
* fix default enable for agg and histogram

* fix default enable for agg and histogram

* add default protocol

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-01 17:19:25 +08:00
Albumen Kevin 3fd0a5a922
Remove some utils usage from alibaba-spring-context (#12442) 2023-06-01 16:04:00 +08:00
胡俊 1697a331c3
Display indicator data in KEY, VALUE format (#12273)
* metrics default.

* check style

* test fail

* metrics default update

* qos

* test

* default metrics reporter

* native image

* If no specific metrics type is configured and there is no Prometheus dependency in the dependencies.

* prometheus set

* MeterRegistry dependency check

* errorcode check fail

* CHECKSTYLE

* 1.null check
2.method replace

* default metricsreport register

* format response

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-05-26 15:28:07 +08:00
dependabot[bot] 7561ab45fe
Bump spring-boot-starter-test from 2.7.11 to 2.7.12 (#12369)
Bumps [spring-boot-starter-test](https://github.com/spring-projects/spring-boot) from 2.7.11 to 2.7.12.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v2.7.11...v2.7.12)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 20:11:16 +08:00
YAGAMIL 9b9688c6a2
When PropertyValue "parameters" is [null] or [EMPTY], return to HashMap that can be modified (#12354)
* org.apache.dubbo.config.spring.util.DubboAnnotationUtils.convertParameters中put对象为空时,返回空的HashMap而不是EmptyMap以支持后续put

* getParameters 补充this

---------

Co-authored-by: 宿尘 <tablojhin.lb@alibaba-inc.com>
2023-05-21 15:53:34 +08:00
Albumen Kevin 08727e8e27
Metrics and Metadata Service Export when needed (#12346) 2023-05-19 16:18:12 +08:00
songxiaosheng c22db81a8b
🐛 fix prometheus init failed when start (#12349)
* 🐛 fix prometheus init failed when start

* 🐛 fix prometheus init failed when start

* 🐛 fix prometheus init failed when start
2023-05-19 15:30:18 +08:00
AYue 5fb15a130d
fix: DefaultModuleDeployer start fail, but export MetadataService(#12315) (#12316)
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-05-18 17:45:14 +08:00