grafana / metrictank

metrics2.0 based, multi-tenant timeseries store for Graphite and friends.
GNU Affero General Public License v3.0
621 stars 105 forks source link

UnpartitionedMemoryIdx.Get does not check writeQueue #2018

Closed shanson7 closed 2 years ago

shanson7 commented 2 years ago

Describe the bug

In rare cases when a new series is created and persisted in a small window, it might still be in the index writeQueue. When the notifier attempts to use Get() it cannot find it and prints

kafka-cluster: failed to lookup metricDef

It seems that UnpartitionedMemoryIdx.Get needs to check the writeQueue.