diff --git a/changes/en-us/develop.md b/changes/en-us/develop.md index d70ebe1acdd..924da2bd035 100644 --- a/changes/en-us/develop.md +++ b/changes/en-us/develop.md @@ -31,6 +31,7 @@ Add changes here for all PR submitted to the develop branch. - [[#5177](https://github.com/seata/seata/pull/5177)] If `server.session.enable-branch-async-remove` is true, delete the branch asynchronously and unlock it synchronously. - [[#5273](https://github.com/seata/seata/pull/5273)] Optimize the compilation configuration of the `protobuf-maven-plugin` plug-in to solve the problem of too long command lines in higher versions. - [[#5303](https://github.com/seata/seata/pull/5303)] remove startup script the -Xmn configuration +- [[#5323](https://github.com/seata/seata/pull/5323)] add time info for global transaction timeout log ### security: - [[#5172](https://github.com/seata/seata/pull/5172)] fix some security vulnerabilities diff --git a/changes/zh-cn/develop.md b/changes/zh-cn/develop.md index b2866a40593..1a1d9e3e528 100644 --- a/changes/zh-cn/develop.md +++ b/changes/zh-cn/develop.md @@ -30,6 +30,7 @@ - [[#5177](https://github.com/seata/seata/pull/5177)] 如果 `server.session.enable-branch-async-remove` 为真,异步删除分支,同步解锁。 - [[#5273](https://github.com/seata/seata/pull/5273)] 优化`protobuf-maven-plugin`插件的编译配置,解决高版本的命令行过长问题 - [[#5303](https://github.com/seata/seata/pull/5303)] 移除启动脚本的-Xmn参数 +- [[#5323](https://github.com/seata/seata/pull/5323)] 为全局事务超时日志添加时间信息 ### security: - [[#5172](https://github.com/seata/seata/pull/5172)] 修复一些安全漏洞的版本 diff --git a/server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java b/server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java index b1f41d64436..2d605df4589 100644 --- a/server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java +++ b/server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java @@ -337,7 +337,7 @@ protected void timeoutCheck() { return false; } - LOGGER.info("Global transaction[{}] is timeout and will be rollback.", globalSession.getXid()); + LOGGER.warn("Global transaction[{}] is timeout and will be rollback,transaction begin time:{} and now:{}", globalSession.getXid(), globalSession.getBeginTime(), System.currentTimeMillis()); globalSession.addSessionLifecycleListener(SessionHolder.getRootSessionManager()); globalSession.close();