Skip to content

'badarg' thrown in ETS update #73

@GalaxyGorilla

Description

@GalaxyGorilla

Hi!

I have a problem with counter updates which very seldom appears. An error is thrown with the following 'reason':

{error, badarg, [{ets, update_counter, [exometer_2, [some, exometer, id], {8,1}], []}

Unfortunately I am not able to reproduce this, it seems to be a very tricky race condition. However, I was curious how this could even happen within exometer. The error happens HERE. So the internal ID lookup works but the following ETS update call seems to raise an error for whatever reason. For me it looks like such a call to the ETS table should never crash when the previous lookup is successful.

I am very grateful for any hints that I might try on my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions