Hi, Right now, SimpleStateMachineStorage#loadLatestSnapshot only called when initialized. Supposed there are several reloads. IIUC, only StateMachine#reinitialize will be called.
In CounterStateMachine#reinitialize, it writes:
@Override
public void reinitialize() throws IOException {
load(storage.getLatestSnapshot());
}
But what if the lastest snapshot changed among multiple reloads? From
current codebase it seems no one will call loadLatestSnapshot anymore to
update the field.
Best,
tison.
