steverao

steverao

Member Since 5 years ago

@alibaba, Hangzhou, China

Experience Points
25
follower
Lessons Completed
45
follow
Lessons Completed
126
stars
Best Reply Awards
37
repos

106 contributions in the last year

Pinned
⚡ Protocol Buffers - Google's data interchange format
⚡ The Java gRPC implementation. HTTP/2 based RPC
⚡ Netty project - an event-driven asynchronous network application framework
⚡ Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
Activity
May
19
4 days ago
Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

为什么nacos不采用像apollo那样动态发布配置后 在客户端使用反射去更改配置值的 方式去动态更改配置?

问下各位大佬, nacos现在动态发布配置的机制是依赖spring的RefreshScope注解,RefreshScope注解配在配置所在的类头上,类似于这样: image

服务在线的情况下,发布这个配置,这会导致spring上下文重新加载,导致服务重启,表现为在注册中心(如eureka)上先down一下然后再up(虽然这个过程可能非常快),,为什么nacos不采用类似apollo的动态发布方式,也就是通过beanFactory找到对应的配置所在的类,然后用反射的方式修改具体配置的值,这样整个spring上下文是不重启的,服务不会重启。

这个说是springcloud/springcloudalibaba的标准导致目前的这个现状,所以在这里问问

steverao
steverao

这个问题我们在2021.x分支上做了部分优化的,具体可以见#2437,可以做到只刷新特定改动的配置,但是还不支持你说的不重启spring上下文。这块有兴趣可以一起来建设哈:)

好的,谢谢大佬, 这块很有兴趣, 请问大佬我可以在您说的这个2021.x分支上或者另外的分支上做代码提交以此来优化改进这个问题吗?或者可以先商量讨论下改动方法改动思路什么的?

嗯嗯,是的,在2021.x分支上改动就好了,可以先在这个issues下面留言说一下你这边详细的方案思路,我们可以一起看一下。

Activity icon
issue

steverao issue alibaba/spring-cloud-alibaba

steverao
steverao

[Discussion] Spring Cloud Alibaba向Mesh演进

经过过去几年的发展,Service Mesh凭借其自身独特的优势在微服务治理领域占据一席之地,当前一些主流框架和社区都陆续做了一些相关对接,比如 Dubbo Mesh,对于Spring Cloud Alibaba 通过支持xds协议支持Service Mesh这块大家有什么见解? 欢迎大家在该issues下留言讨论~

Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

为什么nacos不采用像apollo那样动态发布配置后 在客户端使用反射去更改配置值的 方式去动态更改配置?

问下各位大佬, nacos现在动态发布配置的机制是依赖spring的RefreshScope注解,RefreshScope注解配在配置所在的类头上,类似于这样: image

服务在线的情况下,发布这个配置,这会导致spring上下文重新加载,导致服务重启,表现为在注册中心(如eureka)上先down一下然后再up(虽然这个过程可能非常快),,为什么nacos不采用类似apollo的动态发布方式,也就是通过beanFactory找到对应的配置所在的类,然后用反射的方式修改具体配置的值,这样整个spring上下文是不重启的,服务不会重启。

这个说是springcloud/springcloudalibaba的标准导致目前的这个现状,所以在这里问问

steverao
steverao

这个问题我们在2021.x分支上做了部分优化的,具体可以见#2437,可以做到只刷新特定改动的配置,但是还不支持你说的不重启spring上下文。这块有兴趣可以一起来建设哈:)

May
18
5 days ago
Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

spring-cloud-alibaba-2.2.7.RELEASE运行example时报错

1.运行DubboSpringCloudProviderBootstrap类报错,像是jar依赖有问题? image

2.运行日志如下

