Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: seata client support jdk17 #4877

Merged
merged 13 commits into from Oct 24, 2022
Merged

Conversation

funky-eyes
Copy link
Contributor

@funky-eyes funky-eyes commented Aug 19, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

apollo 2.0.1支持向下兼容且支持jdk17
byte-buddy支持jdk17,并且在各大社区已逐步替换cglib&javassist

2022-08-20 00:58:21.224  INFO 21088 --- [           main] icu.funkye.ProductServiceApplication     : Starting ProductServiceApplication using Java 17.0.4 on LAPTOP-LKAGO3OF with PID 21088 (D:\seatawork\spring-cloud-alibaba-seata-demo\product-service\target\classes started by 陈健斌 in D:\seatawork\spring-cloud-alibaba-seata-demo)
2022-08-20 00:58:21.228  INFO 21088 --- [           main] icu.funkye.ProductServiceApplication     : No active profile set, falling back to 1 default profile: "default"
2022-08-20 00:58:22.007  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'io.seata.spring.boot.autoconfigure.SeataCoreAutoConfiguration' of type [io.seata.spring.boot.autoconfigure.SeataCoreAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.008  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'springApplicationContextProvider' of type [io.seata.spring.boot.autoconfigure.provider.SpringApplicationContextProvider] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.008  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'io.seata.spring.boot.autoconfigure.SeataAutoConfiguration' of type [io.seata.spring.boot.autoconfigure.SeataAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.048  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'failureHandler' of type [io.seata.tm.api.DefaultFailureHandlerImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.064  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'springCloudAlibabaConfiguration' of type [io.seata.spring.boot.autoconfigure.properties.SpringCloudAlibabaConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.067  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'seataProperties' of type [io.seata.spring.boot.autoconfigure.properties.SeataProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:22.068  INFO 21088 --- [           main] i.s.s.b.a.SeataAutoConfiguration         : Automatically configure Seata
2022-08-20 00:58:22.121  INFO 21088 --- [           main] io.seata.config.ConfigurationFactory     : load Configuration from :Spring Configuration
2022-08-20 00:58:22.130  INFO 21088 --- [           main] i.seata.config.nacos.NacosConfiguration  : Nacos check auth with userName/password.
2022-08-20 00:58:22.589  INFO 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : Initializing Global Transaction Clients ... 
2022-08-20 00:58:22.589  WARN 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : the default value of seata.tx-service-group: my_test_tx_group has already changed to default_tx_group since Seata 1.5, please change your default configuration as soon as possible and we don't recommend you to use default tx-service-group's value provided by seata
2022-08-20 00:58:22.709  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyClientBootstrap  : NettyClientBootstrap has started
2022-08-20 00:58:22.868  INFO 21088 --- [           main] i.s.c.r.netty.NettyClientChannelManager  : will connect to 192.168.31.181:8094
2022-08-20 00:58:22.959  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyPoolableFactory  : NettyPool create channel to transactionRole:TMROLE,address:192.168.31.181:8094,msg:< RegisterTMRequest{applicationId='product-service', transactionServiceGroup='my_test_tx_group'} >
2022-08-20 00:58:23.110  WARN 21088 --- [ctor_TMROLE_1_1] ServiceLoader$InnerEnhancedServiceLoader : Load [io.seata.serializer.hessian.HessianSerializer] class fail. com/caucho/hessian/io/AbstractHessianOutput
2022-08-20 00:58:23.131  INFO 21088 --- [           main] i.s.c.rpc.netty.TmNettyRemotingClient    : register TM success. client version:1.6.0-SNAPSHOT, server version:1.6.0-SNAPSHOT,channel:[id: 0x6e08cb6a, L:/192.168.31.181:53488 - R:/192.168.31.181:8094]
2022-08-20 00:58:23.135  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyPoolableFactory  : register success, cost 46 ms, version:1.6.0-SNAPSHOT,role:TMROLE,channel:[id: 0x6e08cb6a, L:/192.168.31.181:53488 - R:/192.168.31.181:8094]
2022-08-20 00:58:23.135  INFO 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : Transaction Manager Client is initialized. applicationId[product-service] txServiceGroup[my_test_tx_group]
2022-08-20 00:58:23.160  INFO 21088 --- [           main] io.seata.rm.datasource.AsyncWorker       : Async Commit Buffer Limit: 10000
2022-08-20 00:58:23.161  INFO 21088 --- [           main] i.s.rm.datasource.xa.ResourceManagerXA   : ResourceManagerXA init ...
2022-08-20 00:58:23.166  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyClientBootstrap  : NettyClientBootstrap has started
2022-08-20 00:58:23.167  INFO 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : Resource Manager is initialized. applicationId[product-service] txServiceGroup[my_test_tx_group]
2022-08-20 00:58:23.167  INFO 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : Global Transaction Clients are initialized. 
2022-08-20 00:58:23.169  INFO 21088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'io.seata.spring.boot.autoconfigure.SeataDataSourceAutoConfiguration' of type [io.seata.spring.boot.autoconfigure.SeataDataSourceAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-08-20 00:58:23.441  INFO 21088 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2022-08-20 00:58:23.449  INFO 21088 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Initializing ProtocolHandler ["http-nio-8080"]
2022-08-20 00:58:23.450  INFO 21088 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2022-08-20 00:58:23.450  INFO 21088 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.63]
2022-08-20 00:58:23.527  INFO 21088 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2022-08-20 00:58:23.528  INFO 21088 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2247 ms
Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
2022-08-20 00:58:24.303  INFO 21088 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
2022-08-20 00:58:24.307  INFO 21088 --- [           main] i.s.c.r.netty.NettyClientChannelManager  : will connect to 192.168.31.181:8094
2022-08-20 00:58:24.307  INFO 21088 --- [           main] i.s.c.rpc.netty.RmNettyRemotingClient    : RM will register :jdbc:mysql://127.0.0.1:3306/test_storage
2022-08-20 00:58:24.307  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyPoolableFactory  : NettyPool create channel to transactionRole:RMROLE,address:192.168.31.181:8094,msg:< RegisterRMRequest{resourceIds='jdbc:mysql://127.0.0.1:3306/test_storage', applicationId='product-service', transactionServiceGroup='my_test_tx_group'} >
2022-08-20 00:58:24.313  INFO 21088 --- [           main] i.s.c.rpc.netty.RmNettyRemotingClient    : register RM success. client version:1.6.0-SNAPSHOT, server version:1.6.0-SNAPSHOT,channel:[id: 0xa08c8aca, L:/192.168.31.181:53499 - R:/192.168.31.181:8094]
2022-08-20 00:58:24.313  INFO 21088 --- [           main] i.s.core.rpc.netty.NettyPoolableFactory  : register success, cost 4 ms, version:1.6.0-SNAPSHOT,role:RMROLE,channel:[id: 0xa08c8aca, L:/192.168.31.181:53499 - R:/192.168.31.181:8094]
Registered plugin: 'AbstractSqlParserHandler(sqlParserList=[com.baomidou.mybatisplus.extension.parsers.BlockAttackSqlParser@74619273], sqlParserFilter=null)'
Parsed mapper file: 'file [D:\seatawork\spring-cloud-alibaba-seata-demo\product-service\target\classes\mapper\ProductMapper.xml]'
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.3.1 
2022-08-20 00:58:24.580  INFO 21088 --- [           main] i.s.s.a.GlobalTransactionScanner         : Bean[icu.funkye.controller.ProductController] with name [productController] would use interceptor [io.seata.spring.annotation.GlobalTransactionalInterceptor]
2022-08-20 00:58:24.963  INFO 21088 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Starting ProtocolHandler ["http-nio-8080"]
2022-08-20 00:58:24.977  INFO 21088 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-08-20 00:58:24.985  INFO 21088 --- [           main] icu.funkye.ProductServiceApplication     : Started ProductServiceApplication in 4.452 seconds (JVM running for 5.444)

Ⅱ. Does this pull request fix one issue?

fixes #4913

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2022

Codecov Report

Merging #4877 (cd7aa11) into develop (7f55c26) will increase coverage by 0.00%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4877   +/-   ##
==========================================
  Coverage      48.81%   48.82%           
+ Complexity      4078     4077    -1     
==========================================
  Files            733      733           
  Lines          25949    25956    +7     
  Branches        3199     3202    +3     
==========================================
+ Hits           12667    12672    +5     
- Misses         11934    11937    +3     
+ Partials        1348     1347    -1     
Impacted Files Coverage Δ
.../main/java/io/seata/config/ConfigurationCache.java 74.07% <85.71%> (+0.80%) ⬆️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 61.02% <0.00%> (-0.74%) ⬇️
...er/src/main/java/io/seata/server/ServerRunner.java 50.00% <0.00%> (ø)

@funky-eyes funky-eyes added type: feature Category issues or prs related to feature request. module/config config module labels Aug 20, 2022
@funky-eyes funky-eyes added this to the 1.6.0 milestone Aug 20, 2022
Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xingfudeshi xingfudeshi self-requested a review October 19, 2022 08:32
Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@funky-eyes funky-eyes merged commit 83ac9f3 into apache:develop Oct 24, 2022
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/config config module optimize:jvm type: feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

seata1.5.2和jdk18搭配使用会有seata中GlobalTransactionScanner无法实例化问题
5 participants