mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #10173 from ClickHouse/fix_url_engine
Add retries to 00646_url_engine test
This commit is contained in:
commit
3b85ef27a4
@ -2,6 +2,7 @@
|
||||
from __future__ import print_function
|
||||
import csv
|
||||
import sys
|
||||
import time
|
||||
import tempfile
|
||||
import threading
|
||||
import os, urllib
|
||||
@ -180,7 +181,15 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except:
|
||||
exception_text = ''
|
||||
for i in range(1, 5):
|
||||
try:
|
||||
main()
|
||||
break
|
||||
except Exception as ex:
|
||||
exception_text = str(ex)
|
||||
time.sleep(0.1)
|
||||
|
||||
if exception_text:
|
||||
print("Exception: {}".format(exception_text), file=sys.stderr)
|
||||
os._exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user