Skip to content

Commit

Permalink
Refer readers to a GH issue for "slot already in use" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed May 3, 2024
1 parent 29aec59 commit 35c3baa
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,31 @@ defmodule Electric.Replication.PostgresConnector do
Failed to establish replication connection to Postgres:
#{msg}
""",
"Another instance of Electric appears to be connected to this database."
"""
Another instance of Electric appears to be connected to this database.
Refer to https://github.com/electric-sql/electric/issues/971 for additional info.
"""
)
end

defp log_child_error(
LogicalReplicationProducer,
{:bad_return_value,
{:error,
{:error, :error, "42710", :duplicate_object, "replication slot " <> _ = msg,
_c_stacktrace}}},
_connector_config
) do
Electric.Errors.print_error(
:conn,
"""
Failed to establish replication connection to Postgres:
#{msg}
""",
"""
Another instance of Electric appears to be connected to this database.
Refer to https://github.com/electric-sql/electric/issues/971 for additional info.
"""
)
end

Expand Down

0 comments on commit 35c3baa

Please sign in to comment.