"D:\Program Files\Java\jdk1.8.0_202\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51530,suspend=y,server=n -javaagent:C:\Users\EDY\AppData\Local\JetBrains\IdeaIC2021.3\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "D:\Program Files\Java\jdk1.8.0_202\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\dnsns.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\ext\zipfs.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_202\jre\lib\rt.jar;E:\work\code\spring-cloud-alibaba-2.2.7.RELEASE\spring-cloud-alibaba-examples\spring-cloud-alibaba-dubbo-examples\spring-cloud-dubbo-provider-sample\target\classes;D:\work\apache-maven-3.8.4\repo\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-web\5.2.15.RELEASE\spring-web-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-beans\5.2.15.RELEASE\spring-beans-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-core\5.2.15.RELEASE\spring-core-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-jcl\5.2.15.RELEASE\spring-jcl-5.2.15.RELEASE.jar;E:\work\code\spring-cloud-alibaba-2.2.7.RELEASE\spring-cloud-alibaba-starters\spring-cloud-starter-dubbo\target\classes;E:\work\code\spring-cloud-alibaba-2.2.7.RELEASE\spring-cloud-alibaba-starters\spring-cloud-alibaba-commons\target\classes;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-openfeign-core\2.2.9.RELEASE\spring-cloud-openfeign-core-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-autoconfigure\2.3.12.RELEASE\spring-boot-autoconfigure-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot\2.3.12.RELEASE\spring-boot-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-context\5.2.15.RELEASE\spring-context-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-expression\5.2.15.RELEASE\spring-expression-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.9.RELEASE\spring-cloud-netflix-ribbon-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-starter-aop\2.3.12.RELEASE\spring-boot-starter-aop-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-aop\5.2.15.RELEASE\spring-aop-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;D:\work\apache-maven-3.8.4\repo\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\work\apache-maven-3.8.4\repo\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\work\apache-maven-3.8.4\repo\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\work\apache-maven-3.8.4\repo\org\apache\dubbo\dubbo\2.7.13\dubbo-2.7.13.jar;D:\work\apache-maven-3.8.4\repo\org\javassist\javassist\3.23.1-GA\javassist-3.23.1-GA.jar;D:\work\apache-maven-3.8.4\repo\com\google\code\gson\gson\2.8.7\gson-2.8.7.jar;D:\work\apache-maven-3.8.4\repo\org\yaml\snakeyaml\1.26\snakeyaml-1.26.jar;D:\work\apache-maven-3.8.4\repo\com\alibaba\fastjson\1.2.70\fastjson-1.2.70.jar;D:\work\apache-maven-3.8.4\repo\org\apache\dubbo\dubbo-spring-boot-starter\2.7.13\dubbo-spring-boot-starter-2.7.13.jar;D:\work\apache-maven-3.8.4\repo\org\apache\dubbo\dubbo-spring-boot-autoconfigure\2.7.13\dubbo-spring-boot-autoconfigure-2.7.13.jar;D:\work\apache-maven-3.8.4\repo\org\apache\dubbo\dubbo-spring-boot-autoconfigure-compatible\2.7.13\dubbo-spring-boot-autoconfigure-compatible-2.7.13.jar;D:\work\apache-maven-3.8.4\repo\io\github\openfeign\feign-jaxrs2\10.12\feign-jaxrs2-10.12.jar;D:\work\apache-maven-3.8.4\repo\io\github\openfeign\feign-core\10.12\feign-core-10.12.jar;D:\work\apache-maven-3.8.4\repo\io\github\openfeign\feign-jaxrs\10.12\feign-jaxrs-10.12.jar;D:\work\apache-maven-3.8.4\repo\javax\ws\rs\javax.ws.rs-api\2.0\javax.ws.rs-api-2.0.jar;E:\work\code\spring-cloud-alibaba-2.2.7.RELEASE\spring-cloud-alibaba-examples\spring-cloud-alibaba-dubbo-examples\spring-cloud-dubbo-sample-api\target\classes;D:\work\apache-maven-3.8.4\repo\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;E:\work\code\spring-cloud-alibaba-2.2.7.RELEASE\spring-cloud-alibaba-starters\spring-cloud-starter-alibaba-nacos-discovery\target\classes;D:\work\apache-maven-3.8.4\repo\com\alibaba\nacos\nacos-client\2.0.3\nacos-client-2.0.3.jar;D:\work\apache-maven-3.8.4\repo\commons-codec\commons-codec\1.14\commons-codec-1.14.jar;D:\work\apache-maven-3.8.4\repo\com\fasterxml\jackson\core\jackson-core\2.11.4\jackson-core-2.11.4.jar;D:\work\apache-maven-3.8.4\repo\com\fasterxml\jackson\core\jackson-databind\2.11.4\jackson-databind-2.11.4.jar;D:\work\apache-maven-3.8.4\repo\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;D:\work\apache-maven-3.8.4\repo\org\apache\httpcomponents\httpcore-nio\4.4.14\httpcore-nio-4.4.14.jar;D:\work\apache-maven-3.8.4\repo\org\reflections\reflections\0.9.11\reflections-0.9.11.jar;D:\work\apache-maven-3.8.4\repo\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\work\apache-maven-3.8.4\repo\com\alibaba\spring\spring-context-support\1.0.10\spring-context-support-1.0.10.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-commons\2.2.9.RELEASE\spring-cloud-commons-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\security\spring-security-crypto\5.3.9.RELEASE\spring-security-crypto-5.3.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-context\2.2.9.RELEASE\spring-cloud-context-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.9.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\work\apache-maven-3.8.4\repo\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\work\apache-maven-3.8.4\repo\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\work\apache-maven-3.8.4\repo\javax\inject\javax.inject\1\javax.inject-1.jar;D:\work\apache-maven-3.8.4\repo\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\work\apache-maven-3.8.4\repo\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.2.9.RELEASE\spring-cloud-starter-netflix-eureka-client-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter\2.2.9.RELEASE\spring-cloud-starter-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-starter\2.3.12.RELEASE\spring-boot-starter-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-starter-logging\2.3.12.RELEASE\spring-boot-starter-logging-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\work\apache-maven-3.8.4\repo\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\work\apache-maven-3.8.4\repo\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\work\apache-maven-3.8.4\repo\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\work\apache-maven-3.8.4\repo\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\work\apache-maven-3.8.4\repo\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\work\apache-maven-3.8.4\repo\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.9.RELEASE\spring-cloud-netflix-hystrix-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.2.9.RELEASE\spring-cloud-netflix-eureka-client-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\eureka\eureka-client\1.10.14\eureka-client-1.10.14.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\work\apache-maven-3.8.4\repo\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\work\apache-maven-3.8.4\repo\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\work\apache-maven-3.8.4\repo\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\work\apache-maven-3.8.4\repo\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\work\apache-maven-3.8.4\repo\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\work\apache-maven-3.8.4\repo\com\thoughtworks\xstream\xstream\1.4.16\xstream-1.4.16.jar;D:\work\apache-maven-3.8.4\repo\io\github\x-stream\mxparser\1.2.1\mxparser-1.2.1.jar;D:\work\apache-maven-3.8.4\repo\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\archaius\archaius-core\0.7.7\archaius-core-0.7.7.jar;D:\work\apache-maven-3.8.4\repo\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\work\apache-maven-3.8.4\repo\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\work\apache-maven-3.8.4\repo\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\work\apache-maven-3.8.4\repo\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\work\apache-maven-3.8.4\repo\commons-configuration\commons-configuration\1.10\commons-configuration-1.10.jar;D:\work\apache-maven-3.8.4\repo\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\work\apache-maven-3.8.4\repo\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\work\apache-maven-3.8.4\repo\com\fasterxml\jackson\core\jackson-annotations\2.11.4\jackson-annotations-2.11.4.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\jettison\jettison\1.4.0\jettison-1.4.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\eureka\eureka-core\1.10.14\eureka-core-1.10.14.jar;D:\work\apache-maven-3.8.4\repo\com\fasterxml\woodstox\woodstox-core\6.2.1\woodstox-core-6.2.1.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\woodstox\stax2-api\4.2.1\stax2-api-4.2.1.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.9.RELEASE\spring-cloud-starter-netflix-archaius-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.9.RELEASE\spring-cloud-netflix-archaius-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-loadbalancer\2.2.9.RELEASE\spring-cloud-starter-loadbalancer-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-loadbalancer\2.2.9.RELEASE\spring-cloud-loadbalancer-2.2.9.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-starter-validation\2.3.12.RELEASE\spring-boot-starter-validation-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\work\apache-maven-3.8.4\repo\io\projectreactor\reactor-core\3.3.17.RELEASE\reactor-core-3.3.17.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\work\apache-maven-3.8.4\repo\io\projectreactor\addons\reactor-extra\3.3.6.RELEASE\reactor-extra-3.3.6.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\boot\spring-boot-starter-cache\2.3.12.RELEASE\spring-boot-starter-cache-2.3.12.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\spring-context-support\5.2.15.RELEASE\spring-context-support-5.2.15.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\com\stoyanr\evictor\1.0.0\evictor-1.0.0.jar;D:\work\apache-maven-3.8.4\repo\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-zookeeper-discovery\2.2.5.RELEASE\spring-cloud-starter-zookeeper-discovery-2.2.5.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-zookeeper\2.2.5.RELEASE\spring-cloud-starter-zookeeper-2.2.5.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-zookeeper-core\2.2.5.RELEASE\spring-cloud-zookeeper-core-2.2.5.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-zookeeper-discovery\2.2.5.RELEASE\spring-cloud-zookeeper-discovery-2.2.5.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\apache\curator\curator-x-discovery\4.0.1\curator-x-discovery-4.0.1.jar;D:\work\apache-maven-3.8.4\repo\org\apache\curator\curator-recipes\4.0.1\curator-recipes-4.0.1.jar;D:\work\apache-maven-3.8.4\repo\org\apache\zookeeper\zookeeper\3.4.12\zookeeper-3.4.12.jar;D:\work\apache-maven-3.8.4\repo\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\work\apache-maven-3.8.4\repo\jline\jline\0.9.94\jline-0.9.94.jar;D:\work\apache-maven-3.8.4\repo\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\work\apache-maven-3.8.4\repo\org\apache\curator\curator-framework\4.0.1\curator-framework-4.0.1.jar;D:\work\apache-maven-3.8.4\repo\org\apache\curator\curator-client\4.0.1\curator-client-4.0.1.jar;D:\work\apache-maven-3.8.4\repo\com\google\guava\guava\30.0-jre\guava-30.0-jre.jar;D:\work\apache-maven-3.8.4\repo\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\work\apache-maven-3.8.4\repo\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\work\apache-maven-3.8.4\repo\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\work\apache-maven-3.8.4\repo\org\checkerframework\checker-qual\3.5.0\checker-qual-3.5.0.jar;D:\work\apache-maven-3.8.4\repo\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;D:\work\apache-maven-3.8.4\repo\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-consul-discovery\2.2.8.RELEASE\spring-cloud-starter-consul-discovery-2.2.8.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-starter-consul\2.2.8.RELEASE\spring-cloud-starter-consul-2.2.8.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-consul-core\2.2.8.RELEASE\spring-cloud-consul-core-2.2.8.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\com\ecwid\consul\consul-api\1.4.5\consul-api-1.4.5.jar;D:\work\apache-maven-3.8.4\repo\org\apache\httpcomponents\httpcore\4.4.14\httpcore-4.4.14.jar;D:\work\apache-maven-3.8.4\repo\org\springframework\cloud\spring-cloud-consul-discovery\2.2.8.RELEASE\spring-cloud-consul-discovery-2.2.8.RELEASE.jar;D:\work\apache-maven-3.8.4\repo\joda-time\joda-time\2.10.5\joda-time-2.10.5.jar;D:\work\apache-maven-3.8.4\repo\io\netty\netty-all\4.1.65.Final\netty-all-4.1.65.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\resteasy\resteasy-jaxrs\3.0.19.Final\resteasy-jaxrs-3.0.19.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\spec\javax\ws\rs\jboss-jaxrs-api_2.0_spec\1.0.0.Final\jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\spec\javax\annotation\jboss-annotations-api_1.2_spec\1.0.0.Final\jboss-annotations-api_1.2_spec-1.0.0.Final.jar;D:\work\apache-maven-3.8.4\repo\javax\activation\activation\1.1.1\activation-1.1.1.jar;D:\work\apache-maven-3.8.4\repo\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar;D:\work\apache-maven-3.8.4\repo\commons-io\commons-io\2.6\commons-io-2.6.jar;D:\work\apache-maven-3.8.4\repo\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\logging\jboss-logging\3.4.2.Final\jboss-logging-3.4.2.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\resteasy\resteasy-client\3.0.19.Final\resteasy-client-3.0.19.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\resteasy\resteasy-netty4\3.0.19.Final\resteasy-netty4-3.0.19.Final.jar;D:\work\apache-maven-3.8.4\repo\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\resteasy\resteasy-jackson-provider\3.0.19.Final\resteasy-jackson-provider-3.0.19.Final.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\jackson\jackson-core-asl\1.9.12\jackson-core-asl-1.9.12.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\jackson\jackson-mapper-asl\1.9.12\jackson-mapper-asl-1.9.12.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\jackson\jackson-jaxrs\1.9.12\jackson-jaxrs-1.9.12.jar;D:\work\apache-maven-3.8.4\repo\org\codehaus\jackson\jackson-xc\1.9.12\jackson-xc-1.9.12.jar;D:\work\apache-maven-3.8.4\repo\org\jboss\resteasy\resteasy-jaxb-provider\3.0.19.Final\resteasy-jaxb-provider-3.0.19.Final.jar;D:\work\apache-maven-3.8.4\repo\com\sun\xml\bind\jaxb-impl\2.2.7\jaxb-impl-2.2.7.jar;D:\work\apache-maven-3.8.4\repo\com\sun\xml\bind\jaxb-core\2.2.7\jaxb-core-2.2.7.jar;D:\work\apache-maven-3.8.4\repo\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\work\apache-maven-3.8.4\repo\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\work\apache-maven-3.8.4\repo\com\sun\istack\istack-commons-runtime\2.16\istack-commons-runtime-2.16.jar;D:\work\apache-maven-3.8.4\repo\com\sun\xml\fastinfoset\FastInfoset\1.2.12\FastInfoset-1.2.12.jar;D:\work\apache-maven-3.8.4\repo\javax\xml\bind\jsr173_api\1.0\jsr173_api-1.0.jar;D:\work\apache-maven-3.8.4\repo\org\hibernate\validator\hibernate-validator\6.1.7.Final\hibernate-validator-6.1.7.Final.jar;D:\work\apache-maven-3.8.4\repo\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\work\apache-maven-3.8.4\repo\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.2\lib\idea_rt.jar" com.alibaba.cloud.dubbo.bootstrap.DubboSpringCloudProviderBootstrap Connected to the target VM, address: '127.0.0.1:51530', transport: 'socket' log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.logger.LoggerFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2022-05-18 10:26:08.535 INFO 7632 --- [ main] d.s.b.c.e.WelcomeLogoApplicationListener :

:: Dubbo Spring Boot (v2.7.13) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v2.7.13) : https://github.com/apache/dubbo :: Discuss group : [email protected]

2022-05-18 10:26:08.652 INFO 7632 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.name=spring-cloud-alibaba-dubbo-provider, dubbo.application.qos-enable=false, dubbo.config.multiple=true} 2022-05-18 10:26:09.448 INFO 7632 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await... 2022-05-18 10:26:09.798 INFO 7632 --- [ main] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.name=spring-cloud-alibaba-dubbo-provider, dubbo.application.qos-enable=false, dubbo.config.multiple=true, dubbo.protocols.dubbo.name=dubbo, dubbo.protocols.dubbo.port=-1, dubbo.protocols.rest.name=rest, dubbo.protocols.rest.port=9090, dubbo.protocols.rest.server=netty, dubbo.scan.base-packages=com.alibaba.cloud.dubbo.service}

. ____ _ __ _ _ /\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) ) ' |
| .__|| ||| |_, | / / / / =========||==============|/=//// :: Spring Boot :: (v2.3.12.RELEASE)

2022-05-18 10:26:09.822 INFO 7632 --- [ main] .c.d.b.DubboSpringCloudProviderBootstrap : The following profiles are active: nacos 2022-05-18 10:26:10.621 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [referenceAnnotationBeanPostProcessor] has been registered. 2022-05-18 10:26:10.621 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.DubboConfigAliasPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigAliasPostProcessor] has been registered. 2022-05-18 10:26:10.623 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboApplicationListenerRegistrar]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboApplicationListenerRegister] has been registered. 2022-05-18 10:26:10.624 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigDefaultPropertyValueBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigDefaultPropertyValueBeanPostProcessor] has been registered. 2022-05-18 10:26:10.624 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigEarlyInitializationPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigEarlyInitializationPostProcessor] has been registered. 2022-05-18 10:26:10.734 INFO 7632 --- [ main] .b.f.a.ConfigurationBeanBindingRegistrar : The configuration bean definition [name : org.apache.dubbo.config.ApplicationConfig#0, content : Root bean: class [org.apache.dubbo.config.ApplicationConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered. 2022-05-18 10:26:10.735 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [configurationBeanBindingPostProcessor] has been registered. 2022-05-18 10:26:10.740 INFO 7632 --- [ main] .b.f.a.ConfigurationBeanBindingRegistrar : The configuration bean definition [name : dubbo, content : Root bean: class [org.apache.dubbo.config.ProtocolConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered. 2022-05-18 10:26:10.741 INFO 7632 --- [ main] .b.f.a.ConfigurationBeanBindingRegistrar : The configuration bean definition [name : rest, content : Root bean: class [org.apache.dubbo.config.ProtocolConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered. 2022-05-18 10:26:10.765 INFO 7632 --- [ main] boConfigEarlyInitializationPostProcessor : BeanFactory is about to be initialized, trying to resolve the Dubbo Config Beans early initialization 2022-05-18 10:26:10.870 INFO 7632 --- [ main] com.alibaba.spring.util.BeanRegistrar : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboBootstrapApplicationListener] has been registered. 2022-05-18 10:26:11.169 INFO 7632 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboRelaxedBinding2AutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2022-05-18 10:26:11.169 INFO 7632 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2022-05-18 10:26:11.277 INFO 7632 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=5fab3fe0-f1df-3e38-bc8e-53515aca7882 2022-05-18 10:26:11.284 WARN 7632 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'referenceAnnotationBeanPostProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.setClassValuesAsString(Z)V 2022-05-18 10:26:11.323 INFO 7632 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-05-18 10:26:11.355 ERROR 7632 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.<init>(ReferenceAnnotationBeanPostProcessor.java:106)

The following method did not exist:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.setClassValuesAsString(Z)V

The method's class, org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor, is available from the following locations:

jar:file:/D:/work/apache-maven-3.8.4/repo/org/apache/dubbo/dubbo/2.7.13/dubbo-2.7.13.jar!/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessor.class

The class hierarchy was loaded from the following locations:

org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor: file:/D:/work/apache-maven-3.8.4/repo/org/apache/dubbo/dubbo/2.7.13/dubbo-2.7.13.jar
com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor: file:/D:/work/apache-maven-3.8.4/repo/com/alibaba/spring/spring-context-support/1.0.10/spring-context-support-1.0.10.jar
org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter: file:/D:/work/apache-maven-3.8.4/repo/org/springframework/spring-beans/5.2.15.RELEASE/spring-beans-5.2.15.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor

steverao
steverao

Spring Cloud Dubbo这个模块存在一些问题,不建议使用和学习了解,接下来会从主分支中移除,相关详细讨论请参见 #2398

push

steverao push alibaba/spring-cloud-alibaba

steverao
steverao
steverao
steverao

Restore the wrapper logic of SeataFeignObjectWrapper .

steverao
steverao

Merge pull request #2546 from misselvexu/upgrade/2543

Upgrade Seata to 1.4.2.

commit sha: ec373530bcc6c465f883e5cce00f3dec9473ea06

push time in 5 days ago
pull request

steverao pull request alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

Activity icon
issue

steverao issue alibaba/spring-cloud-alibaba

steverao
steverao

[Seata]Update Seata to 1.4.2 in Spring Cloud Alibaba 2.2.x branch

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 We recommend using English. If you are non-native English speaker, you can use the translation software.

Which Component eg. Seata,

Is your feature request related to a problem? Please describe. We are prepared to release a new version of Spring Cloud Alibaba in 2.2.x branch, we are plan to update some components.

Describe the solution you'd like A clear and concise description of what you want to happen. Update Seata to 1.4.2 in Spring Cloud Alibaba 2.2.x branch, and text the reliability.

May
17
6 days ago
open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

steverao
steverao

Why did you modify the codes here?

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

steverao
steverao

Could you explain why you remove the code here and below?

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

May
16
1 week ago
open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

steverao
steverao

Print result using Log.info instead of System, you can refer to RocketMQ example.

open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

steverao
steverao

Modify "nacos" to "/nacos", being consistent will be better, pay attention to modify them similar in other method in this class.

open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

steverao
steverao

The picture here is a bit inconsistent with the original style, it is best to keep it consistent, or do you change it to be similar to the following?

open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

steverao
steverao

Could you also add some other examples of shared-configs and extension-configs?

open pull request

steverao wants to merge alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

steverao
steverao

modify "serveraddr" to "serverAddr"

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

pull request

steverao merge to alibaba/spring-cloud-alibaba

steverao
steverao

[ISSUE #2550] add nacos examples

fix : #2550

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

May
15
1 week ago
Activity icon
created branch

steverao in alibaba/spring-cloud-alibaba create branch integration-test

createdAt 1 week ago
May
13
1 week ago
Activity icon
issue

steverao issue alibaba/spring-cloud-alibaba

steverao
steverao

Nacos Discovery couldn't deregister a permanent instance when application shutdown gracefully

Which Component Nacos Discovery

Version

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
	<version>2021.0.1.0</version>
</dependency>

Describe the bug When I run my application and register my service instance with the config spring.cloud.nacos.discovery.ephemeral=false, by which indicates that it's a permanent service. But when I shutdown the application gracefully, the console shows that it deregisters the instance: 2022-03-28 14:22:04.197 INFO 19248 --- [ionShutdownHook] c.a.c.n.registry.NacosServiceRegistry : De-registering from Nacos Server now... 2022-03-28 14:22:04.216 INFO 19248 --- [ionShutdownHook] c.a.c.n.registry.NacosServiceRegistry : De-registration finished.

Yet it turns out doesn't deregister the instance.

I've checked the deregister code:

com.alibaba.cloud.nacos.registry.NacosServiceRegistry#deregister(Registration registration)
	@Override
	public void deregister(Registration registration) {

		...

		NamingService namingService = namingService();
		String serviceId = registration.getServiceId();
		String group = nacosDiscoveryProperties.getGroup();

		try {
			namingService.deregisterInstance(serviceId, group, registration.getHost(),
					registration.getPort(), nacosDiscoveryProperties.getClusterName());
		}
		catch (Exception e) {
			...
		}

		...
	}
com.alibaba.nacos.client.naming.NacosNamingService#deregisterInstance(String serviceName, String groupName, String ip, int port, String clusterName)
    @Override
    public void deregisterInstance(String serviceName, String groupName, String ip, int port, String clusterName)
            throws NacosException {
        Instance instance = new Instance();
        instance.setIp(ip);
        instance.setPort(port);
        instance.setClusterName(clusterName);
        
        deregisterInstance(serviceName, groupName, instance);
    }

When the application shutdown gracefully, it triggers the deregister instance event. But it doesn't pass the ephemeral param to the deregisterInstance function, and the ephemeral field in com.alibaba.nacos.api.naming.pojo.Instance defaults as true, which causes the bug.

Activity icon
issue

steverao issue alibaba/spring-cloud-alibaba

steverao
steverao

How to configure spring.cloud.nacos.discovery properties to allow http health check?

In using nacos service discovery, when I need http health check, is it a must that we could only configure it on the web ui manually? How could we configure the http health check path in spring.cloud.nacos.discovery properties or any approaches else in spring cloud program?

Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

How to configure spring.cloud.nacos.discovery properties to allow http health check?

In using nacos service discovery, when I need http health check, is it a must that we could only configure it on the web ui manually? How could we configure the http health check path in spring.cloud.nacos.discovery properties or any approaches else in spring cloud program?

steverao
steverao

No reply for a long time, close first

Activity icon
issue

steverao issue alibaba/spring-cloud-alibaba

steverao
steverao

About Sentinel + Feign‘s fallbackFactory

BOM: Spring Cloud Alibaba:2.2.7.RELEASE Spring Cloud:Spring Cloud Hoxton.SR12 Spring Boot:2.3.12.RELEASE

我使用Sentinel + Feign,在编写一个FeignClient的时候,指定了对应的fallbackFactory属性,因为我用Spring Cloud,理所当然使用了spring-cloud-openfeign-core下的FallbackFactory接口。接下来运行的时候,报出了错误:类似Incompatible fallbackFactory instance. Fallback/fallbackFactory of type MyFallbackFactory is not assignable to EchoService for feign client service-provider

I use Sentinel + Feign, when writing a 'FeignClient', specified the corresponding fallbackFactory attribute. I use the FallbackFactory interface under spring-cloud-openfeign-core because I feel like I'm using Spring Cloud. But an error is reported at run time, same Incompatible fallbackFactory instance. Fallback/fallbackFactory of type MyFallbackFactory is not assignable to EchoService for feign client service-provider.

image


我翻看源代码注释,也有标明去查看此类org.springframework.cloud.openfeign.FallbackFactory

I looked at the source code comments and also marked to view such org.springframework.cloud.openfeign.FallbackFactory.

image


于是我DEBUG了异常跑出的代码。发现它做类型判断的时候,只支持feign.hystrix.FallbackFactory,而org.springframework.cloud.openfeign.FallbackFactory就抛出异常。

So I DEBUG the code that ran out of the exception. When it is found to make type judgment, only feign.hystrix.FallbackFactory is supported, and an exception is thrown by org.springframework.cloud.openfeign.FallbackFactory.

Source Code: com/alibaba/cloud/spring-cloud-starter-alibaba-sentinel/2.2.7.RELEASE/spring-cloud-starter-alibaba-sentinel-2.2.7.RELEASE-sources.jar!/com/alibaba/cloud/sentinel/feign/SentinelFeign.java:118 image


我的疑问,是因为什么原因不能用org.springframework.cloud.openfeign.FallbackFactory,还是我使用方法有问题吗?

My question is, is there any reason why I can't use org.springframework.cloud.openfeign.FallbackFactory, or is there something wrong with my method?


Which Component Nacos Discovery, Sentinel

Describe what problem you have encountered Sentinel + Fiegn Not Support org.springframework.cloud.openfeign.FallbackFactory

Describe what information you have read I have read the reference doc of Sentinel

May
12
1 week ago
Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

NacosConfigManger ConfigService need reload

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 We recommend using English. If you are non-native English speaker, you can use the translation software.

Which Component Nacos Config Starter

Describe the bug when NacosConfigProperties has been changed, bug NacosConfigManager configservice can't reload it.

To Reproduce Steps to reproduce the behavior:

  1. set bootstrap.yml namespace is xx_${spring.profiles.active}
  2. use nacosConfigManager serivce in biz code.
  3. when get or publish config to nacos server, it will be throw warn invalid tenant

Expected behavior get or publish success

steverao
steverao

Please provider your version information of Spring Cloud Alibaba and give us a simplified demo to reproduce it.

Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

Upgrade Seata to 1.4.2.

Describe what this PR does / why we need it

Upgrade Seata to 1.4.2.

Does this pull request fix one issue?

Fixes #2543 .

Describe how you did it

  • Upgrade Seata Version in spring-cloud-alibaba-dependencies/pom.xml .
  • Improve Seata Module pom's dependencies.

Describe how to verify it

I used the project's(https://github.com/alibaba/spring-cloud-alibaba/tree/master/spring-cloud-alibaba-examples/seata-example) examples to finish the compatibility issues after updating the version .

Special notes for reviews

None.

steverao
steverao

Please add dingtalk account: steverao2021

Activity icon
issue

steverao issue comment alibaba/spring-cloud-alibaba

steverao
steverao

你对Spring Cloud Alibaba有什么期待?

What do you expect from Spring Cloud Alibaba

The Spring Cloud Alibaba community is making plans for 2022. You are welcome to leave a message to us about your thoughts.

你对Spring Cloud Alibaba有什么期待?

Spring Cloud Alibaba社区正在做2022年度规划,欢迎大家将自己的相关想法留言告诉我们:)

steverao
steverao

期待spring-native稳定了以后能支持spring-native

收到,有兴趣也可以一起来探索和参与这块内容建设:)

May
11
1 week ago
push

steverao push alibaba/spring-cloud-alibaba

steverao
steverao
steverao
steverao

fix nameserver address prob.

steverao
steverao
steverao
steverao

fix Rocketmq example artifactId prob.

steverao
steverao

Refactor Rocketmq: use StreamBridge.send() instead of functional producer

steverao
steverao
steverao
steverao
steverao
steverao

fix rocketmq example errors.

steverao
steverao

fix rocketmq example code style.

steverao
steverao

remove timed message example from rocketmq examples. Because it is not supported by rocketmq community version now.

steverao
steverao

Merge pull request #2505 from Sorieee/2021.x.sorie.rkmq.example

Some rocketmq examples

commit sha: db3f4a8de894bbcd6a317d0f2937be7b67d20d03

push time in 1 week ago
pull request

steverao pull request alibaba/spring-cloud-alibaba

steverao
steverao

Some rocketmq examples

Describe what this PR does / why we need it

Parts of #2481 works.

Does this pull request fix one issue?

Some examples of rocketmq stream:

  • broadcast
  • delay
  • orderly
  • sql Will imporve docs and write some other example latter.

Describe how you did it

Describe how to verify it

Manual test

Special notes for reviews