Skip to content

[BUG] Frequent errors cause the CPU to surge, even when there is no traffic at all. #4058

@Snuger

Description

@Snuger

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Image

2026-03-09 10:52:03 [victoria-metrics-cluster-flush-timer] ERROR org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage - flush metrics data to victoria-metrics error: Cannot invoke "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$Compression.enabled()" because the return value of "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$InsertConfig.compression()" is null.
java.lang.NullPointerException: Cannot invoke "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$Compression.enabled()" because the return value of "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$InsertConfig.compression()" is null
at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage.doSaveData(VictoriaMetricsDataStorage.java:689)
at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage$MetricsFlushTask.triggerDoSaveData(VictoriaMetricsDataStorage.java:655)
at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage$MetricsFlushTask.run(VictoriaMetricsDataStorage.java:646)
at org.apache.hertzbeat.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:645)
at org.apache.hertzbeat.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:722)
at org.apache.hertzbeat.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:446)
at java.base/java.lang.Thread.run(Thread.java:1583)

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s): 1.8

Debug logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions