Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10310 Kafka Raft Snapshot
  3. KAFKA-12543

Re-design the ownership model for snapshots

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            jagsancio Jose Armando Garcia Sancio
            jagsancio Jose Armando Garcia Sancio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: