mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
skip empty blocks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user