-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partisan_plumtree_broadcast
crashing
#252
Comments
@mcesaro I need to take a look at this to see whether the issue is in Partisan, PlumDB or Erleans (our fork). |
@aramallo Hi, =CRASH REPORT==== 26-Oct-2023::08:28:08.676084 ===
crasher:
initial call: partisan_plumtree_broadcast:init/1
pid: <0.18966.0>
registered_name: partisan_plumtree_broadcast
exception error: undefined function plum_db:merge/2
in function partisan_plumtree_broadcast:handle_cast/2 (/home/max/work/ska/_build/default/lib/partisan/src/partisan_plumtree_broadcast.erl, line 549)
in call from gen_server:try_handle_cast/3 (gen_server.erl, line 1103)
in call from gen_server:handle_msg/6 (gen_server.erl, line 1165)
ancestors: [partisan_sup,<0.1007.0>]
message_queue_len: 0
messages: []
links: [<0.1008.0>,<0.1019.0>]
dictionary: [{rand_seed,{#{type => exsss,next => #Fun<rand.0.65977474>,
bits => 58,uniform => #Fun<rand.1.65977474>,
uniform_n => #Fun<rand.2.65977474>,
jump => #Fun<rand.3.65977474>},
[125007732914024471|257206006587947701]}}]
trap_exit: false
status: running
heap_size: 610
stack_size: 28
reductions: 40368
neighbours:
=SUPERVISOR REPORT==== 26-Oct-2023::08:28:08.676618 ===
supervisor: {local,partisan_sup}
errorContext: child_terminated
reason: {undef,
[{plum_db,merge,
[{{{erleans_pm,registry},
{'pebble@max-a5',
{<<"01HDNAMM2S470TFV43NFD2GMNE">>,pebble}}},
[{{12,'e8a18d8a-73c7-11ee-bbf0-1d718ad5fce5@max-a5'},
2}]},
{object,
{[{{12,
'e8a18d8a-73c7-11ee-bbf0-1d718ad5fce5@max-a5'},
2,
[{'$deleted',{1698,301688,672946}}]}],
[]}}],
[]},
{partisan_plumtree_broadcast,handle_cast,2,
[{file,
"/home/max/work/ska/_build/default/lib/partisan/src/partisan_plumtree_broadcast.erl"},
{line,549}]},
{gen_server,try_handle_cast,3,
[{file,"gen_server.erl"},{line,1103}]},
{gen_server,handle_msg,6,
[{file,"gen_server.erl"},{line,1165}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,241}]}]}
offender: [{pid,<0.18966.0>},
{id,partisan_plumtree_broadcast},
{mfargs,{partisan_plumtree_broadcast,start_link,[]}},
{restart_type,permanent},
{significant,false},
{shutdown,5000},
{child_type,worker}] I think I can trigger this behaviour in my laptop by suspending it on Wifi1 and waking it on Wifi2. |
@mcesaro Thanks for the extra info. However, notice that since |
@aramallo Hi, my bad. One of the servers also includes |
Likely related to #251, when nodes go down and up a few times (usually when debugging apps!), dynamic node names appear apparently randomly, and for some reason this leads to a crash of
partisan_plumtree_broadcast
:It seems that the plum_db:merge function is not available because the module is not loaded.
The text was updated successfully, but these errors were encountered: