[ https://issues.apache.org/jira/browse/KAFKA-14928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17800610#comment-17800610 ]
Stanislav Kozlovski commented on KAFKA-14928: --------------------------------------------- Changing target fix version to 3.8 since this is not a blocker and we are cutting a 3.7 RC > Metrics collection contends on lock with log cleaning > ----------------------------------------------------- > > Key: KAFKA-14928 > URL: https://issues.apache.org/jira/browse/KAFKA-14928 > Project: Kafka > Issue Type: Bug > Reporter: Divij Vaidya > Assignee: Divij Vaidya > Priority: Major > Fix For: 3.7.0 > > > In LogCleanerManager.scala, calculation of a metric requires a lock [1]. This > same lock is required by core log cleaner functionality such as > "grabFilthiestCompactedLog". This might lead to a situation where metric > calculation holding the lock for an extended period of time may affect the > core functionality of log cleaning. > This outcome of this task is to prevent expensive metric calculation from > blocking log cleaning/compaction activity. > [1] > https://github.com/apache/kafka/blob/dd63d88ac3ea7a9a55a6dacf9c5473e939322a55/core/src/main/scala/kafka/log/LogCleanerManager.scala#L102 -- This message was sent by Atlassian Jira (v8.20.10#820010)