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

Implement zero copy for FetchSnapshot

    XMLWordPrintableJSON

Details

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

    Description

      Change the RawSnapshotWriter and RawSnapshotReader interfaces to allow sending and receiving FetchSnapshotResponse with minimal memory copies.

      This could be implemented by making the following changes

      interface RawSnapshotWriter {
        ...
        public void append(MemoryRecords records) throws IOException;
      } 
      interface RawSnapshotReader {
        ...
        public BaseRecords slice(long position) throws IOException;
      }

      Attachments

        Issue Links

          Activity

            People

              dengziming Deng Ziming
              jagsancio Jose Armando Garcia Sancio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: