boundary / folsom

Expose Erlang Events and Metrics
Apache License 2.0
585 stars 166 forks source link

Change the order of delete cascade for `spiral' #56

Closed russelldb closed 11 years ago

russelldb commented 11 years ago

A crash of folsom_metrics_histogram_ets leaves spirals broken. The spiral ets table goes away, so it can not be updated, nor can it be deleted and re-created due to the delete order of metric table, spiral table, folsom table. Have changed the order to be more like that of histogram so deletes will succeed in the event of a missing spiral ets table.

(Addresses https://github.com/boundary/folsom/issues/55)