public void updateState() {
        maybeLoadSnapshot();
        maybeLoadLog();
    }
Must be called whenever the {@code log} has changed.
raft/src/main/java/org/apache/kafka/raft/internals/KRaftControlRecordStateMachine.java