We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df60fa4 commit 7893f8eCopy full SHA for 7893f8e
go/logic/throttler.go
@@ -306,7 +306,16 @@ func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<-
306
return
307
}
308
309
- if sleep, _ := collectFunc(); sleep {
+ sleep, err := collectFunc()
310
+ if err != nil {
311
+ // If not told to ignore errors, we'll throttle on HTTP connection issues
312
+ if !this.migrationContext.IgnoreHTTPErrors {
313
+ log.Errorf("errors occurred during HTTP throttle check: %+v", err)
314
+ atomic.StoreInt64(&this.migrationContext.ThrottleHTTPStatusCode, int64(-1))
315
+ }
316
317
+
318
+ if sleep {
319
time.Sleep(1 * time.Second)
320
321
0 commit comments