We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.14.2 on OTP 25.2
PostgreSQL 14.1
0.17.0
Hello there 👋🏼
In #643, Postgrex began using gen_statem in Postgrex.SimpleConnection. There appears to be an unhandled timeout event.
gen_statem
Postgrex.SimpleConnection
When I run tests for my application (which uses Oban — which uses NOTIFY), the following error occurs:
NOTIFY
** (FunctionClauseError) no function clause matching in Postgrex.SimpleConnection.handle_event/4 (postgrex 0.17.0) lib/postgrex/simple_connection.ex:340: Postgrex.SimpleConnection.handle_event(:timeout, nil, :no_state, %Postgrex.SimpleConnection{...}) (stdlib 4.2) gen_statem.erl:1428: :gen_statem.loop_state_callback/11 (stdlib 4.2) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
The documentation for gen_statem lists three timeout event types:
timeout | {timeout, Name :: term()} | state_timeout
However, I only see a handler for {:timeout, :backoff}.
{:timeout, :backoff}
If it's useful, I'm using Oban 2.14.2, though I believe the problem is internal to Postgrex and gen_statem.
2.14.2
I believe this type of :timeout event is normal (and should be handled), but I'm too unfamiliar with gen_statem to know for sure.
:timeout
❤️
The text was updated successfully, but these errors were encountered:
Fix timeout handling in Postgrex.SimpleConnection
5b8283a
Closes elixir-ecto#648.
Fix timeout handling in Postgrex.SimpleConnection (#650)
83bac66
Closes #648.
Successfully merging a pull request may close this issue.
Elixir version
1.14.2 on OTP 25.2
Database and Version
PostgreSQL 14.1
Postgrex Version
0.17.0
Current behavior
Hello there 👋🏼
In #643, Postgrex began using
gen_statem
inPostgrex.SimpleConnection
. There appears to be an unhandled timeout event.When I run tests for my application (which uses Oban — which uses
NOTIFY
), the following error occurs:The documentation for
gen_statem
lists three timeout event types:However, I only see a handler for
{:timeout, :backoff}
.If it's useful, I'm using Oban
2.14.2
, though I believe the problem is internal to Postgrex andgen_statem
.Expected behavior
I believe this type of
:timeout
event is normal (and should be handled), but I'm too unfamiliar withgen_statem
to know for sure.❤️
The text was updated successfully, but these errors were encountered: