Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: handle context cancellation when receiving snapshots
In a3fd4fb, context errors are now propagated back up the stack when receiving snapshots. However, a `maybeFatalOnRaftReadyErr` assertion further up the stack was not prepared to handle these new errors and crash the node. This patch explicitly propagates the context cancellation errors on the snapshot receival code path, returning it up the stack. It does not modify `maybeFatalOnRaftReadyErr` to allow context cancellation, since the main Raft `processReady` path appears to use a background context and improved context handling here likely requires more care. Release note: None
- Loading branch information