Open digitalcora opened 2 years ago
Any updates on this? We're seeing the same behavior causing flaky tests. Lately, for some reason, it started failing fairly often.
We've been having this happen more frequently (almost every CI run, rarely when run locally) since we updated to elixir 1.15.
I've tried fixing this locally by changing the GenServer.stop/3
call to be GenServer.stop(__MODULE__, :normal)
in a local checkout, but I'm still having the issue where the test fails with ** (exit) shutdown
, so while this needs to be fixed, I'm not sure it's the root cause of the test failure.
Cross linking with opened pull requests that are attempting to fix this issue (I think):
I noticed a flaky test failure with the reason
** (exit) shutdown
, and the following output logged:Looking at the referenced code, it seems
GenServer.stop/3
is not being called correctly: the first argument is supposed to be a reference to a server, but the Bypass code isGenServer.stop(:normal)
. So if there are anycallers_awaiting_exit
, this code will always crash.