You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Anish Shrigondekar (Jira)" <ji...@apache.org> on 2026/10/14 18:20:00 UTC

[jira] [Resolved] (SPARK-60076) Kafka Consumer Race Condition upon recovery when failOnDataLoss=false

     [ https://issues.apache.org/jira/browse/SPARK-60076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anish Shrigondekar resolved SPARK-60076.
----------------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 59285
[https://github.com/apache/spark/pull/59285]

> Kafka Consumer Race Condition upon recovery when failOnDataLoss=false
> ---------------------------------------------------------------------
>
>                 Key: SPARK-60076
>                 URL: https://issues.apache.org/jira/browse/SPARK-60076
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 4.0.4
>            Reporter: Zifei Feng
>            Assignee: Zifei Feng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
>  Kafka consumer releases the old consumer back to the pool after the out-of-range exception, but pass the same reference of consumer to `getEarliestAvailableOffsetBetween`, causing `llegalStateException from org.apache.spark.sql.kafka010.consumer.InternalKafkaConsumer`



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org