public static SessionManager getInstance() {
    return SessionManagerHelper.INSTANCE;
  }
must be called after registerSession()) will mark the session login.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/SessionManager.java