This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 1c90fc6c029 branch-2.1: [fix](connect) fix wrong format causing connection fail #50214 (#50217) 1c90fc6c029 is described below commit 1c90fc6c0291d423a635fcb5d56b663fbb568bff Author: Mingyu Chen (Rayner) <morning...@163.com> AuthorDate: Mon Apr 21 01:34:00 2025 -0700 branch-2.1: [fix](connect) fix wrong format causing connection fail #50214 (#50217) bp #50214 --- fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java index 0388a532efd..85931238da8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java @@ -96,7 +96,8 @@ public class AcceptListener implements ChannelListener<AcceptingChannel<StreamCo streamConnection -> connectScheduler.unregisterConnection(context)); } else { long userConnLimit = context.getEnv().getAuth().getMaxConn(context.getQualifiedUser()); - String errMsg = String.format("Reach limit of connections. Total: %, User: %d, Current: %d", + String errMsg = String.format( + "Reach limit of connections. Total: %d, User: %d, Current: %d", connectScheduler.getMaxConnections(), userConnLimit, res); context.getState().setError(ErrorCode.ERR_TOO_MANY_USER_CONNECTIONS, errMsg); MysqlProto.sendResponsePacket(context); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org