提交 1e946005 编写于 作者: S Shoaib Lari

Behave stop segments: Add -w flag to pg_ctl stop

When reading the Behave test code for stopping segments, it is not obvious that
we are waiting for the segment to stop. Therefore we are explicitly adding the
`-w` flag to show the blocking behavior.
Co-authored-by: NNikolaos Kalampalikis <nkalampalikis@pivotal.io>
上级 3b849ec0
......@@ -849,7 +849,7 @@ def stop_segments(context, segment_type):
# For demo_cluster tests that run on the CI gives the error 'bash: pg_ctl: command not found'
# Thus, need to add pg_ctl to the path when ssh'ing to a demo cluster.
subprocess.check_call(['ssh', seg.getSegmentHostName(),
'source %s/greenplum_path.sh && pg_ctl stop -m fast -D %s' % (
'source %s/greenplum_path.sh && pg_ctl stop -m fast -D %s -w' % (
pipes.quote(os.environ.get("GPHOME")), pipes.quote(seg.getSegmentDataDirectory()))
])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册