Change sleep time for DynamoDB table waits from 3 seconds to 5 seconds

This commit is contained in:
John Ewart 2015-06-08 16:04:22 -07:00
parent f458521be9
commit 320e4b222c
1 changed files with 2 additions and 2 deletions

View File

@ -549,8 +549,8 @@ func waitForGSIToBeActive(tableName string, gsiName string, meta interface{}) er
activeIndex = *targetGSI.IndexStatus == "ACTIVE"
if !activeIndex {
log.Printf("[DEBUG] Sleeping for 3 seconds for %s GSI to become active", gsiName)
time.Sleep(3 * time.Second)
log.Printf("[DEBUG] Sleeping for 5 seconds for %s GSI to become active", gsiName)
time.Sleep(5 * time.Second)
}
} else {
log.Printf("[DEBUG] GSI %s did not exist, giving up", gsiName)