You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/10/12 19:52:00 UTC

[jira] [Commented] (KAFKA-21270) Race condition can cause a newly created connector to use initial offsets from another request

    [ https://issues.apache.org/jira/browse/KAFKA-21270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18126483#comment-18126483 ] 

Chia-Ping Tsai commented on KAFKA-21270:
----------------------------------------

see https://github.com/apache/kafka/pull/23783#discussion_r4251783185

> Race condition can cause a newly created connector to use initial offsets from another request
> ----------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-21270
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21270
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>
> {{doPutConnectorConfig}} needs two requests to complete its job, which means another user’s request could slip in between and cause a race condition. For example, the first request sets initial offsets, but the second doesn’t. When the race happens, the connector created by the second request could use the initial offsets set by the first request without any warning.
> Of course ... if both requests have identical initial offsets, that is fine 🙂



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