rodesai commented on a change in pull request #11149: URL: https://github.com/apache/kafka/pull/11149#discussion_r697727733
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java ########## @@ -269,6 +300,12 @@ public final void removeAllThreadLevelSensors(final String threadId) { metrics.removeSensor(sensors.pop()); } } + synchronized (threadLevelMetrics) { Review comment: These metrics aren't tied to a sensor - they just report values that are either constant or are accumulated from other metrics. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org