OpenRiak / riak_kv

Riak Key/Value Store
0 stars 0 forks source link

Manual ttaaefs causes manager to crash when scope=disabled #24

Open stephenwood24-nhs opened 7 months ago

stephenwood24-nhs commented 7 months ago

On a node where ttaaefs_scope = disabled, attempting the following via remote_console;

riak_client:ttaaefs_fullsync(all_check).

causes the riak_kv_ttaaefs_manager to crash and restart, and the above command to hang.

This should be handled gracefully.

Crash dump

2024-03-07 11:17:16 =ERROR REPORT====

** Generic server riak_kv_ttaaefs_manager terminating 

** Last message in was {'$gen_cast',{all_check,106568893,<0.23500.2572>,{1709,810236,800573}}}

** When Server state == {state,[{23,no_check},{24,no_check}],{1709,733600,0},[{no_check,24},{all_check,0},{day_check,0},{hour_check,0},{range_check,0},{auto_check,0}],undefined,"10.5.125.43",8085,pb,undefined,disabled,undefined,undefined,undefined,live2a,live2c,#Fun<riak_kv_ttaaefs_manager.0.26511104>,24,false,{1709,731627,110588},{1709,731627,110588},always,{2,2,2}}

** Reason for termination ==

** {{case_clause,disabled},[{riak_kv_ttaaefs_manager,handle_cast,2,[{file,"/home/ubuntu/nhs-riak/rel/pkg/out/riak-3.0.18-nhse-OTP22.3/_build/default/lib/riak_kv/src/riak_kv_ttaaefs_manager.erl"},{line,440}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}

2024-03-07 11:17:16 =CRASH REPORT====

  crasher:

    initial call: riak_kv_ttaaefs_manager:init/1

    pid: <0.572.0>

    registered_name: riak_kv_ttaaefs_manager

    exception error: {{case_clause,disabled},[{riak_kv_ttaaefs_manager,handle_cast,2,[{file,"/home/ubuntu/nhs-riak/rel/pkg/out/riak-3.0.18-nhse-OTP22.3/_build/default/lib/riak_kv/src/riak_kv_ttaaefs_manager.erl"},{line,440}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}

    ancestors: [riak_kv_sup,<0.451.0>]

    message_queue_len: 0

    messages: []

    links: [<0.562.0>]

    dictionary: [{rand_seed,{#{bits => 58,jump => #Fun<rand.13.8986388>,next => #Fun<rand.10.8986388>,type => exsss,uniform => #Fun<rand.11.8986388>,uniform_n => #Fun<rand.12.8986388>},[115954184737079190|144086416177946411]}}]

    trap_exit: false

    status: running

    heap_size: 1598

    stack_size: 27

    reductions: 32177

  neighbours:

2024-03-07 11:17:16 =SUPERVISOR REPORT====

     Supervisor: {local,riak_kv_sup}

     Context:    child_terminated

     Reason:     {{case_clause,disabled},[{riak_kv_ttaaefs_manager,handle_cast,2,[{file,"/home/ubuntu/nhs-riak/rel/pkg/out/riak-3.0.18-nhse-OTP22.3/_build/default/lib/riak_kv/src/riak_kv_ttaaefs_manager.erl"},{line,440}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}

     Offender:   [{pid,<0.572.0>},{id,riak_kv_ttaaefs_manager},{mfargs,{riak_kv_ttaaefs_manager,start_link,[]}},{restart_type,permanent},{shutdown,30000},{child_type,worker}]