You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Luke Chen (Jira)" <ji...@apache.org> on 2025/02/17 06:39:00 UTC
[jira] [Resolved] (KAFKA-18805) Consumer Heartbeat closed change should be locked
[ https://issues.apache.org/jira/browse/KAFKA-18805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luke Chen resolved KAFKA-18805.
-------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> 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
> Assignee: 黃竣陽
> Priority: Major
> Labels: newbie
> Fix For: 4.1.0
>
>
> 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)