Merge pull request #47749 from ClickHouse/rs/randomized-qc-settings

Randomize query cache settings
This commit is contained in:
Robert Schulze 2023-03-23 22:19:24 +01:00 committed by GitHub
commit 98b8300496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import os
import argparse
import logging
import time
import random
def get_options(i, upgrade_check):
@ -43,6 +44,10 @@ def get_options(i, upgrade_check):
client_options.append("join_algorithm='auto'")
client_options.append("max_rows_in_join=1000")
if i > 0 and random.random() < 1 / 3:
client_options.append("allow_experimental_query_cache=1")
client_options.append("use_query_cache=1")
if i % 5 == 1:
client_options.append("memory_tracker_fault_probability=0.001")