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

Replication slot not created in test. #3

Open
thruflo opened this issue Mar 6, 2025 · 0 comments
Open

Replication slot not created in test. #3

thruflo opened this issue Mar 6, 2025 · 0 comments

Comments

@thruflo
Copy link
Contributor

thruflo commented Mar 6, 2025

Running mix test on an app using phoenix_sync as a dependency results in this error. Presumably there's something up with the way Electric is creating the replication slot in test when running in embedded mode:

➜  conductor git:(main) ✗ mix test
Running ExUnit with seed: 20540, max_cases: 16

05:10:41.136 [error] :gen_statem {:"Elixir.Electric.ProcessRegistry:electric-embedded", {Electric.Postgres.ReplicationClient, nil}} terminating
** (Postgrex.Error) ERROR 55000 (object_not_in_prerequisite_state) replication slot "electric_slot_default" was not created in this database
    (stdlib 6.2) gen_statem.erl:3864: :gen_statem.loop_state_callback_result/11
    (stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
Process Label: :replication_client
Queue: [info: :start_streaming]
Postponed: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant