Alexander Tokmakov
a11fad1561
fix
2022-07-29 20:41:23 +02:00
Alexander Tokmakov
6f88065cc1
check metadata consistency
2022-07-29 18:33:16 +02:00
Alexander Tokmakov
5ca5a3697f
better exception message for incorrect zk path
2022-07-22 18:41:41 +02:00
Alexander Tokmakov
6e77155dc8
fix
2022-07-20 23:11:35 +02:00
Alexander Tokmakov
2e073b5cff
Merge branch 'master' into replicated_database_improvements
2022-07-04 13:53:47 +02:00
Vitaly Baranov
e367d96964
Fix style.
2022-06-30 15:10:33 +02:00
Vitaly Baranov
7689e0c36f
Improve gathering metadata for backup - part 6.
2022-06-30 08:37:17 +02:00
Vitaly Baranov
64b51a3772
Improve gathering metadata for backup.
2022-06-30 08:37:17 +02:00
Alexander Tokmakov
894acf0c5c
fix tests
2022-06-29 16:27:21 +02:00
Alexander Tokmakov
c6c22409a2
Merge branch 'master' into replicated_database_improvements
2022-06-29 14:38:07 +02:00
Alexander Tokmakov
c3573532c0
Merge pull request #38487 from ClickHouse/add_some_tsa_annotations
...
Add some TSA annotations
2022-06-29 13:57:10 +03:00
Alexander Tokmakov
4f54abf67f
better names for macros
2022-06-28 16:27:18 +02:00
Alexander Tokmakov
f4883f1f7e
add some TSA aanotations
2022-06-27 22:48:27 +02:00
Alexander Tokmakov
88dbbcb15d
fix tests
2022-06-27 16:10:00 +02:00
Alexander Tokmakov
2c5a88faba
deprecate Ordinary database
2022-06-23 10:20:14 +02:00
Vitaly Baranov
8a7c970ce0
Fix style.
2022-06-19 15:58:26 +02:00
Vitaly Baranov
c2c35fad82
Refactoring of the code getting create table queries for backup.
2022-06-15 20:32:35 +02:00
Vitaly Baranov
592f568f83
Move backup/restore code to storages and databases - part 2.
2022-06-15 20:32:31 +02:00
Alexander Tokmakov
281027e490
do not fail to start if replica seems dropped
2022-05-13 20:05:39 +02:00
Nikita Mikhaylov
93a65463d0
Added SYSTEM SYNC DATABASE
query ( #35944 )
2022-05-01 15:40:18 +02:00
Vitaly Baranov
129eca7307
CREATE queries generated by RESTORE command is now considered as internal.
2022-04-25 16:34:34 +02:00
Alexander Tokmakov
40fea2b833
do not unfold {uuid} macro
2022-04-13 16:51:59 +02:00
Alexander Tokmakov
f2c4f88295
avoid moving replicated tables to Ordinary db
2022-04-13 14:38:20 +02:00
Alexander Tokmakov
7f54e7b422
Merge branch 'master' into mvcc_prototype
2022-04-07 15:14:06 +02:00
Alexander Tokmakov
37a06eec1a
fixes
2022-04-05 17:36:53 +02:00
Alexander Tokmakov
4e9ec5dc2f
make some replicated DDL faster
2022-04-05 00:51:48 +02:00
Alexander Tokmakov
208b242188
Merge branch 'master' into mvcc_prototype
2022-03-28 19:58:06 +02:00
Nikita Mikhaylov
64f79f0c69
Added an ability to specify cluster secret in replicated database ( #35333 )
2022-03-25 00:14:26 +01:00
Alexander Tokmakov
2e4ae37d98
Merge branch 'master' into mvcc_prototype
2022-02-01 13:20:03 +03:00
Alexander Tokmakov
5fad3fdffc
throw exception on non-transactional queries
2022-02-01 01:27:55 +03:00
Maksim Kita
5ef83deaa6
Update sort to pdqsort
2022-01-30 19:49:48 +00:00
Raúl Marín
b2cfa70541
Reduce dependencies on ASTFunction.h
...
481 -> 230
2021-11-26 18:21:54 +01:00
Nikolay Degterinsky
0d58c5231f
Better
2021-11-11 13:28:18 +00:00
Nikolay Degterinsky
7b5954b736
Merge branch 'master' into query_parameters
2021-11-11 11:43:00 +00:00
tavplubix
d07d53f1b1
Merge pull request #29328 from aiven/kmichel-recover-replica-race
...
Fix hanging DDL queries on Replicated database
2021-10-27 16:43:21 +03:00
Nikolay Degterinsky
e03bf0c526
Merge branch 'master' into query_parameters
2021-10-04 17:23:17 +03:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
Kevin Michel
aa3f4003c8
Fix hanging DDL queries on Replicated database
...
There was a race condition when issuing a DDL query on a replica just
after a new replica was added.
If the DDL query is issued after the new replica adds itself to the
list of replicas, but before the new replica has finished its
recovery, then the first replica adds the new replica to the list of
replicas to wait to confirm the query was replicated.
Meanwhile, the new replica is still in recovery and applies queries
from the /metadata snapshot. When it's done, it bumps its log_ptr
without marking the corresponding log entries (if any) as finished.
The first replica then waits until distributed_ddl_task_timeout
expires and wrongly assumes the query was not replicated.
The issue is fixed by remembering the max_log_ptr at the exact point
where the replica adds itself to the list of replicas, then mark as
finished all queries that happened between that max_log_ptr and the
max_log_ptr of the metadata snapshot used in recovery.
The bug was randomly observed during a downstream test. It can be
reproduced more easily by inserting a sleep of a few seconds at the
end of createReplicaNodesInZooKeeper, enough to have time to issue a
DDL query on the first replica.
2021-09-24 12:51:52 +02:00
Nikolay Degterinsky
1b1d90deb8
Merge branch 'master' into query_parameters
2021-09-22 13:53:56 +03:00
Alexander Tokmakov
df56e99b87
fixes after review
2021-09-13 22:11:16 +03:00
Nikolay Degterinsky
22f59e1714
Add support for table and database query parameters
2021-09-07 01:19:02 +03:00
Alexander Tokmakov
c8d8f0a38c
fix
2021-08-31 15:07:00 +03:00
Amos Bird
de9e591619
Fast load by delaying table startup
2021-08-30 10:15:32 +08:00
Mikhail Filimonov
af6249c8ec
Less include <Common/Stopwatch.h>
2021-08-11 16:20:59 +02:00
Alexander Tokmakov
ff2572c243
fix
2021-08-03 16:28:03 +03:00
Alexander Tokmakov
42a8bb6872
fix assertions in Replicated database
2021-08-02 16:19:11 +03:00
Raúl Marín
383c982715
CH local: Treat localhost:port as a remote database
2021-07-23 13:16:35 +02:00
tavplubix
e2941a8006
Update DatabaseReplicated.cpp
2021-06-01 15:15:13 +03:00
Alexander Tokmakov
94d2aed336
fix tests
2021-06-01 13:24:06 +03:00
Alexander Tokmakov
fe482109da
Merge branch 'master' into fix_database_replicated_enqueue_race
2021-06-01 11:49:29 +03:00