提交 6b236c40 编写于 作者: K Kavinder Dhaliwal

Force Runaway Query test restarts

The runaway query TINC tests occasionally encounter issues where a
gpstop -ar is not successfull because of open connections. This commit
ensures that at the least gpstop will always restart gpdb.
Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
上级 5c174072
......@@ -18,7 +18,7 @@ def _set_VLIM_SLIM_REDZONEPERCENT(vlimMB, slimMB, activationPercent):
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
def _reset_VLIM_SLIM_REDZONEPERCENT():
......@@ -32,7 +32,7 @@ def _reset_VLIM_SLIM_REDZONEPERCENT():
'source $GPHOME/greenplum_path.sh;gpconfig -r runaway_detector_activation_percent --skipvalidation').run(validateAfter=True)
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
class RunawayDetectorTestCase(SQLIsolationTestCase):
"""
......
......@@ -18,7 +18,7 @@ def _set_VLIM_SLIM_REDZONEPERCENT(vlimMB, slimMB, activationPercent):
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
def _reset_VLIM_SLIM_REDZONEPERCENT():
......@@ -32,7 +32,7 @@ def _reset_VLIM_SLIM_REDZONEPERCENT():
'source $GPHOME/greenplum_path.sh;gpconfig -r runaway_detector_activation_percent --skipvalidation').run(validateAfter=True)
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
class RunawayQueryTestCase(SQLTestCase):
......
......@@ -18,7 +18,7 @@ def _set_VLIM_SLIM_REDZONEPERCENT(vlimMB, slimMB, activationPercent):
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
def _reset_VLIM_SLIM_REDZONEPERCENT():
......@@ -32,7 +32,7 @@ def _reset_VLIM_SLIM_REDZONEPERCENT():
'source $GPHOME/greenplum_path.sh;gpconfig -r runaway_detector_activation_percent --skipvalidation').run(validateAfter=True)
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
class RunawayMultiSessionTestCase(SQLIsolationTestCase):
......
......@@ -16,7 +16,7 @@ def _set_VLIM_SLIM_REDZONEPERCENT(vlimMB, slimMB, activationPercent):
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
def _reset_VLIM_SLIM_REDZONEPERCENT():
......@@ -30,7 +30,7 @@ def _reset_VLIM_SLIM_REDZONEPERCENT():
'source $GPHOME/greenplum_path.sh;gpconfig -r runaway_detector_activation_percent --skipvalidation').run(validateAfter=True)
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
class RQTBaseScenarioTestCase(ScenarioTestCase):
......
......@@ -17,7 +17,7 @@ def _set_VLIM_SLIM(vlimMB, slimMB):
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
def _reset_VLIM_SLIM():
......@@ -30,7 +30,7 @@ def _reset_VLIM_SLIM():
# Restart DB
Command('Restart database for GUCs to take effect',
'source $GPHOME/greenplum_path.sh && gpstop -ar').run(validateAfter=True)
'source $GPHOME/greenplum_path.sh && gpstop -air').run(validateAfter=True)
class RQTMemoryAccountingTestCase(SQLIsolationTestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册