Commit Graph
34 Commits
Author SHA1 Message Date
tavplubixGitHubmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
7a43a87f5b Use shard and replica name from Replicated database arguments (#31488)
* fix another issue

* use shard and replica name from Replicated database

* fix

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-23 12:41:54 +03:00
Yatsishin Ilya 2f8b8596a2 better 2021-11-15 17:07:08 +03:00
Yatsishin Ilya cc109a7e4a fix 2021-11-11 16:36:10 +03:00
Yatsishin Ilya ad2376c03b wip 2021-11-11 11:12:54 +03:00
tavplubixandGitHub d7c69f6c02 Merge pull request #29202 from aiven/kmichel-replicated-database-alter-attach
Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
2021-10-27 16:42:54 +03:00
Kevin Michel 045d4f2d32 Don't replicate DROP/DETACH/DROP DETACHED on Replicated database 2021-09-27 10:10:46 +02:00
Kevin Michel 008c3c812b Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
`ALTER TABLE ... FETCH` and `ALTER TABLE ... ATTACH` queries were
disabled in the Replicated database engine, because it could cause
accidental duplication of data.

This enables these queries but without replicating them.

In the case of `FETCH`, the part will only be fetched on the server
where the query is issued.

Similarly, in the case of `ATTACH`, the attached part only needs to
be available on the server where the query is issued.

If the table itself is using one of the Replicated MergeTree engines,
the attached data is then replicated by the table engine itself,
without intervention of the database engine.

This change is meant to help with live backup/restore when using the
Replicated database engine, using FREEZE for backup and ATTACH for
restore.
2021-09-21 17:45:23 +02:00
Alexey Milovidov e513a5db32 Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
Alexander Tokmakov 9e9fa043ca minor improvements, add test 2021-08-16 21:30:53 +03:00
Yatsishin Ilya 9f5a527df7 Merge remote-tracking branch 'origin' into integration-2 2021-04-02 13:34:49 +03:00
Alexander Tokmakov 91068b782b fix 2021-03-17 17:29:24 +03:00
Yatsishin Ilya 06bb4e2c71 wip 2021-03-16 13:00:49 +03:00
Alexander Tokmakov ba3d51383c fix 2021-03-10 00:41:04 +03:00
Alexander Tokmakov 83b3e4e0f5 allow to use Cluster from Replicated db 2021-03-09 20:05:24 +03:00
Alexander Tokmakov 2022b90919 configurable output mode for distributed DDL 2021-03-08 23:35:09 +03:00
Alexander Tokmakov 2484781070 fix MV recovery in Replicated db 2021-03-08 20:26:38 +03:00
Alexander Tokmakov 9c7cf9e92e remove some debug code 2021-02-15 13:26:34 +03:00
Alexander Tokmakov 320fd6b264 startup without zk 2021-02-15 03:04:46 +03:00
Alexander Tokmakov c9cf63e958 fix 2021-02-12 01:23:40 +03:00
Alexander Tokmakov 2c6a0e74fb better replica creation 2021-02-09 18:14:20 +03:00
Alexander Tokmakov 78c1d69b8c better code 2021-02-08 22:36:17 +03:00
Alexander Tokmakov 6456ccf0da better test 2021-02-02 22:39:04 +03:00
Alexander Tokmakov ab197a49c8 better code, fixes 2020-11-30 23:12:43 +03:00
Alexander Tokmakov f1a52a609b separate DatabaseReplicatedDDLWorker 2020-11-27 17:04:03 +03:00
Alexander Tokmakov dad21ee684 maintain metadata in zk 2020-11-24 13:24:39 +03:00
Alexander Tokmakov 2a6c0b9180 try reuse DDLWorker in DatabaseReplicated 2020-11-12 20:35:29 +03:00
Alexander Tokmakov cd14f095ab fix tests 2020-10-26 18:12:16 +03:00
Val dde293fc3d check schema after alters in test 2020-06-27 17:04:12 +03:00
Val 67588edcf5 clean up db replicated files and add more tests 2020-06-27 17:04:11 +03:00
Val e8e4e4d21c add tests for db replicated 2020-06-27 17:02:05 +03:00
Val f6de720f59 speed up db replicated test 2020-06-27 17:02:05 +03:00
Val a0af67b636 Add one more test for db replicated and fix related bug 2020-06-27 17:01:20 +03:00
Val 34f74ff785 add test cases for replicated db 2020-06-27 16:58:17 +03:00
Val 5e076b464e add replicated db snapshot, integration test, repl alter queries, etc
add an option to create replicated tables within replicated db without specifying zk path and replica id
add replicated sch pool
disable replication of alter queries for replicated tables in replicated dbs
snapshot prototype. amend of replicated db workflow
add prototype of integration tests for replicated db
2020-06-27 16:58:15 +03:00