You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
f06e1fb changed how we handling deleting series. We now keep them in cassandra and just filter at startup.
This breaks some important logic that ensures previous versions of a series that are still active are not deleted. eg, if the interval of a series is changed a new metricDefinition is created. The series now has 2 metricDefs. The pruning logic in idx.Memory ensures that as long as one of these metricDefs is being updated both will be kept. Without this logic the historical data sent with the old interval will be lost.
f06e1fb changed how we handling deleting series. We now keep them in cassandra and just filter at startup.
This breaks some important logic that ensures previous versions of a series that are still active are not deleted. eg, if the interval of a series is changed a new metricDefinition is created. The series now has 2 metricDefs. The pruning logic in idx.Memory ensures that as long as one of these metricDefs is being updated both will be kept. Without this logic the historical data sent with the old interval will be lost.
We should be able to restore the previous logic by
removing https://github.com/grafana/metrictank/blob/master/idx/cassandra/cassandra.go#L363-L365
and updating https://github.com/grafana/metrictank/blob/master/idx/cassandra/cassandra.go#L349-L352 to scan the metricDefs and only remove defs if all versions for a series are older then maxStale
The text was updated successfully, but these errors were encountered: