mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
73ac7b8dd6
commit
8d398af92f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue