shards icon indicating copy to clipboard operation
shards copied to clipboard

shards:info/1 bad argument crash

Open garthk opened this issue 5 years ago • 1 comments

Can lose a race between looking up the shards and calling ets:info/1, getting undefined instead of a list, and:

[error] GenServer Braun.CacheMonitor terminating
** (ArgumentError) argument error
    (stdlib 3.13.2) :lists.keyfind(:size, 1, :undefined)
    (shards 0.6.2) deps/shards/src/shards_local.erl:1531: anonymous fn/3 in :shards_local.shards_info/3
    (shards 0.6.2) deps/shards/src/shards_lib.erl:161: anonymous fn/4 in :shards_lib.keyupdate/4

garthk avatar Nov 30 '20 00:11 garthk

Looking into it! BTW, may you also try with the latest version 1.0.1?

cabol avatar Nov 30 '20 08:11 cabol