Skip to content

Commit

Permalink
Remove useless 1 second delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kukushkin committed Sep 22, 2017
1 parent 313bf33 commit 6184cc7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions patroni/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,10 +808,6 @@ def wait_for_port_open(self, pid, initiated, timeout):
if not self.is_pid_running(pid):
logger.error('postmaster is not running')
self.set_state('start failed')
# somehow we observed multiple times that there were no postmaster running, but
# pg_controldata was still reporting: `Database cluster state: in archive recovery`
# Therefore we will try to give some more time to all processes to finish.
time.sleep(1)
return False

logger.warning("Timed out waiting for PostgreSQL to start")
Expand Down

0 comments on commit 6184cc7

Please sign in to comment.