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
Asynchronously (cast) instructs the exometer_cache process to start a timer for the (metric-datapoint keyed) cache deletion, and to update (ets:update_element) the relevant field in the ETS entry with the timer ref;
It replaces (ets:insert) the ETS entry, without timer ref.
Depending on the scheduling of the process calling exometer_cache:write and the exometer_cache process (I am excluding process death for simplicity), the cache ETS entry may or may not have the timer ref.
If the cache ETS entry has no timer ref, the cache ETS entry is not deleted when the timer fires.
A following exometer_cache:write may update the cache ETS entry, though it looks to me this is not the intended behaviour hence the report.
Sample minimal example (notice the ets:select_delete calls):
When a process calls
exometer_cache:write/{3,4}
, it:exometer_cache
process to start a timer for the (metric-datapoint keyed) cache deletion, and to update (ets:update_element
) the relevant field in the ETS entry with the timer ref;ets:insert
) the ETS entry, without timer ref.Depending on the scheduling of the process calling
exometer_cache:write
and theexometer_cache
process (I am excluding process death for simplicity), the cache ETS entry may or may not have the timer ref.If the cache ETS entry has no timer ref, the cache ETS entry is not deleted when the timer fires.
A following
exometer_cache:write
may update the cache ETS entry, though it looks to me this is not the intended behaviour hence the report.Sample minimal example (notice the
ets:select_delete
calls):The text was updated successfully, but these errors were encountered: