Skip to content

Exception thrown in ra:process_command() when leader stop #310

@shino

Description

@shino

When trying to reproduce #309 (which failed), I encountered exceptions thrown in ra:process_command():

  !!!!!!! write error by exception !!!!!!!!!: {exit,
                                             {shutdown,
                                              {gen_statem,call,
                                               [{repro,'n1@127.0.0.1'},
                                                {leader_call,
                                                 {command,normal,
                                                  {'$usr',
                                                   {write,51,51},
                                                   await_consensus}}},
                                                100]}},
                                             [{gen,do_call,4,
                                               [{file,"gen.erl"},{line,266}]},
                                              {gen_statem,
                                               '-call_clean/4-fun-0-',5,
                                               [{file,"gen_statem.erl"},
                                                {line,917}]}]}

Script to reproduce:

Steps to reproduce:

  • git clone ra and make it
  • execute the script above with the argument of ra path, for example
    erlc repro.erl && erl -s repro main "/path/to/ra" -s init stop
  • Search write error by exception from its output

Discussion point: Is the exception above should be catched and converted?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions