shards
shards copied to clipboard
shards:info/1 bad argument crash
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
Looking into it! BTW, may you also try with the latest version 1.0.1?