Skip to content
Merged
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
4 changes: 2 additions & 2 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ const (
FinalizationStatusFailed string = "finalization_failed"

// MigrationMaxRetries is the maximum number of retry attempts for failed migration requests
MigrationMaxRetries int = 5
MigrationMaxRetries int = 8

// MigrationRetryDelay is the delay between retry attempts
MigrationRetryDelay time.Duration = 5 * time.Second
MigrationRetryDelay time.Duration = 3 * time.Second

// MigrationTotalTimeout is the maximum time allowed for all retry attempts
MigrationTotalTimeout time.Duration = 3 * time.Minute
Expand Down
1 change: 1 addition & 0 deletions internal/manage/actions/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ func isRetryableError(err error) bool {
"eof",
"broken pipe",
"i/o timeout",
"connect: no route to host",
}

for _, pattern := range retryablePatterns {
Expand Down
1 change: 1 addition & 0 deletions internal/manage/actions/migrations/migrations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func TestIsRetryableError(t *testing.T) {
{"connection reset", "connection reset by peer", true},
{"timeout", "i/o timeout", true},
{"eof", "unexpected EOF", true},
{"no route to host", "connect: no route to host", true},
{"server error 503", "server returned 503", true},
{"server error 502", "bad gateway 502", true},
{"server error 504", "gateway timeout 504", true},
Expand Down
Loading