Add ErrorCode to StorageServerTrackerCancelled trace event

This commit is contained in:
Andrew Noyes 2020-10-16 15:40:01 -07:00
parent 30488df5ea
commit 9dec4bc46a
1 changed files with 2 additions and 1 deletions

View File

@ -3905,7 +3905,8 @@ ACTOR Future<Void> storageServerTracker(
TraceEvent("StorageServerTrackerCancelled", self->distributorId)
.suppressFor(1.0)
.detail("Primary", self->primary)
.detail("Server", server->id);
.detail("Server", server->id)
.detail("ErrorCode", e.code());
if (e.code() != error_code_actor_cancelled && errorOut.canBeSet()) {
errorOut.sendError(e);
wait(delay(0)); // Check for cancellation, since errorOut.sendError(e) could delete self