@Override
    public Metrics metricsRegistry() {
        return metrics;
    }
Release the light lock protecting the consumer from multi-threaded access.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java