Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73155: rpc: avoid use-after-Stop via RPC endpoints r=erikgrinaker a=tbg This avoids a class of crashes on shutdown that occur when an RPC is handled after the stopper has already stopped (and in the process has stopped the Stores' pebble instances. These crashes are probably very rare in production but hit with some regularity in unit tests, for an example see: #68395 (comment) I was also able to hit this locally within a few minutes by running `make stress PKG=./pkg/kv/kvserver/ TESTS=TestStrictGCEnforcement/protected_timestamps_are_respected`. Fixes #73154. Release note: None Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information