提交 0da60f29 编写于 作者: X Xin Zhang

Patch up the test impact by pg_resetxlog warning

上级 42b5c630
......@@ -59,16 +59,13 @@ class high_transaction_id(MPPTestCase):
for segment in segments:
cmd = Command(name="reset xlog",
cmdStr="pg_resetxlog -x 100000000 %s" % segment[0])
cmd.run()
cmdStr="echo yes | pg_resetxlog -f -x 100000000 %s" % segment[0])
cmd.run(validateAfter=True)
xlogfile = local_path('xlog_file')
# @todo: able to copy the xlogfile remotely
shutil.copyfile(xlogfile, "%s/pg_clog/0017" % segment[0])
shutil.copyfile(xlogfile, "%s/pg_distributedlog/02FA" % segment[0])
# @note: workaround the issue with tinc and 4.1 gppylib
cmd = Command(name='run gpstop',
cmdStr='source %s/greenplum_path.sh;\
gpstart -a' % os.environ['GPHOME'])
cmd = GpStart("gpstart")
cmd.run(validateAfter=True)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册