opened
samanderson
username_0
During raft.RecoverCluster, a snapshot is created with the last index being 1 more than the `lastIndex` in the log. https://github.com/hashicorp/raft/blob/b47bafab395164c561a61f4bd63d725d8cd5a665/raft.go#L959

After this snapshot is created it attempts to compact the logs by deleting the logs from `firstIndex` to `lastIndex +1` This library throws an index out of bounds error https://github.com/tidwall/raft-wal/blob/ba7138bf9f8dee04aeb37d6eddc4ee564b45f265/store.go#L174. 

Have you considered ignoring deletion of items greater than lastIndex as other libraries do?
Cannot RecoverCluster with this logStore
issue