Commit Graph

1398 Commits

Author SHA1 Message Date
wxbty 838b7c9c4b
Generic bugfix in bean mode (#12249) 2023-05-08 07:41:04 +08:00
suncairong163 5f776a7a40
rest netty server add tls (#12207)
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-05-03 09:09:26 +08:00
suncairong163 ab85403d47
rest provider interface judge modify (#12163)
* rest impl class support by changing  service config  interface judge

* add test System.exit(1)

* remove  test System.exit(1)

* add Override annotation

* add comment to containsRestProtocol

* refacor method name
2023-05-02 21:42:07 +08:00
Albumen Kevin 25a08a2b40
Support offline notify (#12211)
* Support offline notify

* Add log
2023-05-02 21:25:11 +08:00
Albumen Kevin 3552347d44
Support Shutdown Gracefully (#12118) 2023-04-28 14:21:47 +08:00
TomlongTK fa8e09201f
packable method extension (#12199)
* packable method extension

* support content-type

* packable method extension

* support content-type

* get packable factory type from configuration

* Add new SPI to dubbo-all(dubbo-distribution/dubbo-all/pom.xml in shade plugin) to being transformed

* At present, Use CONTENT_PROTO as content-type, while support customize content-type, need fix it

* remove unused import class

---------

Co-authored-by: longqiang02 <longqiang02@maoyan.com>
2023-04-28 10:55:01 +08:00
huazhongming 83240f5083
Fix npe occurs during client graceful offline. (#12190)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-04-27 11:51:39 +08:00
suncairong163 f7c90572ec
fix 405 && differnt httpmethod path doubleCheck (#12152) 2023-04-21 10:39:00 +08:00
MartinDai b7471424d9
fix comments (#12143)
Co-authored-by: daming <xiaoming.dai@perfma.com>
2023-04-20 16:50:57 +08:00
earthchen 1729d5b69e
fix npe (#12146) 2023-04-20 16:24:54 +08:00
suncairong163 817659bd23
Feature/fix no javax validation dependency&spring controller support (#12085)
* Simplify rest client

* Fix protocol

* fix codec

* tmp disable test

* rest metadata resolver add  interface judge

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* ADD TODO

* RESOLVE HTTP client java.net.SocketException: socket closed

* RESOLVE HTTP client java.net.SocketException: socket closed

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* fix some review advice

* fix some review advice

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* fix some review advice

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* URLConnectionRestClient getMessage

* remove unused import

* import fix

* code merge

* remove unused import

* code merge

* code merge

* some fix

* code merge

* code merge

* code merge

* code merge

* Rest http server

* rest protocol do export

* code merge

* rest protocol provider

* rest protocol provider

* rest protocol  response

* rest protocol  netty request

* Fix conflicts

* change  restResult InputStream to bytes protect from  fd leak

* merge code

* Fix import

* Fix import

* Fix uts

* Remove unused code

* Fix logger

* Update okhttp version

* Update okhttp version

* rest protocol  add AnotherUserRestService service ut

* rest protocol  add String & byteArray codec

* Fix version

* Fix uts

* rest protocol  add XMLCodec

* stream release

* ServiceRestMetadata port change int to Integer

* service RestMetadata service map init

* xml codec change  for xxe

* Fix import

* code style

* code style

* Fix shade

* change for rest client recreate & destroy bugs

* remove recreate double check for code merge

* rest client destroy check

* add todo

* consumer merge code

* rest response

* BodyProviderParamParser bytes

* merge upstream 3.2 to 3.2_consumer_proxy_invocation_handler

* merge upstream 3.2 to feature/3.2-rest_protocol_provider

* fix rest provider ut

* path compare

* path compare

* fix provider  rest ut

* fix provider  rest ut

* fix provider  rest ut

* testJaxrsPathPattern ut

* JAXRSServiceRestMetadataResolverTest  ut

* JAXRSServiceRestMetadataResolverTest  ut

* add netty http server

* add netty http server response encode

* rest netty  http server  codec

* rest netty  http server  codec

* some fix  netty http server

* add spring mvc ut  for netty http server

* okhttp_version to 3.14.2 to resolve dependency conflict

* Fix license

* add rest protocol exception mapper

* add TODO ExceptionMapper should be static or instance

* add TODO OKHttpRestClient implements of version >=4.0

* fix licence format

* fix ut

* fix testPathMatcher

* url context path

* format context path from url

* fix illegal logger method invocations:

* remove org.jetbrains.annotations.NotNull

* add Newly created SPI interface  to dubbo-all

* some  format

* merge 3.2

* merge 3.2

* merge 3.2

* Revert "merge 3.2"

This reverts commit ad19804437.

* merge upstream 3.2

* change HttpHandler throws   IOException

* deal with  RPCInvocation build error

* request is present

* remove  request facade unused code

* remove   thirdpart web  server code

* remove   thirdpart web  server code

* remove   unused imports

* remove   unused code

* rest protocol directly implement AbstractProtocol

* code style

* change method  modifier

* form body  java bean convert

* change header name  to RestHeaderEnum

* attachment header

* http handler error info

* rest header distinguish from attachment

* some log & double path check

* remove RestMethodMetadata ServiceRestMetadata refer

* reconstruct http handler

* content-type judge

* add RestInvoker

* setTargetServiceUniqueName

* path mapper & http handler

* remove unused code

* netty thread pool

* RestHttpRequestDecoder @ChannelHandler.Sharable

* add rest client ut

* fix metadata resolver test

* fix metadata resolver test

* add some description to code

* add error test

* error message append

* add request address

* request address

* http netty server reconstruct

* http netty server TODO add SslServerTlsHandler

* replace all pair use

* pair fix

* add NumberUtils ut

* add hex number  ut

* add no annotation primitive ut

* remove unsed code

* throw exception

* add ut

* rename constants & remove unused code

* add ut

* add ut

* add ut

* add ut

* remove ut

* add restClient ut

* add restClient ut

* add DataParseUtils ut

* add path matcher ut

* add request template ut

* add request template ut

* fix xml codec

* some fix

* Class to Class<?>

* media type judge fix and add codec ut

* remove print

* add header map param ut

* add header map param null ut

* MediaTypeUtil ut

* add param & header & multimap     ut

* remove unused import

* fix error log format

* test header param

* test header number  param

* add MediaType ut

* add MediaType & metadata resolve ut

* imports

* add netty request facade ut

* some  format

* add ExceptionMapperTest

* add hasExceptionMapper pre judge

* fix exception mapper throws

* change  static ExceptionMapper to instance

* resolve Java_Zulu_jdk/17.0.6-10/x64 param is not throwable , exception
mapper ut

* fix reflects util some detail

* remove unused code

* add null arg ut

* rest invoker response future complete Exceptionally

* fix http netty server executor

* set rpc context request & response

* add rest token attachment

* add http method ut

* remove unused code

* some fix

* remove keep-alive header

* remove unused code

* close channel

* add response connection:close head

* fix no content-type

* fix no content-type form

* spring @RequestMapping or @RestController

* add exception mapper  type judge

* remove content-length of OKHttpRestClient
 GET request

* remove unused import

* fix ConstraintViolationException not exist error

* fix handleConstraintViolationException

* AbstractServiceRestMetadataResolver support spring controller service

* service type null judge

* spring controller support

* add todo

* ConstraintViolationException dependency pre judge

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: suncr <suncairong@moresec.cn>
2023-04-20 15:12:51 +08:00
earthchen 43bbf9f727
Refactor pb version (#12109)
* refactor pb version

* fix

* fix

* fix

* fix
2023-04-18 10:04:52 +08:00
dependabot[bot] f618016656
Bump protobuf-java from 3.22.2 to 3.22.3 (#12102)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.22.2 to 3.22.3.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.22.2...v3.22.3)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  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-04-17 14:14:03 +08:00
Albumen Kevin 736d9965db 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-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleHttp2Protocol.java
#	dubbo-xds/pom.xml
#	pom.xml
2023-04-15 07:27:39 +08:00
earthchen 129b4fa2fd
fix tri stub exception (#12093)
* fix tri stub exception

* fix
2023-04-14 17:20:30 +08:00
earthchen 5308cc81bf
Fix tri headerfilter 3.1 (#12070)
* change headerfilter scope

* fix tri header filter
2023-04-12 19:46:15 +08:00
Albumen Kevin 7e3064f9b6
Deny allow (#12068)
* Deny allow

* Fix test

* Fix test

* trust metadata info

* trust hessian

* Fix compile

* Fix compile

* Fix test

* Fix test

* Fix test
2023-04-12 00:15:07 +08:00
Albumen Kevin bc34399771 Merge branch 'apache-3.1' into apache-3.2 2023-04-11 22:58:05 +08:00
earthchen 6b1de07b91
remove unused code (#11459) 2023-04-11 22:57:21 +08:00
aamingaa 718bdc1a65
feat: triple exception self (#12039)
* feat: triple exception self

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: test default

* feat: change protobuf version

* fix compile

* feat: fix equals

* feat: fix ut。。。

* feat: deserialize

* feat: remove unuse

* Revert "feat: remove unuse"

This reverts commit e72f713319.

* remove unused code

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: earthchen <earthchen@apache.org>
2023-04-11 22:56:58 +08:00
Albumen Kevin d4032660d5
Fix Dubbo ReferenceCount OOM (#12031)
Co-authored-by: earthchen <earthchen1996@gmail.com>
2023-04-11 18:58:22 +08:00
Albumen Kevin bc85a3f29a
Performance Optimization (#11975) 2023-04-11 16:10:06 +08:00
earthchen 85e1f97116
change headerfilter scope (#12058)
* change headerfilter scope

* fix

* fix import
2023-04-11 14:03:41 +08:00
KamTo Hung f05662a66d
optimize JsonUtils (#12057) 2023-04-11 11:24:55 +08:00
icodening 3134056ac0
optimize ThreadlessExecutor (#11965)
* 1. optimize ThreadlessExecutor
2. tri response works on user threads

* 1. optimize ThreadlessExecutor
2. tri response works on user threads

* 1. optimize ThreadlessExecutor
2. tri response works on user threads

* 1. optimize ThreadlessExecutor
2. tri response works on user threads

* 1.optimize ThreadlessExecutor
2.tri response works on user threads

* threadless only sync mode

* threadless only sync mode

---------

Co-authored-by: earthchen <earthchen1996@gmail.com>
2023-04-11 10:52:59 +08:00
dependabot[bot] 9b01940d30
Bump os-maven-plugin from 1.6.2 to 1.7.1 (#12048)
Bumps [os-maven-plugin](https://github.com/trustin/os-maven-plugin) from 1.6.2 to 1.7.1.
- [Release notes](https://github.com/trustin/os-maven-plugin/releases)
- [Commits](https://github.com/trustin/os-maven-plugin/compare/os-maven-plugin-1.6.2...os-maven-plugin-1.7.1)

---
updated-dependencies:
- dependency-name: kr.motd.maven:os-maven-plugin
  dependency-type: direct:production
  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-04-10 19:13:05 +08:00
suncairong163 308aea12ec
Feature/dubbo rest 3.2 spring annotaion fix (#12043) 2023-04-10 19:12:01 +08:00
suncairong163 5cd5b32b8b
Feature/3.2 beta7 rest formdata fix (#12040)
* Fix conflict

* Fix header

* fix import

* fix import

* fix import

* fix import

* fix import

* Fix json

* revert some change

* Remove jsonfactory

* Remove jsonfactory

* Simplify rest client

* Fix protocol

* fix codec

* tmp disable test

* rest metadata resolver add  interface judge

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* ADD TODO

* RESOLVE HTTP client java.net.SocketException: socket closed

* RESOLVE HTTP client java.net.SocketException: socket closed

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* fix some review advice

* fix some review advice

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* fix some review advice

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* URLConnectionRestClient getMessage

* remove unused import

* import fix

* code merge

* remove unused import

* code merge

* code merge

* some fix

* code merge

* code merge

* code merge

* code merge

* Rest http server

* rest protocol do export

* code merge

* rest protocol provider

* rest protocol provider

* rest protocol  response

* rest protocol  netty request

* Fix conflicts

* change  restResult InputStream to bytes protect from  fd leak

* merge code

* Fix import

* Fix import

* Fix uts

* Remove unused code

* Fix logger

* Update okhttp version

* Update okhttp version

* rest protocol  add AnotherUserRestService service ut

* rest protocol  add String & byteArray codec

* Fix version

* Fix uts

* rest protocol  add XMLCodec

* stream release

* ServiceRestMetadata port change int to Integer

* service RestMetadata service map init

* xml codec change  for xxe

* Fix import

* code style

* code style

* Fix shade

* change for rest client recreate & destroy bugs

* remove recreate double check for code merge

* rest client destroy check

* add todo

* consumer merge code

* rest response

* BodyProviderParamParser bytes

* merge upstream 3.2 to 3.2_consumer_proxy_invocation_handler

* merge upstream 3.2 to feature/3.2-rest_protocol_provider

* fix rest provider ut

* path compare

* path compare

* fix provider  rest ut

* fix provider  rest ut

* fix provider  rest ut

* testJaxrsPathPattern ut

* JAXRSServiceRestMetadataResolverTest  ut

* JAXRSServiceRestMetadataResolverTest  ut

* add netty http server

* add netty http server response encode

* rest netty  http server  codec

* rest netty  http server  codec

* some fix  netty http server

* add spring mvc ut  for netty http server

* okhttp_version to 3.14.2 to resolve dependency conflict

* Fix license

* add rest protocol exception mapper

* add TODO ExceptionMapper should be static or instance

* add TODO OKHttpRestClient implements of version >=4.0

* fix licence format

* fix ut

* fix testPathMatcher

* url context path

* format context path from url

* fix illegal logger method invocations:

* remove org.jetbrains.annotations.NotNull

* add Newly created SPI interface  to dubbo-all

* some  format

* merge 3.2

* merge 3.2

* merge 3.2

* Revert "merge 3.2"

This reverts commit ad19804437.

* merge upstream 3.2

* change HttpHandler throws   IOException

* deal with  RPCInvocation build error

* request is present

* remove  request facade unused code

* remove   thirdpart web  server code

* remove   thirdpart web  server code

* remove   unused imports

* remove   unused code

* rest protocol directly implement AbstractProtocol

* code style

* change method  modifier

* form body  java bean convert

* change header name  to RestHeaderEnum

* attachment header

* http handler error info

* rest header distinguish from attachment

* some log & double path check

* remove RestMethodMetadata ServiceRestMetadata refer

* reconstruct http handler

* content-type judge

* add RestInvoker

* setTargetServiceUniqueName

* path mapper & http handler

* remove unused code

* netty thread pool

* RestHttpRequestDecoder @ChannelHandler.Sharable

* add rest client ut

* fix metadata resolver test

* fix metadata resolver test

* add some description to code

* add error test

* error message append

* add request address

* request address

* http netty server reconstruct

* http netty server TODO add SslServerTlsHandler

* replace all pair use

* pair fix

* add NumberUtils ut

* add hex number  ut

* add no annotation primitive ut

* remove unsed code

* throw exception

* add ut

* rename constants & remove unused code

* add ut

* add ut

* add ut

* add ut

* remove ut

* add restClient ut

* add restClient ut

* add DataParseUtils ut

* add path matcher ut

* add request template ut

* add request template ut

* fix xml codec

* some fix

* Class to Class<?>

* media type judge fix and add codec ut

* remove print

* add header map param ut

* add header map param null ut

* MediaTypeUtil ut

* add param & header & multimap     ut

* remove unused import

* fix error log format

* test header param

* test header number  param

* add MediaType ut

* add MediaType & metadata resolve ut

* imports

* add netty request facade ut

* some  format

* add ExceptionMapperTest

* add hasExceptionMapper pre judge

* fix exception mapper throws

* change  static ExceptionMapper to instance

* resolve Java_Zulu_jdk/17.0.6-10/x64 param is not throwable , exception
mapper ut

* fix reflects util some detail

* remove unused code

* add null arg ut

* rest invoker response future complete Exceptionally

* fix http netty server executor

* set rpc context request & response

* add rest token attachment

* add http method ut

* remove unused code

* some fix

* remove keep-alive header

* remove unused code

* close channel

* add response connection:close head

* fix no content-type

* fix no content-type form

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
Co-authored-by: suncr <suncairong@moresec.cn>
2023-04-10 07:34:02 +08:00
earthchen bd57066e71
tri serial check (#12029)
* serial check

* fix checkstyle

* fix

* fix instance address url
2023-04-08 16:49:20 +08:00
suncairong163 6ac8c83e51
Feature/3.2 beta7 rest token (#12030)
* add ParameterTypesComparator  for metadataMap

* add ASF for new file

* Fix conflict

* Fix header

* fix import

* fix import

* fix import

* fix import

* fix import

* Fix json

* revert some change

* Remove jsonfactory

* Remove jsonfactory

* Simplify rest client

* Fix protocol

* fix codec

* tmp disable test

* rest metadata resolver add  interface judge

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* ADD TODO

* RESOLVE HTTP client java.net.SocketException: socket closed

* RESOLVE HTTP client java.net.SocketException: socket closed

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* fix some review advice

* fix some review advice

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* fix some review advice

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* URLConnectionRestClient getMessage

* remove unused import

* import fix

* code merge

* remove unused import

* code merge

* code merge

* some fix

* code merge

* code merge

* code merge

* code merge

* Rest http server

* rest protocol do export

* code merge

* rest protocol provider

* rest protocol provider

* rest protocol  response

* rest protocol  netty request

* Fix conflicts

* change  restResult InputStream to bytes protect from  fd leak

* merge code

* Fix import

* Fix import

* Fix uts

* Remove unused code

* Fix logger

* Update okhttp version

* Update okhttp version

* rest protocol  add AnotherUserRestService service ut

* rest protocol  add String & byteArray codec

* Fix version

* Fix uts

* rest protocol  add XMLCodec

* stream release

* ServiceRestMetadata port change int to Integer

* service RestMetadata service map init

* xml codec change  for xxe

* Fix import

* code style

* code style

* Fix shade

* change for rest client recreate & destroy bugs

* remove recreate double check for code merge

* rest client destroy check

* add todo

* consumer merge code

* rest response

* BodyProviderParamParser bytes

* merge upstream 3.2 to 3.2_consumer_proxy_invocation_handler

* merge upstream 3.2 to feature/3.2-rest_protocol_provider

* fix rest provider ut

* path compare

* path compare

* fix provider  rest ut

* fix provider  rest ut

* fix provider  rest ut

* testJaxrsPathPattern ut

* JAXRSServiceRestMetadataResolverTest  ut

* JAXRSServiceRestMetadataResolverTest  ut

* add netty http server

* add netty http server response encode

* rest netty  http server  codec

* rest netty  http server  codec

* some fix  netty http server

* add spring mvc ut  for netty http server

* okhttp_version to 3.14.2 to resolve dependency conflict

* Fix license

* add rest protocol exception mapper

* add TODO ExceptionMapper should be static or instance

* add TODO OKHttpRestClient implements of version >=4.0

* fix licence format

* fix ut

* fix testPathMatcher

* url context path

* format context path from url

* fix illegal logger method invocations:

* remove org.jetbrains.annotations.NotNull

* add Newly created SPI interface  to dubbo-all

* some  format

* merge 3.2

* merge 3.2

* merge 3.2

* Revert "merge 3.2"

This reverts commit ad19804437.

* merge upstream 3.2

* change HttpHandler throws   IOException

* deal with  RPCInvocation build error

* request is present

* remove  request facade unused code

* remove   thirdpart web  server code

* remove   thirdpart web  server code

* remove   unused imports

* remove   unused code

* rest protocol directly implement AbstractProtocol

* code style

* change method  modifier

* form body  java bean convert

* change header name  to RestHeaderEnum

* attachment header

* http handler error info

* rest header distinguish from attachment

* some log & double path check

* remove RestMethodMetadata ServiceRestMetadata refer

* reconstruct http handler

* content-type judge

* add RestInvoker

* setTargetServiceUniqueName

* path mapper & http handler

* remove unused code

* netty thread pool

* RestHttpRequestDecoder @ChannelHandler.Sharable

* add rest client ut

* fix metadata resolver test

* fix metadata resolver test

* add some description to code

* add error test

* error message append

* add request address

* request address

* http netty server reconstruct

* http netty server TODO add SslServerTlsHandler

* replace all pair use

* pair fix

* add NumberUtils ut

* add hex number  ut

* add no annotation primitive ut

* remove unsed code

* throw exception

* add ut

* rename constants & remove unused code

* add ut

* add ut

* add ut

* add ut

* remove ut

* add restClient ut

* add restClient ut

* add DataParseUtils ut

* add path matcher ut

* add request template ut

* add request template ut

* fix xml codec

* some fix

* Class to Class<?>

* media type judge fix and add codec ut

* remove print

* add header map param ut

* add header map param null ut

* MediaTypeUtil ut

* add param & header & multimap     ut

* remove unused import

* fix error log format

* test header param

* test header number  param

* add MediaType ut

* add MediaType & metadata resolve ut

* imports

* add netty request facade ut

* some  format

* add ExceptionMapperTest

* add hasExceptionMapper pre judge

* fix exception mapper throws

* change  static ExceptionMapper to instance

* resolve Java_Zulu_jdk/17.0.6-10/x64 param is not throwable , exception
mapper ut

* fix reflects util some detail

* remove unused code

* add null arg ut

* rest invoker response future complete Exceptionally

* fix http netty server executor

* set rpc context request & response

* add rest token attachment

* add http method ut

* remove unused code

* some fix

* remove keep-alive header

* remove unused code

* close channel

* add response connection:close head

---------

Co-authored-by: suncr <suncairong@moresec.cn>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-04-07 09:44:55 +08:00
Albumen Kevin e3053618dd Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/CodecSupport.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/ReflectionPackableMethod.java
2023-04-06 19:33:34 +08:00
earthchen 03647452d5
triple serialize check (#11984)
* no wrap

* remove unused code

* fix ut

* fix ut
2023-04-06 19:32:21 +08:00
Albumen Kevin 04d4825b88
Fix removeExporterChangeListener NPE (#12015) 2023-04-05 14:17:11 +08:00
suncairong163 912deb69a8
Feature/3.2 rest protocol provider (#11640) 2023-04-05 14:10:53 +08:00
MieAh aeb2bec1d7
Opt ScopeClusterInvoker docs and uts (#11971)
* Add detailed docs and reconstruct code order.

* Optimize comments and exception information

* Improve unit testing to achieve 100% coverage.
2023-03-31 15:48:35 +08:00
earthchen 741b7854af
Revert "feat: change default mode (#11653)" (#11973)
This reverts commit feaa530589.
2023-03-30 19:20:08 +08:00
Mengyang Tang e54494024a
Provider side payload checking (#11885)
* Provider side payload checking

* Optimize judgment conditions and reduce useless calculations

* bugfix
2023-03-28 16:43:13 +08:00
earthchen 7b9e65ed06
Revert "optimize performance. decode in user thread (#11879)" (#11917)
This reverts commit 95865b0461.
2023-03-24 23:35:13 +08:00
Albumen Kevin 27f18c5c53 Merge branch 'apache-3.1' into apache-3.2 2023-03-24 20:23:37 +08:00
Albumen Kevin 7b1199a98e
Reject if response do not match any request (#11882) 2023-03-24 18:15:51 +08:00
icodening 92421ba634
triple server batch flush (#11723)
Co-authored-by: earthchen <earthchen1996@gmail.com>
2023-03-24 14:04:53 +08:00
icodening 95865b0461
optimize performance. decode in user thread (#11879)
* optimize performance: decode in user thread

* optimize performance: decode in user thread

* optimize performance: decode in user thread
2023-03-24 11:15:25 +08:00
wxbty 3f8a16f0ac
support exception process when service not found (#11088) 2023-03-23 19:50:11 +08:00
aamingaa feaa530589
feat: change default mode (#11653) 2023-03-22 13:25:15 +08:00
MieAh 46aff44c2f
Support choose local invoke in runtime instead of startup (#11531) 2023-03-21 17:01:33 +08:00
dependabot[bot] cb0cdafc5a
Bump reactor-core from 3.5.3 to 3.5.4 (#11845)
Bumps [reactor-core](https://github.com/reactor/reactor-core) from 3.5.3 to 3.5.4.
- [Release notes](https://github.com/reactor/reactor-core/releases)
- [Commits](https://github.com/reactor/reactor-core/compare/v3.5.3...v3.5.4)

---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-core
  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-03-17 10:12:29 +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
Mengyang Tang 6b7a735a4d
Triple read compressor from config (#11850) 2023-03-16 18:36:21 +08:00
GuoHao 4f6528fb86
Call onClose() when deser error (#11838) 2023-03-16 10:23:19 +08:00
Mengyang Tang b19f89bef7
Fix issue #11790 (#11824) 2023-03-16 09:49:00 +08:00
icodening df0241b6dd
fix npe (#11830)
* fix npe

* fix npe
2023-03-15 14:03:44 +08:00
earthchen 96dfd20c10
Reactor tri diy exception api (#11829)
* refactor

* fix
2023-03-15 13:14:22 +08:00
dependabot[bot] b4f8c18a1d
Bump protobuf-java from 3.22.0 to 3.22.2 (#11802)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.22.0 to 3.22.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.22.0...v3.22.2)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  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-03-13 17:03:57 +08:00
Albumen Kevin 8e3af257b1 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
2023-03-10 16:54:15 +08:00
Albumen Kevin d0a1bd0143
Fix recreate client after destroy (#11780)
* Fix recreate client after destroy

* Fix uts
2023-03-10 16:25:56 +08:00
suncairong163 11f45d8726
Feature/resolve samples dependency conflict (#11705) 2023-03-09 10:40:14 +08:00
Albumen Kevin d7113006ca Merge branch 'apache-3.1' into apache-3.2 2023-03-06 19:50:19 +08:00
icodening cd3ef2a27f
tri create Http2StreamChannel async (#11698)
* tri create Http2StreamChannel async

* tri create Http2StreamChannel async

* tri create Http2StreamChannel async

---------

Co-authored-by: earthchen <earthchen1996@gmail.com>
2023-03-03 16:38:11 +08:00
尔等同学 c272af38c6
Reactor some newInstance method (#11686) 2023-03-03 06:43:37 +08:00
Mengyang Tang a293e7e7c8
Implement service-level payload (#11517) 2023-03-02 20:14:01 +08:00
常珂洁 5483693119
fix: remove redundancy exceptions (#11676) 2023-02-28 13:32:31 +08:00
Albumen Kevin 32ada2487d
Fix heartbeat failed if serialization changed (#11512)
fixes #11268
2023-02-27 20:31:00 +08:00
尔等同学 7e51047cb0
delete never thrown exception (#11674) 2023-02-27 20:09:15 +08:00
一个不知名的Java靓仔 f8f89f2a71
replaced with EN assert (#11670) 2023-02-27 14:38:57 +08:00
一个不知名的Java靓仔 4be3c796cc
optimize the multi params request performance of triple in wrap mode (#11672) 2023-02-27 14:25:39 +08:00
Albumen Kevin 7ac9949b4c Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/manager/DefaultExecutorRepository.java
2023-02-26 15:24:19 +08:00
Ken Liu 8c786cdf01
Add 'label match' support for override and tag rules (#11094) 2023-02-26 15:17:36 +08:00
earthchen 9e38c48b68
fix tri wrapper pack npe (#11656) 2023-02-25 20:12:34 +08:00
一个不知名的Java靓仔 837b9c5515
remove duplicate flowcontroller listener (#11642)
* remove duplicate flowcontroller listener

* remove duplicate flowcontroller listener
2023-02-25 18:26:47 +08:00
aamingaa 848edaa80f
Fix service name mapping check failed (#11643) 2023-02-25 17:13:44 +08:00
jojocodeX 638b193c2c
dubbo-security Jackson error (#11622) 2023-02-23 15:07:38 +08:00
Mengyang Tang c5a03c9458
Rest bugfix & optimization (#11617)
* Modifier optimize

* rawtypes problem optimize

* Remove commented redundant code

* Constants optimize

* Fix consistency bug

* Support exception mapper extension

* resolve conflict
2023-02-23 09:40:25 +08:00
dependabot[bot] b62883c177
Bump protobuf-java from 3.21.12 to 3.22.0 (#11615)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.21.12 to 3.22.0.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.21.12...v3.22.0)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  dependency-type: direct:production
  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-02-22 20:09:55 +08:00
dependabot[bot] 17258a996d
Bump reactor-core from 3.5.2 to 3.5.3 (#11610)
Bumps [reactor-core](https://github.com/reactor/reactor-core) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/reactor/reactor-core/releases)
- [Commits](https://github.com/reactor/reactor-core/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-core
  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-02-22 19:54:20 +08:00
suncairong163 02a59e2f40
3.2 consumer proxy invocation handler (#11108)
* add dubbo mvc feign client to support mvc remote call

* add dubbo mvc dispatcher servlet

* add dubbo mvc dispatcher servlet

* add   MvcDispatcherServlet  unit test

* add dubbo mvc feign client to support mvc remote call

* add dubbo mvc dispatcher servlet

* add Dubbo mvc Provider RPCInvocation create

* mvc remove unused code

* remove mvc unused test code

* remove unused code

* BodyProviderParamParser param type modify

* modify pom dependency version

* add  dubbo-metadata-api  dependency

* 新增依赖Jakarta支持 tomcat10

* ApplicationModel load  ParamParser

* ParamParser header & param map convert

* ParamParser header & param map convert

* 1 增加mvc协议
2 删除多余的resource包

* 1 增加mvc协议
2 增加netter server for http

* 重构 NettyHttpClient NettyHttpServer

* add path parse util & requestTemplate

* add mvc consumer http-connection

* mvc change  HttpConnectionPreBuildIntercept name and add SerializeBodyIntercept extend

* 1. 迁移mvc代码到rest下,合并http统一解析逻辑
2. 删除多余新增的remoting 调用模块

* 解决报错

* 1 抽象http 调用
2 改造rest调用风格

* 修改方法命名

* 修改方法名

* 删除多余的clients

* 还原restprotocol,逻辑迁移至新分支  3.2_refactor_rest_protocol

* add provider  PathMatcher

* add   ServiceRestMetadata  PathMatcher

* add   ServiceRestMetadata  PathMatcher

* add jax_rs and mvc annotation class constants

* refactor PathMatcher name

* add annotation class

* maintain rest metadata

* maintain  jax_rs and mvc annotation

* maintain  jax_rs and mvc annotation

* remove mvc module

* remove rest mvc code to code review

* add springmvc & rest annotation api module

* add springmvc & rest annotation api module

* add pathMatcher equal  test

* remove mvc module

* rest provider RPCInvocation build

* RPCInvocation build add dubbo-metadata-api dependency

* RestMethodMetadata add method to consumer service map

* RestMethodMetadata add method to consumer service map

* rest consumer HttpInvokeInvocationHandler

* rest consumer HttpInvokeInvocationHandler

* add dubbo-metadata-api dependency

* dubbo-rpc pom fix

* 移动模块

* 删除模块引用

* consumer metadata  resolve

* RestProtocol consumer

* RestProtocol consumer

* requestConvert adaptive

* JSON serializeObject to outputStream

* JsonUtilsTest  serialize & unSerialize

* ok http client

* http client reconstruct

* rest protocol BaseConvert

* rest protocol  ParamParser reconstruct

* rest protocol  addKeepAliveHeader

* requestTemplate isBodyEmpty()

* remove unused code

* create ConsumerParseContext

* body default byte[0]

* rest http message decode

* writeTextContent &  writeJsonContent & writeFormContent

* remove mvc & rest annotation module

* remove provider code

* fix some pr advice

* Add ASF license header for  newly created files

* move RestClientFactory  code  to dubbo-remoting-http

* exact  request convert code to a factory class

* modify  request convert code

* modify dubbo-dependencies-bom

* modify dubbo-remoting-http pom

* refactor spi  resource file  name

* dubbo-metadata-api remove
dubbo-configcenter-zookeeper dependency for
 cyclic reference

* newly create file add ASF

* fix compile error

* Enhance Code

* add rest protocol ConsumerParamParser

* some fix

* rest json content-type test

* RestProtocol merge doRefer code to protocolBindingRefer

* remove restInvoker

* rest protocol add JsonFactory to support custom

* rest protocol add JsonFactory to support custom

* jaxrs rest ParamNoAnnotatedProcessor  support fix

* add rest http message encode

* add rest http message encode

* rest okHttpClient requestBody fix

* rest jaxrs form content-type support

* RestProtocol protocolBindingRefer reconstruct

* RestProtocol protocolBindingRefer reconstruct  object to invoker & Invocation

* move RequestTemplate to remoting-http

* rest unit test

* add httpclient  & url connection rest client

* Enhance invocation

* enhance

* add ParameterTypesComparator  for metadataMap

* add ASF for new file

* Fix conflict

* Fix header

* fix import

* fix import

* fix import

* fix import

* fix import

* Fix json

* revert some change

* Remove jsonfactory

* Remove jsonfactory

* Simplify rest client

* Fix protocol

* fix codec

* tmp disable test

* rest metadata resolver add  interface judge

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* ADD TODO

* RESOLVE HTTP client java.net.SocketException: socket closed

* RESOLVE HTTP client java.net.SocketException: socket closed

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* fix some review advice

* fix some review advice

* add rest metadata  resolve unit test & fix  AbstractServiceRestMetadataResolver

* org.apache.dubbo.metadata.rest.ParamType null exclude & add default accept header

* RestProtocolTest

refer add context path
unit test

* some fix

* fix some review advice

* add spring mvc rest protocol unit test

* rest protocol http response code deal

* rest protocol http response message

* URLConnectionRestClient getMessage

* remove unused import

* import fix

* code merge

* code merge

* code merge

* code merge

* code merge

* Fix conflicts

* change  restResult InputStream to bytes protect from  fd leak

* merge code

* Fix import

* Fix import

* Fix uts

* Remove unused code

* Fix logger

* Update okhttp version

* Update okhttp version

* rest protocol  add AnotherUserRestService service ut

* rest protocol  add String & byteArray codec

* Fix version

* Fix uts

* rest protocol  add XMLCodec

* stream release

* ServiceRestMetadata port change int to Integer

* service RestMetadata service map init

* xml codec change  for xxe

* Fix import

* code style

* code style

* Fix shade

---------

Co-authored-by: suncr <suncairong@moresec.cn>
Co-authored-by: Liujunjie <42363259+LiujunjieALiling@users.noreply.github.com>
Co-authored-by: junjie3.liu <junjie3.liu@ximalaya.com>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-02-22 14:02:16 +08:00
Albumen Kevin 62509fb40f Merge remote-tracking branch 'apache/3.1' into apache-3.2 2023-02-17 13:58:02 +08:00
GuoHao dc068918b3
[Triple] Fix boxed type methods (#11577)
* Fix boxed type methods

* Fix style

* Revert changes to fix it
2023-02-16 14:27:48 +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 ee26eb865d
Set timeout value to string (#11565)
* Set timeout value to string

* Fix in AbstractInvoker

* Fix timeout

* Exact code

* Exact code
2023-02-15 16:52:45 +08:00
huazhongming 59a62a66b2
Revert clear response operation of timeoutfilter (#11562)
* revert clear response operation of timeoutfilter

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

* remove useless import

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

---------

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-02-15 13:36:01 +08:00
aamingaa e78a0b05e6
feat: fix oom (#11571) 2023-02-15 10:29:29 +08:00
earthchen 502b4c86df
Tri grpc compatibility (#11544) 2023-02-13 21:16:52 +08:00
Mengyang Tang 0eb0e01b39
Modifier optimization, add 'final' modifier. (#11503) 2023-02-10 15:31:32 +08:00
Albumen Kevin 90ae7524c0 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
2023-02-06 17:44:17 +08:00
Albumen Kevin 63e5bc0033 Merge branch '3.1.6-release' into apache-3.1 2023-02-06 17:41:37 +08:00
earthchen 0489702e1c
Fix tri future (#11455)
* fix tri return future

* fix ut

* fix npe

* fix sonar
2023-02-06 17:29:06 +08:00
一个不知名的Java靓仔 c0b257adac
issue #11458:Triple stub support async mode (#11464)
* issue #11458:Triple stub support async mode

* issue 11458:Triple stub support async mode

* issue 11458:Triple stub support async mode
2023-02-06 17:28:49 +08:00
dependabot[bot] 9f0c57965b
Bump reactor-core from 3.4.19 to 3.5.2 (#11470)
Bumps [reactor-core](https://github.com/reactor/reactor-core) from 3.4.19 to 3.5.2.
- [Release notes](https://github.com/reactor/reactor-core/releases)
- [Commits](https://github.com/reactor/reactor-core/compare/v3.4.19...v3.5.2)

---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-core
  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-02-06 17:27:09 +08:00
一个不知名的Java靓仔 c79ed3bf04
optimized sync on channel write (#11440) 2023-02-03 15:11:57 +08:00
Albumen Kevin c44873e9b2 Fix Class Check 2023-02-03 11:49:33 +08:00
Albumen Kevin 6154b1de0b
Enhance check (#11450) 2023-02-03 10:57:08 +08:00
Albumen Kevin 548db9861f Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/config/ApplicationConfig.java
2023-02-03 09:10:44 +08:00
Albumen Kevin 47f7419d56
Fix classname (#11444) 2023-02-02 16:15:47 +08:00
Albumen Kevin c71a05a58c
Enhance Check (#11419) 2023-02-01 16:33:20 +08:00
Albumen Kevin cbcbac9ce6
Introduce Invocation#getInvokedInvokers to get invokers for ClusterFilter (#11359) 2023-01-20 14:01:14 +08:00
mxsm d2eb0ef458
[ISSUE #11294] Optimize ConcurrentHashMap#computeIfAbsent have performance problem in jdk1.8 (#11326) 2023-01-19 23:07:12 +08:00
dependabot[bot] 4836bf7919
Bump protobuf-java from 3.19.6 to 3.21.12 (#11356)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.19.6 to 3.21.12.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.19.6...v3.21.12)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-19 22:48:56 +08:00
Albumen Kevin 52c4b95466 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/ReflectionPackableMethod.java
2023-01-17 11:19:04 +08:00
Albumen Kevin b6c5a26606
Enhance class forname in triple (#11316) 2023-01-17 11:17:34 +08:00
earthchen d5e9c58846
change class loader (#11312) 2023-01-17 11:17:27 +08:00
earthchen 8cc353962f
Serialization and deserialization use classes in the wrapper (#11302) 2023-01-17 11:13:07 +08:00
Albumen Kevin 40827037e1 Fix conflicts 2023-01-12 20:13:57 +08:00
Albumen Kevin c2e5438a43 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboInvoker.java
#	dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.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/TripleInvoker.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleProtocol.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/call/TripleClientCall.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/AbstractStream.java
2023-01-12 19:48:07 +08:00
huazhongming 7a5680b559
Fix countdown assignment problem (#11275) 2023-01-12 17:32:55 +08:00
earthchen fe50ac5d79
Remove grpc-status-details when no pb exists (#11249)
* remove pb status

* fix

* fix

* fix

* fix
2023-01-12 14:54:33 +08:00
earthchen 9b2b71f022
Fix issue 11161 (#11187)
* fix DefaultMultipleSerialization

* fix DefaultMultipleSerialization

* fix error

* fix error

* fix
2023-01-12 14:48:53 +08:00
dependabot[bot] 7c305bbb68
Bump protobuf-java from 3.18.3 to 3.19.6 in /dubbo-rpc/dubbo-rpc-triple (#11282)
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.18.3 to 3.19.6.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.18.3...v3.19.6)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-12 07:51: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 84c1c35aae
Add serialization check (#11217) 2023-01-11 11:41:52 +08:00
Albumen Kevin 3d64f1192d
Update protobuf-java version in both dependency and plugin (#11261) 2023-01-10 14:13:12 +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
earthchen 2765deb98d
fix tri upper error (#11214)
* fix error

* fix

* fix

* fix

* fix

* fix
2022-12-31 13:41:31 +08:00
ShenFeng312 854d85953d
fix #11033 (#11144) 2022-12-30 16:27:16 +08:00
Albumen Kevin 3375f727e1 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	.github/workflows/build-and-test-pr.yml
#	dubbo-common/src/main/java/org/apache/dubbo/common/constants/LoggerCodeConstants.java
2022-12-30 15:53:09 +08:00
Andy Cheung 2c6a933d3a
Change some test-related error code to a separate series. (#11219)
* Revert changes in FailsafeLoggerTest.

* COMMON_FAILED_REFLECT -> COMMON_REFLECTIVE_OPERATION_FAILED. Add 81-1.

* 1-25 -> 81-2.

* 1-23 / 5-19 -> 81-3 / 81-4.
2022-12-30 15:50:42 +08:00
Albumen Kevin 0e4997b252 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/common/constants/LoggerCodeConstants.java
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java
#	dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/event/listener/ServiceInstancesChangedListener.java
#	dubbo-rpc/dubbo-rpc-api/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.rpc.Filter
2022-12-29 17:33:02 +08:00
Albumen Kevin 58131051c3
Fix active limit filter not work (#11206) 2022-12-26 20:36:24 +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 0df34a1a20
Remove ExtensionLoader getExtension usage (#10971) 2022-12-22 10:02:22 +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
Andy Cheung 1bfd354d3d
Change constant name of error code 0-2, merge 4-19 to 0-2. Add error code of 'port is overridden' hint. (#11181)
* Change 4-19 to 0-2 (same actually).

* Use error code 4-19.

* Add cause.
2022-12-21 23:14:29 +08:00
一个不知名的Java靓仔 3c103d40cd
issue 5900:add bytebuddy support (#11117)
* issue 5900:add bytebuddy support

* remove unused import

* edit comment

* rename CompositeMethodInvoker

* add unit test

* fix ut
2022-12-20 23:38:08 +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 705b327885
Revert #10839, #11082 and #11086 (#11160) 2022-12-16 12:53:22 +08:00
earthchen 5fdc88d09e
Fix tri convert upper header (#11075) 2022-12-16 11:06:00 +08:00
Albumen Kevin e40edb7081 Fix import 2022-12-15 20:20:41 +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
earthchen 342e4f5bb6
fix tri filter onError (#11133)
* fix tri filter onError

* fix tri filter onError

* fix tri filter onError

* fix ut
2022-12-14 21:34:56 +08:00
Starfish-Ning d17160591c
Adaptive loadbalance (#10745) 2022-12-13 16:32:49 +08:00
wlazjr c768ad8f13
[DUBBO-11047][issue]Remove direct dependency of protobuf-java (#11084)
* replace protobuf depency in triple rpc with customer encoding/decoding

* fix tripleRequestWrapper may has no args then throw npe

* 1 Set BuiltinService to disable by default
2 make protobuf-java provided

* 1 fix triBuiltinServiceTest ut

Co-authored-by: 伴农 <tony.wl@alibaba-inc.com>
2022-12-12 20:41:00 +08:00
Albumen Kevin ab10b8a189 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/deploy/DefaultApplicationDeployer.java
2022-12-12 16:24:01 +08:00
huazhongming e3ee0cc689
Fix TimeoutCountDown objects being passed through and support for method-level configuration of cut-off timeout-count (#11120)
* fix timout-countdown being passed

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

* timeout-countdown supports method level shutdown capability

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

* fix triple invoker test

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

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2022-12-12 16:03:12 +08:00
Albumen Kevin 9508acdbd8
Fix triple default version (#11068) 2022-12-12 15:34:17 +08:00
shanuo ee9a3d53d4
ssl abstract and remoteapi remove netty (#11099) 2022-12-12 14:35:13 +08:00
Albumen Kevin 20a4444fbe
Fix flow controller trigger application init (#11112) 2022-12-11 09:26:09 +08:00
Albumen Kevin 5c082eaefa Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	dubbo-native/src/main/java/org/apache/dubbo/remoting/api/pu/PortUnificationTransporter$Adaptive.java
#	dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcInvocation.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/call/AbstractServerCallListener.java
2022-12-08 17:44:11 +08:00
earthchen 7cccc4f193
opt some tri code (#11079)
* opt some code

* remove unused if

* fix npe
2022-12-07 20:11:15 +08:00
huazhongming a795ff73df
Get system properties from context (#11082) 2022-12-06 15:45:45 +08:00
Albumen Kevin 0d2cab47c9
Enhance isolate executor (#11069) 2022-12-06 09:58:27 +08:00
huazhongming 1470c7ca1e
Cache jvm system parameters to prevent each call from being executed, affecting performance (#10839)
* Cache jvm system parameters to prevent each call from being executed, affecting performance

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

* fix npe

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

* optimization performance

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

* remove unused import

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

* add default config value

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

* change getProperty method

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

* change convert method

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

* change getInternalProperty by default value

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

* add overwrite cache api

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

* add clear cache api

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

* fix ut

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

* fix ut

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

* fix ut

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

* reset DubboBootstrap

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

* change serialization.security.check config to app scopemodel

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

* fix url without scopemodel

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

* fix url without scopemodel

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

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2022-12-05 15:37:33 +08:00
Andy Cheung 2f55e72ac9
Add error code support of ListenerInvokerWrapper. (#11065) 2022-12-05 11:07:21 +08:00
gold-fisher 3c68e9476e
Fixes #11044,solve remoteApplicationName is null, in mesh mode with t… (#11058)
* Fixes #11044,solve remoteApplicationName is null, in mesh mode with triple protocol.
2022-12-01 18:07:42 +08:00
Albumen Kevin 8c61f9b225 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-11-29 20:42:33 +08:00
cnjxzhao d07d89159f
Error code is managed with constants (#10771) (#11054) 2022-11-29 20:36:07 +08:00
huazhongming 4568958ef5
Adjust the logic of timeout, fix triple about timeout countdown function problem (#11030)
Signed-off-by: crazyhzm <crazyhzm@gmail.com>

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2022-11-28 16:56:31 +08:00
Albumen Kevin 4de9672008 Merge branch 'apache-3.1' into apache-3.2
# Conflicts:
#	.licenserc.yaml
#	dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/AbstractAnnotationBeanPostProcessor.java
#	dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessor.java
#	dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleClientStream.java
2022-11-28 14:24:34 +08:00