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

This commit is contained in:
Aliaksandr Valialkin 2020-05-28 22:36:49 +03:00
parent 6f94fb6842
commit 02b2064d8e

View File

@ -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