You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2021/05/01 17:07:00 UTC
[jira] [Resolved] (KAFKA-12154) API and implementation for snapshot
loading
[ https://issues.apache.org/jira/browse/KAFKA-12154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Gustafson resolved KAFKA-12154.
-------------------------------------
Resolution: Fixed
> API and implementation for snapshot loading
> -------------------------------------------
>
> Key: KAFKA-12154
> URL: https://issues.apache.org/jira/browse/KAFKA-12154
> Project: Kafka
> Issue Type: Sub-task
> Components: replication
> Reporter: Jose Armando Garcia Sancio
> Assignee: Jose Armando Garcia Sancio
> Priority: Major
>
> Following changes need to be implemented:
> 1. Notify the {{Listener}} when a snapshot is available:
> {code:java}
> interface Listener<T> {
> void handleSnapshot(SnapshotReader<T> snapshot);
> ...
> } {code}
> 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:
> {code:java}
> class ListenerContext {
> void fireHandleSnapshot(SnapshotReader<T> snapshot);
> }{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)