From 02b2064d8e3a2364a6c00b33540260cd3ce33845 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 28 May 2020 22:36:49 +0300 Subject: [PATCH] app/vminsert/netstorage: do not increment vm_rpc_rows_lost_total when all the vmstorage nodes are unavailable, since vminsert retries sending the data instead of dropping it --- app/vminsert/netstorage/netstorage.go | 1 - 1 file changed, 1 deletion(-) diff --git a/app/vminsert/netstorage/netstorage.go b/app/vminsert/netstorage/netstorage.go index 2aa64098c8..9b978a1c63 100644 --- a/app/vminsert/netstorage/netstorage.go +++ b/app/vminsert/netstorage/netstorage.go @@ -143,7 +143,6 @@ func sendBufToReplicas(br *bufRows, snIdx, replicas int) bool { if attempts > len(storageNodes) { if i == 0 { // The data wasn't replicated at all. - rowsLostTotal.Add(br.rows) logger.Warnf("cannot push %d bytes with %d rows to storage nodes, since all the nodes are temporarily unavailable; "+ "re-trying to send the data soon", len(br.buf), br.rows) return false