public static LogContext createLogContext(final String clientId, final String groupId) {
        return new LogContext("[ShareConsumer clientId=" + clientId + ", groupId=" + groupId + "] ");
    }
Release the light lock protecting the consumer from multithreaded access.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java