We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f1394d commit e1bf411Copy full SHA for e1bf411
bq/insert.go
@@ -263,7 +263,8 @@ func (in *BQInserter) Flush() error {
263
}
264
metrics.WarningCount.WithLabelValues(in.TableBase(), "", "Quota Exceeded").Inc()
265
// Use some randomness to reduce risk of synchronization across tasks.
266
- time.Sleep(time.Seconds((0.5 + rand.Float64()) * in.params.RetryDelay.Seconds()))
+ t := in.params.RetryDelay.Seconds() * (0.5 + rand.Float64()) // between 0.5 and 1.5 * RetryDelay
267
+ time.Sleep(time.Duration(1000000*t) * time.Microsecond)
268
269
270
// If there is still an error, then handle it.
0 commit comments