From 4e3743e573d5547ae1a28bb1c0bcb3e20db93674 Mon Sep 17 00:00:00 2001 From: Max Kotliar Date: Tue, 12 May 2026 16:29:52 +0300 Subject: [PATCH] skip empty blocks --- app/vmagent/remotewrite/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/vmagent/remotewrite/client.go b/app/vmagent/remotewrite/client.go index 9af3160806..2610cb5620 100644 --- a/app/vmagent/remotewrite/client.go +++ b/app/vmagent/remotewrite/client.go @@ -526,6 +526,10 @@ func (c *client) drainInMemoryQueue(stopCtx context.Context, block []byte) { // In this case it is guaranteed that fq will be empty return } + if len(block) == 0 { + // skip empty data blocks from sending + continue + } // at this stage c.stopCh should be closed // so sendBlock function should not perform retries