Crash of the supervisor after returning {:stop, :normal, new_state}
philipgiuliani opened this issue · 0 comments
philipgiuliani commented
Hi, I had a crash last which caused all my dynamic processes to die. I was able to find the same Exception in the following merge request: #174 .
From the logs I was able to understand that this crash happened after intentionally stopping one of the processes by returning {:stop, :normal, new_state}
.
no match of right hand side value: {nil, %{313854086261391977690390045091944077607 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 313854086261391977690390045091944077607, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21267.4>}, 149259218549165197180665852295457920292 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 149259218549165197180665852295457920292, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18167.3>}, 226855646093648731837142379811938184963 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 226855646093648731837142379811938184963, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21907.4>}, 190627808418122809639180098142870467922 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 190627808418122809639180098142870467922, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21094.4>}, 251535632414391847411522514611743156302 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 251535632414391847411522514611743156302, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.22289.4>}, 41081189049395555431763798610706205006 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 41081189049395555431763798610706205006, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["MsC0KZIpBpRA", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:39:41Z], stop_at: ~U[2020-11-08 07:54:41Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.19290.3>}, 284420787479571802432553758969080588265 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 284420787479571802432553758969080588265, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21107.4>}, 161915247615621824800936729107194825849 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 161915247615621824800936729107194825849, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18856.3>}, 145833599192003378250465561162806729294 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 145833599192003378250465561162806729294, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17526.3>}, 101759267421973679796019640034855940747 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 101759267421973679796019640034855940747, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.20057.4>}, 278383866812976862385851008321453241761 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 278383866812976862385851008321453241761, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.20422.4>}, 31478281491949509703032890043256430157 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 31478281491949509703032890043256430157, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18378.3>}, 318836710076350054583680844059831931515 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 318836710076350054583680844059831931515, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17049.3>}, 296749641433682824076078674629601409138 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 296749641433682824076078674629601409138, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17122.3>}, 330981516631927738358671923666657293481 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 330981516631927738358671923666657293481, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21636.4>}, 273534784969846021320935452779939305687 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 273534784969846021320935452779939305687, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18342.3>}, 66015234392524000529299153266154007761 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 66015234392524000529299153266154007761, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21604.4>}, 271469667262939898879212256304692324146 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 271469667262939898879212256304692324146, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18473.3>}, 331788719823132238951568881447487012991 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 331788719823132238951568881447487012991, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.20627.4>}, 167021464603875012809027764567968169574 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 167021464603875012809027764567968169574, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21194.4>}, 205514367313998941167636522431368029861 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 205514367313998941167636522431368029861, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18576.3>}, 57568984242103541116141101822298629743 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 57568984242103541116141101822298629743, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18776.3>}, 46595156205471647166973096717996309427 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 46595156205471647166973096717996309427, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21222.4>}, 295284086658799927235059760570462057268 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 295284086658799927235059760570462057268, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.20179.4>}, 333528043089627143277244429547179518831 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 333528043089627143277244429547179518831, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17109.3>}, 129860329343509426551419205830927862520 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 129860329343509426551419205830927862520, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18389.3>}, 292447192923830355295067030285753688890 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 292447192923830355295067030285753688890, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17623.3>}, 120434965649467893842428016795801956822 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 120434965649467893842428016795801956822, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21706.4>}, 55379397655062911082462732433575718684 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 55379397655062911082462732433575718684, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.16678.3>}, 8600056337002546226256216239967258713 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 8600056337002546226256216239967258713, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17949.3>}, 248362525639453671000722960729462733605 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 248362525639453671000722960729462733605, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.21782.4>}, 16045231953493165486649615409093105583 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 16045231953493165486649615409093105583, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.17392.3>}, 24595544515614035527160239689001460556 => {{Example.Scheduler.Supervisor, :"hostname@172.31.28.46"}, %{id: 24595544515614035527160239689001460556, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], stop_at: ~U[2020-11-08 07:45:50Z]}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64457.18201.3>}, 68827971783530440279451197351589049837 => {{Example.Scheduler.Supervisor, :"hostname@172.31.6.70"}, %{id: 68827971783530440279451197351589049837, restart: :transient, shutdown: 5000, start: {Example.Scheduler, :start_link, ["M36IMYKpxHBU", %Example.Scheduler.Session{publish_at: nil, publish_input_at: nil, start_at: ~U[2020-11-08 07:30:50Z], ...}, [handler: Example.Scheduler.TestSession, on_terminate: #Function<1.46494301/1 in Example.TestSession.create/1>]]}}, #PID<64459.20230.4>}, 251291679164903469729702606719292056537 => {{Example.S...
lib/horde/dynamic_supervisor_impl.ex:261 Horde.DynamicSupervisorImpl.handle_cast/2
gen_server.erl:637 :gen_server.try_dispatch/4
gen_server.erl:711 :gen_server.handle_msg/6
proc_lib.erl:249 :proc_lib.init_p_do_apply/3
Horde Version: 0.8.2