public static void unsetDatabaseIfNotExist(final String database, final IClientSession session) {
    if (database.equals(session.getDatabaseName())) {
      session.setDatabaseName(null);
    }
  }
FIXME Consolidate this clientManager with the upper one.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java