Skip to content

Commit

Permalink
optimize:add time info for transaction timeout log
Browse files Browse the repository at this point in the history
  • Loading branch information
renliangyu857 committed Feb 9, 2023
1 parent eab8c9a commit 86c3973
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/en-us/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)] 修复一些安全漏洞的版本
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 86c3973

Please sign in to comment.