Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pgdog/src/backend/replication/logical/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ pub enum Error {
#[error("parallel connection error")]
ParallelConnection,

#[error("pipelined connection task closed")]
PipelineClosed,

#[error("no replicas available for table sync")]
NoReplicas,

Expand Down Expand Up @@ -274,6 +277,10 @@ impl Error {
// either the ParallelConnection wrapper should be removed or
// the proper error should be propagated
Self::ParallelConnection => true,
// A pipelined shard task closed (write failed, socket died, or the
// handle was dropped). The transaction is torn down; retry from a
// fresh connection.
Self::PipelineClosed => true,
_ => false,
}
}
Expand Down
2 changes: 2 additions & 0 deletions pgdog/src/backend/replication/logical/subscriber/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub mod context;
pub mod copy;
pub mod omni_ownership;
pub mod parallel_connection;
pub mod pipeline;
pub mod stream;

#[cfg(test)]
Expand All @@ -10,4 +11,5 @@ mod tests;
pub use context::StreamContext;
pub use copy::CopySubscriber;
pub use parallel_connection::ParallelConnection;
pub use pipeline::PipelinedConnection;
pub use stream::StreamSubscriber;
Loading
Loading