Commit Graph

150 Commits

Author SHA1 Message Date
alexey-milovidov
c6ab6fa1a8
Merge pull request #3247 from CurtizJ/fix-thread-group
Fix distributed "CREATE TABLE AS SELECT" query.
2018-09-28 18:54:49 +03:00
Anton Popov
49438ed1a1
Update DDLWorker.cpp 2018-09-28 18:35:30 +03:00
CurtizJ
ed3c744055 fixes 2018-09-28 18:30:03 +03:00
proller
ec11bef633
Build fixes (#3181) 2018-09-28 17:53:20 +03:00
CurtizJ
009c973312 remove redundant comment 2018-09-28 16:47:34 +03:00
CurtizJ
f9fb73ce2e fix distributed "create table as select" query 2018-09-28 16:44:39 +03:00
Alexey Milovidov
17b8e20922 Failover for hosts with missing DNS records while connecting to ZooKeeper #3201 2018-09-24 22:09:12 +03:00
Alexey Milovidov
73f68b5ee4 Miscellaneous [#CLICKHOUSE-2] 2018-09-24 21:44:09 +03:00
Alexey Zatelepin
badefe14bc allow ON CLUSTER for ALTER UPDATE #3158 2018-09-19 14:01:09 +03:00
zhang2014
f8d7cf17a7 ISSUES-2482 fix crash when on cluster 2018-08-27 19:03:22 +08:00
Alexey Milovidov
3475ef5304 Attempt to generalize ZooKeeper interface [#CLICKHOUSE-2] 2018-08-25 04:58:14 +03:00
Alexey Milovidov
3b39f6a4c3 Split ZooKeeperExceptions to three different metrics #2316 2018-08-21 04:27:22 +03:00
Alexey Milovidov
36db216abf Preparation for extra warnings [#CLICKHOUSE-2] 2018-08-10 07:02:56 +03:00
proller
fbe7df73a2
CLICKHOUSE-3762 Build fixes (#2488)
CONTRIB-254
2018-06-19 21:09:09 +03:00
Alexey Zatelepin
14947b494f make ASTAlterQuery::Parameters a real AST element ASTAlterCommand [#CLICKHOUSE-3747] 2018-06-13 17:13:28 +03:00
Alexey Zatelepin
2fde0acb36 allow ALTER DELETE in distributed DDL [#CLICKHOUSE-3688] 2018-06-05 16:23:52 +03:00
Alexey Milovidov
f5adbceed2 Non significant changes according to clang's -Weverything, part 3 [#CLICKHOUSE-2] 2018-06-03 23:39:06 +03:00
Vitaliy Lyudvichenko
8746149965 More persistent directory names for replicas. [#CLICKHOUSE-2] 2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
1f05000c2c Better naming. [#CLICKHOUSE-3645] 2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
704583968f Do not save resolved addresses in Connections. [#CLICKHOSUE-2]
Add disable_internal_dns_cache main config option.
2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
8fd72a6777 Add automatic DROP DNS CACHE, update of SYSTEM queries. [#CLICKHOUSE-3645] 2018-05-09 07:55:08 +03:00
alexey-milovidov
089e71d9a5
Merge pull request #2235 from yandex/small-enhancements
Small enhancements
2018-04-17 22:45:01 +03:00
Vitaliy Lyudvichenko
400ad55754 Support allow_databases in distributed DDL. [#CLICKHOUSE-3]
Resolves #2189
2018-04-17 22:33:58 +03:00
Nikolai Kochetov
9e05052c2a merged with master 2018-04-16 18:35:11 +03:00
Nikolai Kochetov
7b8a306e34 minor fixes 2018-04-16 18:11:13 +03:00
Alexey Milovidov
08170d0d77 Modifications after removing libzookeeper [#CLICKHOUSE-2] 2018-04-03 21:24:18 +03:00
Alexey Milovidov
2310bd7947 Miscellaneous [#CLICKHOUSE-2] 2018-04-03 20:35:48 +03:00
Alexey Milovidov
522bf01db9 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:15:52 +03:00
Alexey Milovidov
10be6ca8f8 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-24 03:45:04 +03:00
Alexey Milovidov
d690c24198 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-22 00:40:53 +03:00
Vitaliy Lyudvichenko
8028ba0de9 Refactoring of zkutil::ZooKeeper::multi* functions. [#CLICKHOUSE-2] 2018-03-14 16:29:03 +03:00
alexey-milovidov
04cc8a52f7
Merge pull request #2032 from yandex/system-table-macro
System table macro
2018-03-14 02:10:30 +03:00
Vitaliy Lyudvichenko
f11f8e0365 Fixed DDLWorker after recent changes. [#CLICKHOUSE-2] 2018-03-14 00:20:08 +03:00
Nikolai Kochetov
4dd7f47ad5 reload macros with config [#CLICKHOUSE-3591] 2018-03-12 21:16:51 +03:00
Alexey Milovidov
5ff433b670 Merged Limits to Settings [#CLICKHOUSE-2021] 2018-03-11 03:15:26 +03:00
Alexey Milovidov
d134f90fa9 Whitespace [#CLICKHOUSE-2] 2018-03-06 14:59:25 +03:00
proller
82a361d0e9 Show error to client if query was killed (#1989)
* Show error to client if query was killed

* Kill exception v2

* Use kill

* fix

* wip

* fix

* fxi

* try fix

* Revert "try fix"

This reverts commit eb76e4c040.

* QUERY_WASCANCELLED

* Fxi all cancel()

* fix
2018-03-06 00:09:39 +03:00
Vitaliy Lyudvichenko
9c889af882 Add allow_distributed_ddl setting. [#CLICKHOUSE-3611]
Clearer exception message.
Fixed Int64 settings parsing.
2018-02-28 16:23:40 +03:00
Alexey Milovidov
cae7f96f34 Simplification [#CLICKHOUSE-2] 2018-02-23 13:02:29 +03:00
Alexey Milovidov
afe09d3138 Removed unused code [#CLICKHOUSE-2] 2018-02-18 06:46:18 +03:00
Alexey Milovidov
754a4296df Header in every stream: fixed non-deterministic test [#CLICKHOUSE-2] 2018-02-18 06:23:48 +03:00
Alexey Milovidov
921e09b5f8 Merge branch 'master' into header-in-input-streams 2018-02-15 19:20:36 +03:00
Vitaliy Lyudvichenko
56add902d4 Removed superfluous FORMAT statements in .sql files. [#CLICKHOUSE-3] 2018-02-12 23:35:56 +03:00
alexey-milovidov
20686ab405
Merge pull request #1847 from yandex/CLICKHOUSE-3558
Add system_profile setting
2018-02-07 21:29:04 +03:00
Alexey Milovidov
5324571adf Removed setting "distributed_ddl_allow_replicated_alter" [#CLICKHOUSE-2]. 2018-02-06 21:29:35 +03:00
Vitaliy Lyudvichenko
118b17253e Add system_profile config. [#CLICKHOUSE-3558] 2018-02-01 16:53:44 +03:00
Nikolai Kochetov
018c32010e added macro for cluster name in Distributerd table and DDL [#CLICKHOUSE-3409] 2018-01-22 21:49:17 +03:00
Alexey Milovidov
12c521fa25 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-07 03:35:44 +03:00
Alexey Milovidov
9996e181e1 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-06 21:10:44 +03:00
Alexey Milovidov
d0ca8b2533 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 21:23:05 +03:00
proller
5ba7e20c03 fixes 2017-11-17 22:40:27 +03:00
proller
49f8080e52 Small debud improvement 2017-10-13 21:44:26 +03:00
Alexey Milovidov
cd540c2674 Replaced Mersenne Twister to PCG-Random [#CLICKHOUSE-2]. 2017-09-10 02:17:38 +03:00
Alexey Milovidov
8b313ab99e Fixed warnings found by cppcheck [#CLICKHOUSE-3300]. 2017-09-08 00:04:48 +03:00
Vadim Skipin
4017622ffb CLICKHOUSE-3289: Do not use Application singleton 2017-09-07 20:55:33 +03:00
Vitaliy Lyudvichenko
d55d5eca46 Remove extra Context reference and add required ones. Part 2. [#CLICKHOUSE-3117] 2017-09-06 04:18:07 +03:00
alexey-milovidov
775d95888a Merge pull request #1163 from yandex/CLICKHOUSE-2931
Introduce SYSTEM queries
2017-09-01 20:45:29 +03:00
proller
1a8e22c37f Allow compile on 32bit systems (#1175)
* Trying compile under 32bit..

* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* clnag-format of Split ComplexKeyCacheDictionary

* wip

* Requested changes

* wip

* wip

* Fix boost 1.64 and gcc7+ compile errors

* More fixes

* wip

* Fix arm build

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* clean

* fix

* wip

* wip

* clean

* clean

* wip

* wip

* Update MergeTreeSettings.h

* Requested changes

* Requested changes

* Requested changes

* Requested changes
2017-09-01 20:21:03 +03:00
alexey-milovidov
5d14855989 Merge branch 'master' into CLICKHOUSE-2931 2017-08-31 00:23:39 +03:00
Vitaliy Lyudvichenko
478470e1f1 Avoid segfaults and many other problems related with modifying global context in DDLWorker. [#CLICKHOUSE-3260] 2017-08-30 19:12:45 +03:00
Vitaliy Lyudvichenko
48f5d8f1a3 Add SYSTEM DROP DNS CACHE. [#CLICKHOUSE-2931] 2017-08-28 20:27:16 +03:00
Vitaliy Lyudvichenko
f8c9059857 Fixed SIGABRT in DDLWorker. [#CLICKHOUSE-3251] 2017-08-25 19:31:57 +03:00
Vitaliy Lyudvichenko
1a68a17a06 Avoid infinite loop in DDLWorker if ZooKeeper dies. [#CLICKHOUSE-2] 2017-08-17 23:06:38 +03:00
Alexey Milovidov
5af5f78cb7 Terminate only DDLWorker in case of unexpected exception in DDLWorker [#CLICKHOUSE-4]. 2017-08-14 08:51:03 +03:00
Alexey Milovidov
1495490726 DDLWorker: better [#CLICKHOUSE-5]. 2017-08-14 08:44:04 +03:00
Alexey Milovidov
547516c636 Fixed errors after merge [#CLICKHOUSE-2]. 2017-08-13 12:27:38 +03:00
Vitaliy Lyudvichenko
bf1c4d156a Fix errors after rebase, better logging. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
04ab103d92 Avoid extra ZK calls on cleanup. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
alexey-milovidov
7ba0fcaf51 Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
alexey-milovidov
15fa88d25b Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
alexey-milovidov
4af3e55699 Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
d9ce96f8f5 Fixed test and misspellings. [#CLICKHOUSE-3207] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
4ef5d14722 Add distributed_ddl_task_timeout setting. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
cdf95ab308 Fixed race condition in case of different cluster definitions. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
e4785aeb4d Simplified clean queue logic. Added more tests. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
c2e84d6df7 Fixed several errors in case of connection loss. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
cb02a1b3b5 Add random ZK packets drops into test. Fixed a couple bugs. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
4a7927b186 Many improvements. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
628de0a3ea Fixed logging of DDL queries. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
736feab79f Add port field. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
7e8f3a0561 Add parse error handling. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
c65c49b50a Add config-based host name selection. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Nikolai Kochetov
90940d8423 Cluster and DistributedBlockOutputStream refactoring [#CLICKHOUSE-3033] 2017-08-11 18:02:07 +03:00
Alexey Milovidov
6578fb2645 Fixed error [#CLICKHOUSE-3191]. 2017-08-01 00:39:24 +03:00
Alexey Milovidov
1bab7fc344 Using lexer (incomplete) [#CLICKHOUSE-2]. 2017-07-13 08:59:01 +03:00
Alexey Milovidov
4b1eeee1a3 Using lexer (incomplete) [#CLICKHOUSE-2]. 2017-07-13 08:59:01 +03:00
Alexey Milovidov
05accbdcbe Removed cyclic dependency [#DEVTOOLS-3381]. 2017-06-19 23:06:35 +03:00
Alexey Milovidov
a782f81f8f Moved common code from Functions; fixed build after merge [#CLICKHOUSE-2]. 2017-06-13 07:45:30 +03:00
Vitaliy Lyudvichenko
1c367fc666 Fix DDLLogEntry::CURRENT_VERSION variable issue. [#CLICKHOUSE-5] 2017-06-01 13:49:22 +03:00
Vitaliy Lyudvichenko
6db8da82c6 Add requested changes. [#CLICKHOUSE-5] 2017-06-01 13:49:21 +03:00
Vitaliy Lyudvichenko
73e2aab9ec Updated integration tests. Add integration test for DDL. [#CLICKHOUSE-5] 2017-06-01 13:49:21 +03:00
Vitaliy Lyudvichenko
55aa8217f3 Disable DDL ALTER for replicated tables. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
3a2c1a195d Add ZooKeeper session recovering and trashy integration test. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
9fd8d6b79f Add ALTER queries. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
48ade83090 Parsers refactoring. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
91f45c628b Add queue cleanup. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
feb1db051d Add status stream for distributed DDLs. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
4322b0c5a9 Implemented global ZK queue for DDLs. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
209015574f Workable version for CREATE DROP w/o ZK tests. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
aa7504a7f5 Distributed DDL PR rebase. [#CLICKHOUSE-5] 2017-06-01 13:49:19 +03:00