You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Luke Chen (Jira)" <ji...@apache.org> on 2025/02/16 07:56:00 UTC

[jira] [Created] (KAFKA-18805) Consumer Heartbeat closed change should be locked

Luke Chen created KAFKA-18805:
---------------------------------

             Summary: Consumer Heartbeat closed change should be locked
                 Key: KAFKA-18805
                 URL: https://issues.apache.org/jira/browse/KAFKA-18805
             Project: Kafka
          Issue Type: Bug
            Reporter: Luke Chen


This `this.closed = true` is not wrapped inside the lock, which could cause the change is not visible in another thread.

 

https://github.com/apache/kafka/blob/e330f0bf2570a27811fa20a2f446b101a7a656f3/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java#L1580



--
This message was sent by Atlassian Jira
(v8.20.10#820010)