Jose Armando Garcia Sancio created KAFKA-12543: --------------------------------------------------
Summary: 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 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)