apache/incubator-seata

tx mode xa Incompatible with mysql driver 8.0.12

Opened this issue · 2 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

tx mode xa Incompatible with mysql driver 8.0.12
image

仅需把mysql驱动升级至8.0.12及以上版本,就会抛出
com.mysql.cj.conf.PropertySet.getBooleanReadableProperty(java.lang.String)
的异常,经查看,mysql 8.0.12及以上版本此方法已被删除,所以8.0.12及以上版本无法与seata xa模式兼容

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version :
  • OS :
  • Others:

mysql 8.0.19一样,XA只能使用8.0.11

seata的xa模式使用了druid创建xa connection,如果mysql-connector升级了,druid也要对应升级。
我使用的是seata 1.5.2 、mysql 8.0.28 、 druid 1.2.8 可以使用