This PR fixes a panic in finding a frame offset where the offset list does not contain the entry index.
In our hackweek project, we attempted to integrate raft-wal with Vault with integrated storage. As part of the integration, we found that snapshot restore is broken as raft with boltDB as its stable store allows for gaps in the logStore. However, raft-wal is a monotonically increasing gapless store. So, the integration test triggered the above panic.
This PR fixes a panic in finding a frame offset where the offset list does not contain the entry index.
In our hackweek project, we attempted to integrate raft-wal with Vault with integrated storage. As part of the integration, we found that snapshot restore is broken as raft with boltDB as its stable store allows for gaps in the logStore. However, raft-wal is a monotonically increasing gapless store. So, the integration test triggered the above panic.