Skip to content

Commit

Permalink
Merge pull request #418 from sgotti/keeper_add_missing_waiting_instan…
Browse files Browse the repository at this point in the history
…ce_ready

keeper: add some missing waits for instance ready
  • Loading branch information
sgotti committed Jan 29, 2018
2 parents d89d328 + 17ab4ef commit 90a16f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,10 @@ func (p *PostgresKeeper) postgresKeeperSM(pctx context.Context) {
log.Errorw("failed to start postgres", zap.Error(err))
return
}
if err = pgm.WaitReady(cluster.DefaultDBWaitReadyTimeout); err != nil {
log.Errorw("timeout waiting for instance to be ready", zap.Error(err))
return
}
started = true
}

Expand Down

0 comments on commit 90a16f5

Please sign in to comment.