Skip to content

Commit

Permalink
chore: decrease exponential timeout of mirroring (#4196)
Browse files Browse the repository at this point in the history
* chore: decrease exponential timeout of mirroring

* chore: change default factor of mirroring backoff
  • Loading branch information
fraidev authored Sep 28, 2024
1 parent f08c65e commit 062cbf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/fluvio-sc/src/controllers/mirroring/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ impl<C: MetadataItem> RemoteMirrorController<C> {

fn create_backoff() -> ExponentialBackoff {
ExponentialBackoffBuilder::default()
.factor(1.1)
.min(Duration::from_secs(1))
.max(Duration::from_secs(30))
.build()
Expand Down
1 change: 1 addition & 0 deletions crates/fluvio-spu/src/mirroring/remote/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ where

fn create_backoff() -> ExponentialBackoff {
ExponentialBackoffBuilder::default()
.factor(1.1)
.min(Duration::from_secs(1))
.max(Duration::from_secs(30))
.build()
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/mirroring_smoke_tests/e2e/fluvio-core.bats
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ setup_file() {
}

@test "Home status at remote 1 should show the home cluster connected" {
sleep 15
sleep 60
run timeout 15s "$FLUVIO_BIN" home status

assert_success
Expand Down Expand Up @@ -165,7 +165,7 @@ setup_file() {
}

@test "Home status at remote 2 should show the home cluster connected" {
sleep 15
sleep 60
run timeout 15s "$FLUVIO_BIN" home status

assert_success
Expand Down

0 comments on commit 062cbf8

Please sign in to comment.