mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
add sleep 5 before exponential backoff in waitUntilVolumeAvailable
This commit is contained in:
parent
ee5d623fe6
commit
2eeb863da8
@ -225,8 +225,7 @@ const (
|
|||||||
createTagFactor = 2.0
|
createTagFactor = 2.0
|
||||||
createTagSteps = 9
|
createTagSteps = 9
|
||||||
|
|
||||||
// volumeCreate* is configuration of exponential backoff for created volume to check
|
// volumeCreate* is configuration of exponential backoff for created volume.
|
||||||
// it has not been silently removed by AWS.
|
|
||||||
// On a random AWS account (shared among several developers) it took 4s on
|
// On a random AWS account (shared among several developers) it took 4s on
|
||||||
// average, 8s max.
|
// average, 8s max.
|
||||||
volumeCreateInitialDelay = 5 * time.Second
|
volumeCreateInitialDelay = 5 * time.Second
|
||||||
@ -2420,6 +2419,7 @@ func (c *Cloud) waitUntilVolumeAvailable(volumeName KubernetesVolumeID) error {
|
|||||||
// Unreachable code
|
// Unreachable code
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
time.Sleep(5 * time.Second)
|
||||||
backoff := wait.Backoff{
|
backoff := wait.Backoff{
|
||||||
Duration: volumeCreateInitialDelay,
|
Duration: volumeCreateInitialDelay,
|
||||||
Factor: volumeCreateBackoffFactor,
|
Factor: volumeCreateBackoffFactor,
|
||||||
|
Loading…
Reference in New Issue
Block a user