You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/12/09 06:26:27 UTC

[iotdb] 01/01: Fix all client connections are stuck bug caused by logback bug

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch ClientStuckBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 2278d85346a870c3fcd4c212ce29b8c4ebdd9b44
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Thu Dec 9 14:25:44 2021 +0800

    Fix all client connections are stuck bug caused by logback bug
---
 .../org/apache/iotdb/db/service/basic/BasicServiceProvider.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java b/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
index cfedf03..8734ccc 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/basic/BasicServiceProvider.java
@@ -165,12 +165,12 @@ public class BasicServiceProvider {
       openSessionResp.setMessage("Login successfully");
 
       sessionId = sessionManager.requestSessionId(username, zoneId);
-      AUDIT_LOGGER.info("User {} opens Session-{}", username, sessionId);
       LOGGER.info(
-          "{}: Login status: {}. User : {}",
+          "{}: Login status: {}. User : {}, opens Session-{}",
           IoTDBConstant.GLOBAL_DB_NAME,
           openSessionResp.getMessage(),
-          username);
+          username,
+          sessionId);
     } else {
       openSessionResp.setMessage(loginMessage != null ? loginMessage : "Authentication failed.");
       openSessionResp.setCode(TSStatusCode.WRONG_LOGIN_PASSWORD_ERROR.getStatusCode());