app/vminsert/netstorage: mention the data size that cannot be sent to vmstorage

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/175
This commit is contained in:
Aliaksandr Valialkin 2019-09-25 12:52:36 +03:00
parent 73ac7b8dd6
commit 8d398af92f

View file

@ -137,11 +137,11 @@ func (sn *storageNode) sendBufLocked(buf []byte) error {
} }
if _, err := sn.bc.Write(buf); err != nil { if _, err := sn.bc.Write(buf); err != nil {
sn.closeBrokenConn() sn.closeBrokenConn()
return fmt.Errorf("cannot write data: %s", err) return fmt.Errorf("cannot write data with size %d: %s", len(buf), err)
} }
if err := sn.bc.Flush(); err != nil { if err := sn.bc.Flush(); err != nil {
sn.closeBrokenConn() sn.closeBrokenConn()
return fmt.Errorf("cannot flush data: %s", err) return fmt.Errorf("cannot flush data with size %d: %s", len(buf), err)
} }
return nil return nil
} }