ClickHouse/tests/config
何李夫 e4c8c4cecf
Add zookeeper name in endpoint id (#49780)
* Add zookeeper name in endpoint id

When we migrate a replicated table from one zookeeper cluster to
another (the reason why we migration is that zookeeper's load is
too high), we will create a new table with the same zpath, but it
will fail and the old table will be in trouble.

Here is some infomation:
1.old table:
  CREATE TABLE a1 (`id` UInt64)
  ENGINE = ReplicatedMergeTree('/clickhouse/tables/default/a1/{shard}', '{replica}')
  ORDER BY (id);
2.new table:
  CREATE TABLE a2 (`id` UInt64)
  ENGINE = ReplicatedMergeTree('aux1:/clickhouse/tables/default/a1/{shard}', '{replica}')
  ORDER BY (id);
3.error info:
  <Error> executeQuery: Code: 220. DB::Exception: Duplicate interserver IO endpoint:
          DataPartsExchange:/clickhouse/tables/default/a1/01/replicas/02.
          (DUPLICATE_INTERSERVER_IO_ENDPOINT)
  <Error> InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint
          named DataPartsExchange:/clickhouse/tables/default/a1/01/replicas/02.
          (NO_SUCH_INTERSERVER_IO_ENDPOINT)

* Revert "Add zookeeper name in endpoint id"

This reverts commit 9deb75b249619b7abdd38e3949ca8b3a76c9df8e.

* Add zookeeper name in endpoint id

When we migrate a replicated table from one zookeeper cluster to
another (the reason why we migration is that zookeeper's load is
too high), we will create a new table with the same zpath, but it
will fail and the old table will be in trouble.

* Fix incompatible with a new setting

* add a test, fix other issues

* Update 02442_auxiliary_zookeeper_endpoint_id.sql

* Update 02735_system_zookeeper_connection.reference

* Update 02735_system_zookeeper_connection.sql

* Update run.sh

* Remove the 'no-fasttest' tag

* Update 02442_auxiliary_zookeeper_endpoint_id.sql

---------

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
2023-05-25 12:50:14 +03:00
..
config.d Add zookeeper name in endpoint id (#49780) 2023-05-25 12:50:14 +03:00
top_level_domains Fix reading of custom TLD w/o new line at EOF 2021-08-27 00:43:21 +03:00
users.d Add CI run with new analyzer enabled 2023-04-12 15:18:28 +00:00
client_config.xml Update tests/config/client_config.xml 2022-08-12 22:01:45 +03:00
decimals_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
dhparam.pem Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
executable_dictionary.xml Fixed tests 2021-09-04 14:29:40 +03:00
executable_pool_dictionary.xml Added executable function integrations tests 2021-12-28 22:55:30 +03:00
ext-en.txt Rewrite NLP tests from integration to functional 2022-08-26 22:36:34 +02:00
ext-ru.txt Rewrite NLP tests from integration to functional 2022-08-26 22:36:34 +02:00
install.sh Add CI run with new analyzer enabled 2023-04-12 15:18:28 +00:00
ints_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
lem-en.bin Add missing file 2022-08-26 23:42:36 +02:00
lsan_suppressions.txt Revert "Revert "Write structure of table functions to metadata"" 2020-10-14 15:19:29 +03:00
README.md One more time 2020-09-24 13:32:49 +03:00
regions_hierarchy.txt Add missing tests for legacy geobase 2022-08-26 22:17:49 +02:00
regions_names_en.txt Add missing tests for legacy geobase 2022-08-26 22:17:49 +02:00
server.crt Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
server.key Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
strings_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
test_function.xml Disable parameters for non direct executable user defined functions 2022-06-16 16:29:04 +02:00

ClickHouse configs for test environment

How to use

CI use these configs in all checks installing them with install.sh script. If you want to run all tests from tests/queries/0_stateless and test/queries/1_stateful on your local machine you have to set up configs from this directory for your clickhouse-server. The most simple way is to install them using install.sh script. Other option is just copy files into your clickhouse config directory.

How to add new config

Just place file .xml with new config into appropriate directory and add ln command into install.sh script. After that CI will use this config in all tests runs.