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

Peer Service crashes when message uses an unknown causal_label #240

Open
aramallo opened this issue Jan 26, 2023 · 0 comments
Open

Peer Service crashes when message uses an unknown causal_label #240

aramallo opened this issue Jan 26, 2023 · 0 comments
Assignees
Labels

Comments

@aramallo
Copy link
Collaborator

aramallo commented Jan 26, 2023

How to reproduce

(Partisan v5.0.0 master)

  1. Start two partisan nodes using rebar3 shell
  2. Get the PidRef for the Erlang shell on node 2 e.g.
1>partisan:self().
<<"partisan:pid:[email protected]:0.270.0">>
  1. Send a message with a causal label that has not been defined in the Partisan configuration
1>partisan:forward_message(<<"partisan:pid:[email protected]:0.270.0">>, hello, #{causal_label => foo}).

Result

2023-01-26T19:51:19.447404+00:00 gen_server.erl:949 error: ** Generic server partisan_pluggable_peer_service_manager terminating
...
** Reason for termination ==
** {{noproc,
        {gen_server,call,
            [partisan_causality_backend_foo,
             {emit,'[email protected]',
                 {encoded_pid,"<0.270.0>"},
                 {'$partisan_padded',undefined,hello}},
             infinity]}},
    [{gen_server,call,3,[{file,"gen_server.erl"},{line,247}]},
     {partisan_pluggable_peer_service_manager,handle_cast,2,
         [{file,
              "/Volumes/Work/Lasp/partisan/src/partisan_pluggable_peer_service_manager.erl"},
          {line,1014}]},
@aramallo aramallo self-assigned this Jan 26, 2023
@aramallo aramallo added the bug label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant