forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
106363: kvserver: log incoming snapshot trace on context cancellation r=AlexTalks a=AlexTalks While traces captured during an incoming snapshot are collected and returned as part of the snapshot response, both on server-side error and on successful application, when the context is cancelled (e.g. on snapshot timeout) the traces are unable to be returned and previously were discarded. This changes the functionality such that in case there is an error on sending to / reading from the incoming snapshot stream due to context cancellation, the collected traces will be logged on the server side - i.e. the snapshot recipient. Fixes: cockroachdb#105820 Release note: None Co-authored-by: Alex Sarkesian <[email protected]>
- Loading branch information
Showing
1 changed file
with
54 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters