ClickHouse/docker/test
何李夫 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
..
base Add second_deadlock_stack=1 for TSan on CI 2023-04-10 15:05:57 +02:00
codebrowser Move tunnings for woboq codebrowser to cmake out from build.sh 2023-05-18 18:18:30 +02:00
compatibility Preparation 2021-09-06 14:33:39 +03:00
fasttest Merge remote-tracking branch 'u/master' into build/llvm-16 2023-05-10 16:28:36 +02:00
fuzzer Use LLVM 16 2023-03-18 23:45:57 +01:00
install Add tests for packages' installation 2023-02-03 12:16:16 +01:00
integration Using a proper --tls=false option to disable TLS 2023-04-19 13:33:15 +02:00
keeper-jepsen Use LLVM 16 2023-03-18 23:45:57 +01:00
performance-comparison Merge pull request #47945 from ClickHouse/artifacts-s3-prefix 2023-03-26 00:15:50 +01:00
server-jepsen Merge remote-tracking branch 'u/master' into build/llvm-16 2023-05-08 22:33:52 +02:00
sqlancer Make sqlancer lighter by some optimizations 2023-01-11 22:43:10 +01:00
sqllogic turn on all CI back 2023-04-17 14:07:56 +02:00
stateful Merge pull request #47790 from CurtizJ/apply-black-to-all-files 2023-03-24 14:20:50 +03:00
stateless Add zookeeper name in endpoint id (#49780) 2023-05-25 12:50:14 +03:00
stress Enable back thread fuzzuer under TSan 2023-05-08 22:35:09 +02:00
style Update black version, run it for the repository 2023-03-24 11:54:38 +01:00
unit Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
upgrade Add zookeeper name in endpoint id (#49780) 2023-05-25 12:50:14 +03:00
util docker: install libclang-16-dev for woboq code browser 2023-05-09 10:25:50 +02:00
README.md Changed repository URL 2019-09-23 19:18:19 +03:00

ClickHouse Test Docker Image

License

View license information for the software contained in this image.