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)