From 8d398af92f5075fcd46de4ab14524eaf00928599 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 25 Sep 2019 12:52:36 +0300 Subject: [PATCH] app/vminsert/netstorage: mention the data size that cannot be sent to vmstorage Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/175 --- app/vminsert/netstorage/netstorage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vminsert/netstorage/netstorage.go b/app/vminsert/netstorage/netstorage.go index 5a000530b..66dd8b068 100644 --- a/app/vminsert/netstorage/netstorage.go +++ b/app/vminsert/netstorage/netstorage.go @@ -137,11 +137,11 @@ func (sn *storageNode) sendBufLocked(buf []byte) error { } if _, err := sn.bc.Write(buf); err != nil { 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 { 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 }