ClickHouse/tests
Azat Khuzhin 3c80e30f02 Fix per-query IO/BACKUPs throttling settings (when default profile has them)
When some of this settings was set for default profile (in
users.xml/users.yml), then it will be always used regardless of what
user passed.

Fix this by not inherit per-query throttlers, for this they should be
reset before making query context and they should not be initialized as
before in Context::makeQueryContext(), since makeQueryContext() called
too early, when user settings was not read yet.

But there we had also initialization of per-server throttling, move this
into the ContextSharedPart::configureServerWideThrottling(), and call it
once we have ServerSettings set.

Also note, that this patch makes the following settings - server
settings:
- max_replicated_fetches_network_bandwidth_for_server
- max_replicated_sends_network_bandwidth_for_server
But this change should not affect anybody, since it is done with
compatiblity (i.e. if this setting is set in users profile it will be
read from it as well as a fallback).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-17 12:12:39 +02:00
..
ci The best effor to get the current job ID and URL 2023-05-12 19:22:52 +02:00
config
fuzz
instructions
integration Fix per-query IO/BACKUPs throttling settings (when default profile has them) 2023-05-17 12:12:39 +02:00
jepsen.clickhouse
perf_drafts
performance enable used flags's reinit only when the hash talbe rehash 2023-05-11 11:06:13 +08:00
queries Allow ASOF JOIN over nullable right column 2023-05-16 16:23:53 +02:00
sqllogic
.gitignore
.rgignore
broken_tests.txt Merge pull request #49800 from ClickHouse/fix-adding-cast 2023-05-16 17:05:02 +02:00
clickhouse-test Randomize enable_multiple_prewhere_read_steps 2023-05-12 15:09:34 +02:00
CMakeLists.txt
msan_suppressions.txt
tsan_suppressions.txt
ubsan_suppressions.txt