Skip to content
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

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

Open
stephenwood24-nhs opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@stephenwood24-nhs
Copy link

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}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant