Alexander Tokmakov
|
24725b5f95
|
fix synchronous queries
|
2022-07-27 19:15:00 +02:00 |
|
Alexander Tokmakov
|
894acf0c5c
|
fix tests
|
2022-06-29 16:27:21 +02:00 |
|
mergify[bot]
|
ddf7210ecc
|
Merge branch 'master' into remove-useless-code-2
|
2022-06-03 13:58:45 +00:00 |
|
mergify[bot]
|
747aa5575c
|
Merge branch 'master' into remove-useless-code-2
|
2022-05-22 17:41:57 +00:00 |
|
Alexander Tokmakov
|
12bbb7de87
|
fix race on TID allocation
|
2022-05-20 12:41:44 +02:00 |
|
Anton Popov
|
e911900054
|
remove last mentions of data streams
|
2022-05-09 19:15:24 +00:00 |
|
Alexander Tokmakov
|
c806869040
|
fix sync database replica
|
2022-05-06 18:37:20 +02:00 |
|
mergify[bot]
|
cc08ccb420
|
Merge branch 'master' into remove-useless-code-2
|
2022-04-30 12:48:15 +00:00 |
|
Alexey Milovidov
|
1ddb04b992
|
Merge pull request #36715 from amosbird/refactorbase
Reorganize source files so that base won't depend on Common
|
2022-04-30 09:40:58 +03:00 |
|
Amos Bird
|
4a5e4274f0
|
base should not depend on Common
|
2022-04-29 10:26:35 +08:00 |
|
Alexander Tokmakov
|
6797e7dc76
|
fix flaky test
|
2022-04-28 21:39:45 +02:00 |
|
Robert Schulze
|
1e1df8e101
|
Replace remove-erase idiom by C++20 erase()/erase_if()
- makes the code less verbose while being as efficient
|
2022-04-17 12:04:47 +02:00 |
|
Alexander Tokmakov
|
4ce0b280e6
|
wait for node to disappear instead of removing
|
2022-04-14 15:31:05 +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
|
e8b7f963b7
|
fix too strict assertion
|
2022-03-23 11:55:28 +01:00 |
|
Maksim Kita
|
5ef83deaa6
|
Update sort to pdqsort
|
2022-01-30 19:49:48 +00:00 |
|
alesapin
|
4caef03e6a
|
Add ephemeral lock in zookeeper
|
2022-01-17 14:52:51 +03:00 |
|
Alexey Milovidov
|
453135eb63
|
Fix indecent error message
|
2021-12-12 05:24:47 +03:00 |
|
Alexander Tokmakov
|
5868f7590c
|
fix race between replicas
|
2021-11-22 19:46:34 +03:00 |
|
Alexander Tokmakov
|
ba6adafae3
|
Merge branch 'master' into tavplubix-patch-4
|
2021-11-22 18:50:38 +03:00 |
|
Nikolay Degterinsky
|
ba50e8387d
|
Merge branch 'master' into query_parameters
|
2021-11-15 19:55:54 +00:00 |
|
tavplubix
|
b5b20f84bc
|
Update DDLWorker.cpp
|
2021-11-14 17:41:55 +03:00 |
|
Nikolay Degterinsky
|
0d58c5231f
|
Better
|
2021-11-11 13:28:18 +00:00 |
|
tavplubix
|
51d2328d9b
|
Update DDLWorker.cpp
|
2021-11-11 15:27:38 +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 |
|
Nikolay Degterinsky
|
7f3d395bf3
|
Merge branch 'master' into query_parameters
|
2021-09-30 02:01:33 +03:00 |
|
Alexander Tokmakov
|
3bca886174
|
remove some trash
|
2021-09-17 22:29:10 +03:00 |
|
Nikolay Degterinsky
|
22f59e1714
|
Add support for table and database query parameters
|
2021-09-07 01:19:02 +03:00 |
|
Alexander Tokmakov
|
f8ea865283
|
fix watch leak in DDLWorker
|
2021-09-01 12:18:28 +03:00 |
|
tavplubix
|
f94b0b8d3f
|
Update DDLWorker.cpp
|
2021-08-19 13:19:48 +03:00 |
|
tavplubix
|
6eb15eb949
|
Update DDLWorker.cpp
|
2021-08-17 17:05:37 +03:00 |
|
fuwhu
|
8515f3b3a2
|
Add metric MaxPushedDDLEntryID.
|
2021-08-11 11:40:06 +08:00 |
|
Alexander Tokmakov
|
4165ba2a01
|
add system.zookeeper_log
|
2021-07-09 17:05:35 +03:00 |
|
Alexey Milovidov
|
b320905f34
|
Whitespaces
|
2021-07-05 03:02:47 +03:00 |
|
tavplubix
|
2b62a09aa3
|
Merge pull request #25373 from ClickHouse/improve_replicated_database_tests2
Improve Replicated database tests 2
|
2021-06-17 08:34:06 +03:00 |
|
Alexander Tokmakov
|
c235539620
|
minor fixes
|
2021-06-17 00:20:35 +03:00 |
|
Maksim Kita
|
67e9b85951
|
Merge ext into common
|
2021-06-16 23:28:41 +03:00 |
|
Alexander Tokmakov
|
0ad6205fa6
|
logs for debuging test failures with Replicated and Keeper
|
2021-04-15 21:34:53 +03:00 |
|
Ivan
|
495c6e03aa
|
Replace all Context references with std::weak_ptr (#22297)
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
|
2021-04-11 02:33:54 +03:00 |
|
Azat Khuzhin
|
f157278b72
|
Safer SCOPE_EXIT
It executes the code in the dtor, that should never throw.
|
2021-04-06 21:10:37 +03:00 |
|
3ldar-nasyrov
|
37a17749ea
|
fixed exceeded amount of tries typo
'retires' -> 'retries'
|
2021-03-16 23:17:07 +03:00 |
|
tavplubix
|
35a770a7f6
|
add comment
|
2021-03-05 15:50:10 +03:00 |
|
Alexander Tokmakov
|
614e0d9ba0
|
just another fix for ddl worker
|
2021-03-05 04:17:51 +03:00 |
|
Azat Khuzhin
|
7d51ae3212
|
DDLWorker: Fix processing of tasks in parallel (correct queue begin)
Otherwise it will:
- start from incorrect task and bail because finished node already
exists
- and also process alreayd processed items
|
2021-02-28 05:45:12 +03:00 |
|
Azat Khuzhin
|
955974a8b5
|
DDLWorker: avoid NULL dereference on termination and failed zookeeper initialization
Log snipped shows the problem:
2021.02.24 04:40:29.349181 [ 39 ] {} <Warning> DDLWorker: DDLWorker is configured to use multiple threads. It's not recommended because queries can be reordered. Also it may cause some unknown issues to appear.
2021.02.24 04:40:29.349516 [ 39 ] {} <Information> Application: Ready for connections.
2021.02.24 04:40:29.349602 [ 74 ] {} <Debug> DDLWorker: Started DDLWorker cleanup thread
2021.02.24 04:40:29.349639 [ 73 ] {} <Debug> DDLWorker: Starting DDLWorker thread
2021.02.24 04:40:29.349698 [ 73 ] {} <Debug> DDLWorker: Started DDLWorker thread
2021.02.24 04:40:29.352548 [ 73 ] {} <Error> virtual void DB::DDLWorker::initializeMainThread(): Code: 999, e.displayText() = Coordination::Exception: All connection tries failed while connecting to ZooKeeper. nodes: 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
Poco::Exception. Code: 1000, e.code() = 111, e.displayText() = Connection refused (version 21.3.1.1), 192.168.112.3:2181
(Connection loss), Stack trace (when copying this message, always include the lines below):
0. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error, int) @ 0xfe93923 in /usr/bin/clickhouse
1. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error) @ 0xfe93ba2 in /usr/bin/clickhouse
2. Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) @ 0xfed3a01 in /usr/bin/clickhouse
3. Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) @ 0xfed2222 in /usr/bin/clickhouse
4. zkutil::ZooKeeper::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0xfe961cd in /usr/bin/clickhouse
5. zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0xfe97a96 in /usr/bin/clickhouse
6. void std::__1::allocator_traits<std::__1::allocator<zkutil::ZooKeeper> >::__construct<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::integral_constant<bool, true>, std::__1::allocator<zkutil::ZooKeeper>&, zkutil::ZooKeeper*, Poco::Util::AbstractConfiguration const&, char const (&) [10]) @ 0xed98387 in /usr/bin/clickhouse
7. DB::Context::getZooKeeper() const @ 0xed75190 in /usr/bin/clickhouse
8. DB::DDLWorker::getAndSetZooKeeper() @ 0xedb81c9 in /usr/bin/clickhouse
9. DB::DDLWorker::initializeMainThread() @ 0xedc9eb0 in /usr/bin/clickhouse
10. DB::DDLWorker::runMainThread() @ 0xedb5d01 in /usr/bin/clickhouse
11. ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() @ 0xedcafa1 in /usr/bin/clickhouse
12. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x892651f in /usr/bin/clickhouse
13. ? @ 0x8929fb3 in /usr/bin/clickhouse
14. start_thread @ 0x8ea7 in /lib/x86_64-linux-gnu/libpthread-2.31.so
15. __clone @ 0xfddef in /lib/x86_64-linux-gnu/libc-2.31.so
(version 21.3.1.1)
...
2021.02.24 04:40:30.025278 [ 41 ] {} <Trace> BaseDaemon: Received signal 15
2021.02.24 04:40:30.025336 [ 41 ] {} <Information> Application: Received termination signal (Terminated)
...
2021.02.24 04:40:30.582078 [ 39 ] {} <Information> Application: Closed all listening sockets.
2021.02.24 04:40:30.582124 [ 39 ] {} <Information> Application: Closed connections.
2021.02.24 04:40:30.583770 [ 39 ] {} <Information> Application: Shutting down storages.
2021.02.24 04:40:30.583932 [ 39 ] {} <Information> Context: Shutdown disk data
2021.02.24 04:40:30.583951 [ 39 ] {} <Information> Context: Shutdown disk default
2021.02.24 04:40:30.584163 [ 46 ] {} <Trace> SystemLog (system.query_log): Terminating
2021.02.24 04:40:30.586025 [ 39 ] {} <Trace> BackgroundSchedulePool/BgSchPool: Waiting for threads to finish.
2021.02.24 04:40:34.352701 [ 73 ] {} <Debug> DDLWorker: Initialized DDLWorker thread
2021.02.24 04:40:34.352758 [ 73 ] {} <Debug> DDLWorker: Scheduling tasks
|
2021-02-28 05:45:12 +03:00 |
|
Azat Khuzhin
|
3c7e765b27
|
DDLWorker: process unfinished tasks only after reinitialization
|
2021-02-28 05:45:12 +03:00 |
|
Azat Khuzhin
|
54b1496408
|
DDLWorker: optimize processing of unfinished tasks
Do not look at zookeeper if was_executed is false
|
2021-02-28 05:45:12 +03:00 |
|
Azat Khuzhin
|
eeda1fe756
|
DDLWorker: wait for pending async tasks
|
2021-02-28 05:45:12 +03:00 |
|