提交 e39465ae 编写于 作者: D David Krieger 提交者: David Krieger

gpstart: testing of improve handling of down segment hosts

The tests in commit be5d11e2 contained a typo that caused the changes
in the Scenario "gpstart starts even if the standby host is unreachable"
to not properly cleanup after itself.  Though the test feature still
passes, this leaves a bug to be found later when more tests are added.
上级 e68d5b8a
......@@ -51,6 +51,7 @@ def impl(context):
subprocess.check_call(['gpstart', '-am'])
_run_sql("""
SET allow_system_table_mods='true';
UPDATE gp_segment_configuration
SET hostname = master.hostname,
address = master.address
......@@ -60,10 +61,10 @@ def impl(context):
WHERE content = -1 and role = 'p'
) master
WHERE content = -1 AND role = 'm'
""", opts=opts)
""", {'gp_role': 'utility'})
subprocess.check_call(['gpstop', '-am'])
context.add_cleanup(cleanup, context)
context.add_cleanup(cleanup, context)
def _handle_sigpipe():
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册