fn: LB agent: EOF from runner is normal in nack cases (#1032)

This commit is contained in:
Tolga Ceylan
2018-06-04 12:10:00 -07:00
committed by GitHub
parent 00c29b8bf3
commit 7261ddedcc

View File

@@ -181,7 +181,11 @@ func sendToRunner(protocolClient pb.RunnerProtocol_EngageClient, call pool.Runne
},
})
if sendErr != nil {
// It's often normal to receive an EOF here as we optimistically start sending body until a NACK
// from the runner. Let's ignore EOF and rely on recv side to catch premature EOF.
if sendErr != io.EOF {
logrus.WithError(sendErr).Errorf("Failed to send data frame size=%d isEOF=%v", n, isEOF)
}
return
}
if isEOF {