Randomize query cache settings

This commit is contained in:
Robert Schulze 2023-03-20 10:31:40 +00:00
parent ed50378060
commit 506e0c622b
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
14 changed files with 30 additions and 15 deletions

View File

@ -528,6 +528,8 @@ class SettingsRandomizer:
"enable_memory_bound_merging_of_aggregation_results": lambda: random.randint(
0, 1
),
"use_query_cache": lambda: random.randint(0, 1),
"enable_reads_from_query_cache": lambda: 0,
}
@staticmethod

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_analyzer = 1;
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tag no-parallel: Messes with internal cache
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: The test messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tag no-parallel: Messes with internal cache
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: The test messes with internal cache
-- Tag no-random-settings: The test assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,5 +1,6 @@
-- Tags: no-parallel
-- Tags: no-parallel, no-random-settings
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,6 +1,7 @@
-- Tags: no-parallel, no-fasttest
-- Tags: no-parallel, no-fasttest, no-random-settings
-- Tag no-fasttest: Depends on OpenSSL
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;

View File

@ -1,7 +1,8 @@
-- Tags: no-fasttest, no-parallel, long
-- Tags: no-fasttest, no-parallel, long, no-random-settings
-- Tag no-fasttest: Test runtime is > 6 sec
-- Tag long: Test runtime is > 6 sec
-- Tag no-parallel: Messes with internal cache
-- Tag no-random-settings: Assumes default settings for the query cache.
SET allow_experimental_query_cache = true;