-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update replicator retry logic (#66)
- Loading branch information
1 parent
c23c658
commit e680d4a
Showing
10 changed files
with
207 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use thiserror::Error as ThisError; | ||
|
||
// enum ServiceErrorKind { | ||
// // i/o errors | ||
// DBError, | ||
// EventStreamError, | ||
// // internal channel errors | ||
// ChannelError, | ||
// // general system related errors | ||
// SystemError, | ||
// } | ||
|
||
#[derive(Debug, ThisError, PartialEq, Clone)] | ||
#[error("error reason={reason} ")] | ||
pub struct ServiceError { | ||
// pub kind: SystemServiceErrorKind, | ||
pub reason: String, | ||
// pub data: Option<String>, | ||
// pub service: String, | ||
} | ||
|
||
// enum ReplicatorInstallerError { | ||
// DBConnectionError | ||
// DB | ||
// // DB Connection Error | ||
// // DB Transaction Error | ||
// // Data deserialization Error | ||
// // Update table - Cohort related or snapshot ([table name], retry count) | ||
// // Exhausted retry and no install | ||
|
||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
mod core; | ||
pub mod errors; | ||
mod models; | ||
mod services; | ||
mod suffix; | ||
mod talos_cohort_replicator; | ||
pub mod utils; | ||
|
||
pub use crate::core::{ReplicatorInstallStatus, ReplicatorInstaller, ReplicatorSnapshotProvider, StatemapItem}; | ||
pub use crate::core::{ReplicatorInstaller, ReplicatorSnapshotProvider, StatemapItem}; | ||
pub use talos_cohort_replicator::{talos_cohort_replicator, CohortReplicatorConfig}; | ||
#[cfg(test)] | ||
mod tests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.