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

API and implementation for snapshot loading

    XMLWordPrintableJSON

Details

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

    Description

      Following changes need to be implemented:

      1. Notify the Listener when a snapshot is available:

      interface Listener<T> {
        void handleSnapshot(SnapshotReader<T> snapshot);
      
        ...
      } 

      It is possible that we can reuse the existing BatchReader<T> but I am not sure at this point. Whenever handleSnapshot is called the implementation should assume that the state has been rewound.

       

      2. Update the ListenerContext when a snapshot is available:

      class ListenerContext {
        void fireHandleSnapshot(SnapshotReader<T> snapshot);
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: