25 Commits
Author SHA1 Message Date
Groene AIandClaude Opus 5.5 18c899494f Wait for the replication queue in test_replication_after_partition
The test partitions node1 and node2 on the interserver port with
`iptables -j DROP` 10 times while inserting 100 rows. A node2 part fetch
that reuses a pooled keep-alive connection sends its request into the
DROP and waits on TCP retransmission backoff (cumulative ~6.2, 12.6,
25.4 s from a 200 ms RTO), so it can complete up to ~13 s after the last
heal, inside the 30 s fetch receive timeout. GET_PART entries for the
covering merged parts wait behind it, so one stalled fetch hides dozens
of rows. The old `assert_eq_with_retry` polled for only ~11.3 s after
the heal (20 x 0.5 s), which made the test fail with '100' != '48' on
master (Integration tests (arm_binary, 2/4), b4901fe6ac): in that
job's node2 system.part_log six fetches took 6.4-26.5 s, all with
HTTPConnectionsReused = 1, and the last one finished 0.5 s after the
last poll.

Run SYSTEM SYNC REPLICA on node2 (it pulls the log and waits for every
entry, including all 100 GET_PART entries) with a 120 s client timeout,
then assert the exact count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 01:41:50 +00:00
Alexey Milovidov 481689ad3e Remove the default /etc/metrika.xml substitution file
The `include_from` server setting used to fall back to `/etc/metrika.xml`
whenever that file existed. This is surprising: a file outside the ClickHouse
configuration directory, with unrelated access rights and a name that has
nothing to do with ClickHouse, could silently supply configuration
substitutions. Most users do not know the file is consulted at all.

Now `include_from` is empty by default and substitutions are only read from
the path it explicitly names. The fallback is removed from the server config
processor, from the users' configuration (access storages), from Keeper, and
from disks created by SQL.

Closes: https://github.com/ClickHouse/ClickHouse/issues/102836
2026-08-10 12:52:31 +00:00
Robert Schulze 6cf20a4846 DROP * CACHE --> CLEAR * CACHE 2026-02-09 20:19:49 +00:00
Shaun Struwig 76d00ad1af docs/en -> /docs 2025-02-22 21:41:35 +01:00
Tuan Pham Anh a348183941 Merge branch 'master' into report-running-ddl-worker-hosts 2024-09-30 07:48:56 +00:00
robot-clickhouse 7c6ce8611c Automatic style fix 2024-09-27 10:19:49 +00:00
Tuan Pham Anh 9ed14e047a Add distributed_ddl.replicas_path setting 2024-09-25 02:21:19 +00:00
Azat Khuzhin 2db092f9d8 Cleanup remote_servers in dist config.xml
At first, there was no such amount of clusters in dist config, they
added when someone need to write some new cluster for tests.

So let's move them to the clusters.xml that is deployed only for tests,
and leave only default cluster.

And cleanup also some configs that had been copied from dist config in
the repo (about test_config_* integration tests, this should be OK,
since there are more_clusters.xml as well, that covers additional
cases).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-09 16:55:27 +02:00
Aleksei Filatov 2a2c35e4c1 Fix changed IP for https session 2023-05-26 09:08:34 +03:00
Alexey Milovidov b42d26acfe Remove one line from XML, because we do not care 2022-08-28 02:44:02 +02:00
Alexander Tokmakov f00e6b5a7a deprecate old MergeTree syntax 2022-06-23 11:24:54 +02:00
Robert Schulze a2214760c6 Remove mark_cache_size from further files
- changed config.xml/yaml files used by CH's own internal tests which
  are (hopefully) not sensitive to mark_cache_size being set or not

- further occurrences exist but changing them seems a bad idea (e.g.
  because they are in customer-provided data)
2022-05-18 22:09:14 +02:00
Mikhail f. Shiryaev e6f5a3f98b Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
Alexey Milovidov e30ae215cf Correct some integration tests 2022-03-11 22:51:24 +01:00
Alexey Milovidov e9e77b4403 .tech -> .com 2021-09-22 03:22:57 +03:00
Alexey Milovidov 147ef79670 Change website URL, part 1 2021-09-20 01:56:28 +03:00
Alexey Milovidov f0925b3cf6 Changed substitution path name 2021-09-20 01:50:09 +03:00
Alexey Milovidov e513a5db32 Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
Vitaly Baranov 3a3cbeb7aa Collect stderr.log and stdout.log in all integration tests by default. 2021-06-29 17:30:47 +03:00
alesapin b82038b65b Add missed file 2020-10-09 14:20:54 +03:00
alesapin f12382ad93 Fix race in openssl 2020-10-09 12:08:49 +03:00
Azat Khuzhin 9cb3c743bd Convert to python3 (#15007) 2020-10-02 19:54:07 +03:00
bharatnc b75963d370 Format and optimize imports in integration test files
This PR formats all the `*.py` files found under the `tests/integration`
folder. It also reorders the imports and cleans up a bunch of unused
imports.

The formatting also takes care of other things like wrapping lines and
fixing spaces and indents such that the tests look more readable.
2020-09-15 23:10:54 -07:00
Yatsishin Ilya 160776f183 Add explicit main_configs, user_configs and dictionaries in integration tests. 2020-08-12 11:55:04 +03:00
Ivan 97f2a2213e Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00