You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jose Armando Garcia Sancio (Jira)" <ji...@apache.org> on 2021/03/29 19:55:00 UTC

[jira] [Assigned] (KAFKA-12543) Re-design the ownership model for snapshots

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

Jose Armando Garcia Sancio reassigned KAFKA-12543:
--------------------------------------------------

    Assignee: Jose Armando Garcia Sancio

> Re-design the ownership model for snapshots
> -------------------------------------------
>
>                 Key: KAFKA-12543
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12543
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Jose Armando Garcia Sancio
>            Assignee: Jose Armando Garcia Sancio
>            Priority: Major
>
> With the current implementation, {{RawSnapshotReader}} are created and closed by the {{KafkaRaftClient}} as needed to satisfy {{FetchSnapshot}} requests. This means that for {{FileRawSnapshotReader}} they are closed before the network client has had a chance to send the bytes over the network.
> One way to fix this is to make the {{KafkaMetadataLog}} the owner of the {{FileRawSnapshotReader}}. Once a {{FileRawSnapshotReader}} is created it will stay open until the snapshot is deleted by {{ReplicatedLog::deleteBeforeSnapshot}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)