Hi! I’m running into a bizzare bug where using :pg to register a process causes Ecto.Repo (sandboxed) to fail midway through my tests. Anyone else run into this?
Hi, when posting about an error please always show both the relevant code, and the error + stacktrace.
Error is that GenServer.whereis fails on the App.Repo on any Repo function (this is built with use GenServer), indicating that the Repo process has crashed.
the code causing a failure is :pg.join(:anything, self())
In a throwaway persistent GenServer supervised in the app supervision tree. Have tried this at different depths.
Not versed enough in distribution to help. Still, a small GitHub repo to reproduce could help engagement?
1 Like