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
148965: kvserver: do not cancel while in HandleRaftResponse r=tbg a=pav-kv
If the context is canceled in the middle of `HandleRaftResponse` (after `processQueue` returns), a `Replica` can be left in a broken state, e.g. its destruction can be partially completed. This can brick a `RangeID`, e.g. cause a subsequent call to `getOrCreateReplica` to be stuck in an infinite loop.
This commit allows the `HandleRaftResponse` loop to terminate gracefully, by using a higher-level context which is not cancelable.
Fixes#140958, #145030
Co-authored-by: Pavel Kalinnikov <[email protected]>
0 commit comments