You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by ji...@apache.org on 2024/01/13 06:04:02 UTC
(incubator-seata) branch 2.x updated: optimize: modify error message which is global session size more than config. (#6259)
This is an automated email from the ASF dual-hosted git repository.
jianbin 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 2101a95ed0 optimize: modify error message which is global session size more than config. (#6259)
2101a95ed0 is described below
commit 2101a95ed066b026ee0c30537e57a5adf563a5c0
Author: laywin <la...@yeah.net>
AuthorDate: Sat Jan 13 14:03:57 2024 +0800
optimize: modify error message which is global session size more than config. (#6259)
---
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
server/src/main/java/io/seata/server/session/GlobalSession.java | 4 ++--
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 320ea24f1c..86e99fb6b2 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -57,6 +57,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6239](https://github.com/apache/incubator-seata/pull/6239)] update security policy, disclaimer and notice
- [[#6245](https://github.com/apache/incubator-seata/pull/6245)] in file mode, the configuration in the application takes effect, when the spring configuration in the configuration center is changed
- [[#6247](https://github.com/apache/incubator-seata/pull/6247)] optimize asf.yml
+- [[#6259](https://github.com/apache/incubator-seata/pull/6259)] modify error message which is global session size more than config
### security:
- [[#6069](https://github.com/apache/incubator-seata/pull/6069)] Upgrade Guava dependencies to fix security vulnerabilities
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 838a5a4061..2f6fbc1f5a 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -55,6 +55,7 @@
- [[#6239](https://github.com/apache/incubator-seata/pull/6239)] 更新security policy,disclaimer 和 notice 文件
- [[#6245](https://github.com/apache/incubator-seata/pull/6245)] file模式下,在配置中心的spring配置改变时,使应用程序中的配置生效
- [[#6247](https://github.com/apache/incubator-seata/pull/6247)] 优化 asf.yml 配置
+- [[#6259](https://github.com/apache/incubator-seata/pull/6259)] 修改全局会话大小超过配置的错误消息
### security:
diff --git a/server/src/main/java/io/seata/server/session/GlobalSession.java b/server/src/main/java/io/seata/server/session/GlobalSession.java
index a40fd45219..70934d0f04 100644
--- a/server/src/main/java/io/seata/server/session/GlobalSession.java
+++ b/server/src/main/java/io/seata/server/session/GlobalSession.java
@@ -613,8 +613,8 @@ public class GlobalSession implements SessionLifecycle, SessionStorable {
applicationDataBytes);
if (size > MAX_GLOBAL_SESSION_SIZE) {
- throw new RuntimeException("global session size exceeded, size : " + size + " maxBranchSessionSize : " +
- MAX_GLOBAL_SESSION_SIZE);
+ throw new RuntimeException("global session size exceeded, size : " + size + " byte, maxGlobalSessionSize : " +
+ MAX_GLOBAL_SESSION_SIZE + " byte");
}
ByteBuffer byteBuffer = byteBufferThreadLocal.get();
//recycle
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org