This commit is contained in:
yangdsh
2019-12-03 19:46:13 +00:00
committed by Dana Van Aken
parent 99a9c3318e
commit 13735c9b0b
2 changed files with 34 additions and 12 deletions

View File

@@ -530,17 +530,17 @@ def loop(i):
# remove oltpbench log and controller log
clean_logs()
# restart database
restart_succeeded = restart_database()
if not restart_succeeded:
files = {'summary':b'{error:"DB_RESTART_ERROR"}',
'knobs':b'',
'metrics_before':b'',
'metrics_after':b''}
files = {'summary': b'{"error": "DB_RESTART_ERROR"}',
'knobs': b'{}',
'metrics_before': b'{}',
'metrics_after': b'{}'}
response = requests.post(dconf.WEBSITE_URL + '/new_result/', files=files,
data={'upload_code': dconf.UPLOAD_CODE})
response = get_result()
result_timestamp = int(time.time())
save_next_config(response, t=result_timestamp)
change_conf(response['recommendation'])
return