Skip to content

Commit e277cfb

Browse files
authored
branch-3.0: [fix](connect) fix wrong format causing connection fail #50214 (#50216)
bp #50214
1 parent af6b068 commit e277cfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fe/fe-core/src/main/java/org/apache/doris/mysql/AcceptListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public void handleEvent(AcceptingChannel<StreamConnection> channel) {
9696
streamConnection -> connectScheduler.unregisterConnection(context));
9797
} else {
9898
long userConnLimit = context.getEnv().getAuth().getMaxConn(context.getQualifiedUser());
99-
String errMsg = String.format("Reach limit of connections. Total: %, User: %d, Current: %d",
99+
String errMsg = String.format(
100+
"Reach limit of connections. Total: %d, User: %d, Current: %d",
100101
connectScheduler.getMaxConnections(), userConnLimit, res);
101102
context.getState().setError(ErrorCode.ERR_TOO_MANY_USER_CONNECTIONS, errMsg);
102103
MysqlProto.sendResponsePacket(context);

0 commit comments

Comments
 (0)