You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we restore a snapshot, the lastApplied index is set to the snapshot index. If we can't restore from the latest snapshot, lastApplied index is set to an old value, X. As we had a successful snapshot afterwords, append log doesn't have log entries from X+1 to the last index and it panics looking up the missing entries.
I would have assumed we would move the applied index forward or fail to restart completely in this case instead of failing later.
The text was updated successfully, but these errors were encountered:
https://gist.github.com/fahadullah/6089c60bf6c57da0143b
When we restore a snapshot, the lastApplied index is set to the snapshot index. If we can't restore from the latest snapshot, lastApplied index is set to an old value, X. As we had a successful snapshot afterwords, append log doesn't have log entries from X+1 to the last index and it panics looking up the missing entries.
I would have assumed we would move the applied index forward or fail to restart completely in this case instead of failing later.
The text was updated successfully, but these errors were encountered: