seata xa 不支持 org.mariadb.jdbc:mariadb-java-client:3.x.x 版本

jv4diomz  于 2个月前  发布在  Java
关注(0)|答案(1)|浏览(76)

Ⅰ. Issue Description

xa 模式 在org.mariadb.jdbc:mariadb-java-client:3.x.x 依赖下找不到 org/mariadb/jdbc/MariaXaConnection
经过下载 mariadb-java-client:2.7.x 和 mariadb-java-client:3.x.x 版本比较
org/mariadb/jdbc/MariaXaConnection 仅存在于mariadb-java-client:2.7.x , 在 mariadb-java-client:3.x.x 找不到

Ⅱ. Describe what happened

希望在XA模式下提供 org.mariadb.jdbc:mariadb-java-client:3.x.x 版本支持

Caused by: java.lang.NoClassDefFoundError: org/mariadb/jdbc/MariaXaConnection
	at io.seata.rm.datasource.util.XAUtils.createXAConnection(XAUtils.java:66)
	at io.seata.rm.datasource.util.XAUtils.createXAConnection(XAUtils.java:43)
	at io.seata.rm.datasource.xa.DataSourceProxyXA.getConnectionProxyXA(DataSourceProxyXA.java:112)
	at io.seata.rm.datasource.xa.DataSourceProxyXA.getConnectionProxy(DataSourceProxyXA.java:101)
	at io.seata.rm.datasource.xa.DataSourceProxyXA.getConnection(DataSourceProxyXA.java:88)

qlckcl4x

qlckcl4x1#

Additional,3.x XAConnection impl MariaXaConnection was move to MariaDbPoolConnection ,link
PR

相关问题