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 2024/07/19 01:44:00 UTC

[jira] [Created] (KAFKA-17167) Moving the flush call inside the read lock when writing truncation

Chia-Ping Tsai created KAFKA-17167:
--------------------------------------

             Summary: Moving the flush call inside the read lock when writing truncation
                 Key: KAFKA-17167
                 URL: https://issues.apache.org/jira/browse/KAFKA-17167
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


copy the discussion  (https://github.com/apache/kafka/pull/16614#discussion_r1683340380) to here
{quote}
Consider the following sequence: we take a snapshot of the epoch entries here; a new epoch entry is added and is flushed to disk; the scheduler then writes the snapshot to disk. This can lead to the case where the leader epoch file doesn't contain all entries up to the recovery point.
{quote}



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