From 5b4e014b8e383fc13eeb56eec1f1ddd302e62e04 Mon Sep 17 00:00:00 2001 From: Frank Chen Date: Thu, 27 Apr 2023 15:18:26 +0800 Subject: [PATCH] Don't choose io_uring for macOS --- tests/clickhouse-test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/clickhouse-test b/tests/clickhouse-test index 7c492a9b467..72e0f276bb5 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -11,6 +11,7 @@ import shutil import sys import os import os.path +import platform import signal import re import copy @@ -542,7 +543,8 @@ class SettingsRandomizer: 0.2, 0.5, 1, 10 * 1024 * 1024 * 1024 ), "local_filesystem_read_method": lambda: random.choice( - ["read", "pread", "mmap", "pread_threadpool", "io_uring"] + # io_uring is not supported on macOS, don't choose it + ["read", "pread", "mmap", "pread_threadpool", "io_uring"] if platform.system().lower() != "darwin" else ["read", "pread", "mmap", "pread_threadpool"] ), "remote_filesystem_read_method": lambda: random.choice(["read", "threadpool"]), "local_filesystem_read_prefetch": lambda: random.randint(0, 1),