This is an automated email from the ASF dual-hosted git repository.
funky-eyes pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new c5d9c4b416 bugfix: mysql undolog NotSerializableException (#8078)
c5d9c4b416 is described below
commit c5d9c4b416b66eae3f82d4911bd5336fe92ccf85
Author: jsbxyyx <[email protected]>
AuthorDate: Thu Apr 30 20:32:23 2026 +0800
bugfix: mysql undolog NotSerializableException (#8078)
---
changes/en-us/2.x.md | 3 +++
changes/zh-cn/2.x.md | 2 ++
.../org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java | 2 +-
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index db0376a775..2d4c5e875e 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -43,6 +43,8 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7965](https://github.com/apache/incubator-seata/pull/7965)] fix the issue
where different element order in two lists causes failure to set the index as
the primary key
- [[#7992](https://github.com/apache/incubator-seata/pull/7992)] fix report
branch transaction status without setting branch type
- [[#8035](https://github.com/apache/incubator-seata/pull/8035)] fix
IllegalArgumentException when GET request has request body
+- [[#8078](https://github.com/apache/incubator-seata/pull/8078)] fix mysql
undolog NotSerializableException
+
### optimize:
@@ -105,6 +107,7 @@ Thanks to these contributors for their code commits. Please
report an unintended
- [WangzJi](https://github.com/WangzJi)
- [somiljain](https://github.com/somiljain)
- [xuxiaowei-com-cn](https://github.com/xuxiaowei-com-cn)
+- [jsbxyyx](https://github.com/jsbxyyx)
Also, we receive many valuable issues, questions and advices from our
community. Thanks for you all.
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 581d7b7d5b..6453d1fdd1 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -44,6 +44,7 @@
- [[#7965](https://github.com/apache/incubator-seata/pull/7965)] 修复在 dm 和
kingbase 中当没有将索引设置为主键索引时出现的问题
- [[#7992](https://github.com/apache/incubator-seata/pull/7992)]
修复报告分支事务状态时没有设置分支类型
- [[#8035](https://github.com/apache/incubator-seata/pull/8035)]
修复GET请求有请求体的时候出现 IllegalArgumentException
+- [[#8078](https://github.com/apache/incubator-seata/pull/8078)] 解决 mysql 插入
undolog 异常 NotSerializableException
### optimize:
@@ -107,5 +108,6 @@
- [xiaoxiangyeyu0](https://github.com/xiaoxiangyeyu0)
- [WangzJi](https://github.com/WangzJi)
- [xuxiaowei-com-cn](https://github.com/xuxiaowei-com-cn)
+- [jsbxyyx](https://github.com/jsbxyyx)
同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。
diff --git
a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
index 12960beec4..ddb5af570e 100644
---
a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
+++
b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
@@ -188,7 +188,7 @@ public class MySQLUndoLogManager extends
AbstractUndoLogManager {
pst.setLong(1, branchId);
pst.setString(2, xid);
pst.setString(3, rollbackCtx);
- pst.setObject(4, new ByteArrayInputStream(undoLogContent));
+ pst.setBlob(4, new ByteArrayInputStream(undoLogContent));
pst.setInt(5, state.getValue());
pst.executeUpdate();
} catch (Exception e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]