提交 bc967e0b 编写于 作者: A Ashwin Agrawal

Add wait for Db to sleep 1 sec before checking for db up.

上级 2cd7fd17
......@@ -557,11 +557,11 @@ class PSQL(Command):
down = True
results = {'rc':0, 'stdout':'', 'stderr':''}
for i in range(60):
time.sleep(1)
res = PSQL.run_sql_command('select count(*) from gp_dist_random(\'gp_id\');', results=results)
if results['rc'] == 0:
down = False
break
time.sleep(1)
if down:
raise PSQLException('database has not come up')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册