Commit Graph

38175 Commits

Author SHA1 Message Date
Azat Khuzhin
e7bbd400c7 Fix deadlock on failed database attach at start with materialized view
This is not the problem for plain DROP DATABASE query since it first
remove tables.

  (gdb) bt
  0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103
  1  0x00007f353c262774 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x11049288 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog+8>) at ../nptl/pthread_mutex_lock.c:80
  2  0x0000000004fd5d1e in DB::pthread_mutex_lock (arg=arg@entry=0x11049288 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog+8>) at ../src/Common/ThreadFuzzer.cpp:253
  3  0x000000000c70b3a9 in std::__1::__libcpp_mutex_lock (__m=__m@entry=0x11049288 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog+8>) at ../contrib/libcxx/include/__threading_support:322
  4  std::__1::mutex::lock (this=this@entry=0x11049288 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog+8>) at ../contrib/libcxx/src/mutex.cpp:33
  5  0x0000000008acd4e2 in std::__1::lock_guard<std::__1::mutex>::lock_guard (__m=..., this=<synthetic pointer>) at ../contrib/libcxx/include/__mutex_base:90
  6  DB::DatabaseCatalog::removeDependency (this=this@entry=0x11049280 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog>, from=..., where=...) at ../src/Interpreters/DatabaseCatalog.cpp:388
  7  0x000000000975044b in DB::StorageMaterializedView::shutdown (this=0x7f338d178a00) at ../src/Storages/StorageMaterializedView.cpp:362
  8  0x0000000008a79602 in DB::DatabaseWithOwnTablesBase::shutdown (this=0x7f353be3cc60) at ../contrib/libcxx/include/__tree:184
  9  0x0000000009546196 in DB::DatabaseWithDictionaries::shutdown (this=0x7f353be3cc60) at ../src/Databases/DatabaseWithDictionaries.cpp:265
  10 0x0000000008acecdb in DB::DatabaseCatalog::detachDatabase (this=0x11049280 <DB::DatabaseCatalog::init(DB::Context const*)::database_catalog>, database_name=..., drop=drop@entry=false, check_empty=check_empty@entry=false) at ../contrib/libcxx/include/memory:3826
  11 0x0000000004bf0aa5 in DB::InterpreterCreateQuery::createDatabase (this=0x7ffd6e1bab80, create=...) at ../src/Interpreters/InterpreterCreateQuery.cpp:162
  12 0x0000000008b04327 in DB::InterpreterCreateQuery::execute (this=this@entry=0x7ffd6e1bab80) at ../src/Interpreters/InterpreterCreateQuery.cpp:722
  13 0x0000000008d0fdaa in DB::executeCreateQuery (has_force_restore_data_flag=false, file_name=..., database=..., context=..., query=...) at ../src/Interpreters/loadMetadata.cpp:48
  14 DB::loadDatabase (context=..., database=..., database_path=..., force_restore_data=<optimized out>) at ../src/Interpreters/loadMetadata.cpp:72
  15 0x0000000008d103c3 in DB::loadMetadata (context=...) at ../src/Interpreters/loadMetadata.cpp:111
  16 0x0000000004f4d25e in DB::Server::main (this=<optimized out>) at ../contrib/libcxx/include/memory:2582
  17 0x000000000bbc8963 in Poco::Util::Application::run (this=this@entry=0x7ffd6e1bcc60) at ../contrib/poco/Util/src/Application.cpp:334
  18 0x0000000004ffe1de in DB::Server::run (this=0x7ffd6e1bcc60) at ../programs/server/Server.cpp:178
  19 0x0000000004ff36cc in mainEntryClickHouseServer (argc=3, argv=0x7f353be58bc0) at ../programs/server/Server.cpp:1060
  20 0x0000000004f49b99 in main (argc_=<optimized out>, argv_=<optimized out>) at ../contrib/libcxx/include/vector:655
2020-04-05 14:16:16 +03:00
Alexey Milovidov
73b0f8db8c Added results from Denis Glazachev 2020-04-04 19:17:01 +03:00
Azat Khuzhin
1232760f78 Fix Distributed-over-Distributed when nested table has only one shard 2020-04-04 13:47:35 +03:00
Azat Khuzhin
8d372b0be7 Call getQueryProcessingStage() once, since it is heavy for StorageDistributed
Refs: #9808
2020-04-04 13:47:34 +03:00
Azat Khuzhin
1777e2fd6b Regression for Distributed-over-Distributed when nested table has only one shard 2020-04-04 13:47:34 +03:00
Vasily Nemkov
b441e8a408 Integration test for Distributed over Distributed (from #8640) 2020-04-04 13:47:34 +03:00
Ivan Blinkov
765dd7c495
Update some docs translations (#10044) 2020-04-04 12:15:31 +03:00
Ivan Blinkov
65c317e4ca
Update quotas.md 2020-04-04 09:35:35 +03:00
Ivan Blinkov
6a2a29a579
Update requirements.md 2020-04-04 09:33:00 +03:00
Ivan Blinkov
e32c761e59
Update docs.js 2020-04-04 08:30:40 +03:00
Ivan Lezhankin
9b590a1edf Trigger rebuild after rename 2020-04-04 03:04:46 +03:00
alexey-milovidov
ea6f90b4f2
Merge pull request #10042 from abyss7/dbms2src
dbms/ → src/
2020-04-04 02:44:20 +03:00
Ivan Blinkov
815f7448d0
Update docs.js 2020-04-03 23:08:27 +03:00
Denis Glazachev
b66837ba32
Fix typos (#10045) 2020-04-03 22:27:28 +03:00
Ivan Blinkov
07e90a5725
Update docs.js 2020-04-03 22:25:20 +03:00
Sami Kerola
5fb5fd1884
[docs] tell the cutIPv6() is cutting bytes not bits
The IPv6CIDRToRange() appears to use bits while cutIPv6() will cut in bytes.

    WITH IPv6StringToNum('FFFF:FFFF:FFFF:FFFF:AAAA:AAAA:AAAA:AAAA') AS ipv6
    SELECT
      cutIPv6(ipv6, 8, 0),
      tupleElement(IPv6CIDRToRange(ipv6, 64), 1)
2020-04-03 19:56:46 +01:00
Alexander Kuzmenkov
9465f97832 performance comparison 2020-04-03 21:23:11 +03:00
alesapin
1d1721b37c Fix if exists 2020-04-03 19:45:49 +03:00
alesapin
7ab73e9083 Fix bug 2020-04-03 19:33:25 +03:00
Alexander Kuzmenkov
49bc33ed34
Update 01073_attach_if_not_exists.sql 2020-04-03 18:59:59 +03:00
Ivan Lezhankin
8a5a73e76d Merge branch 'master' into dbms2src 2020-04-03 18:20:05 +03:00
Alexander Kuzmenkov
9d5ece27c7
Merge pull request #10025 from ClickHouse/aku/shm-trailing-zeros
Support trailing zero bytes in string hash map
2020-04-03 18:16:52 +03:00
Ivan Lezhankin
06446b4f08 dbms/ → src/ 2020-04-03 18:14:31 +03:00
alesapin
38a50f44d3 Remove empty line 2020-04-03 17:21:24 +03:00
Ivan Blinkov
3e185d24c9
Update docs.js 2020-04-03 17:15:22 +03:00
Ivan Blinkov
36f950c13e
fix mistype in docs.js 2020-04-03 17:14:33 +03:00
Ivan Blinkov
b66c26d833
Get rid of toc_en.yml (#10023) 2020-04-03 16:23:32 +03:00
Ivan Blinkov
dcc3abb37d
Update README.md 2020-04-03 16:07:20 +03:00
alesapin
3b498c603b Fix stupid bug in parser 2020-04-03 15:26:57 +03:00
Sergei Shtykov
2dfeb95871 CLICKHOUSEDOCS-577: Added the link to original article. 2020-04-03 15:25:12 +03:00
Sergei Shtykov
e197421df4 CLICKHOUSEDOCS-577: Clarified instruction. Fixed markup. 2020-04-03 15:23:20 +03:00
alesapin
e83b6d0c2e Better comment 2020-04-03 14:25:56 +03:00
alesapin
450f9a5175 Comment 2020-04-03 14:23:14 +03:00
alesapin
a027b33195 Better test 2020-04-03 14:19:17 +03:00
alesapin
f3e3df4593 Better test 2020-04-03 14:15:43 +03:00
alesapin
9f19a25fb8 More comments, better code 2020-04-03 14:09:27 +03:00
alesapin
20d40b8bce Refactor code add comments 2020-04-03 13:40:46 +03:00
Alexander Kuzmenkov
d4445485bd
Merge pull request #10028 from ClickHouse/aku/perftest-fixes
Performance comparison fixes
2020-04-03 13:01:18 +03:00
Alexander Kuzmenkov
882e0d8b4e
Update compare.sh 2020-04-03 13:00:23 +03:00
Alexander Kuzmenkov
7a1d40507a fix more tests 2020-04-03 12:55:22 +03:00
alesapin
763669f3dc Better test and correct access rights 2020-04-03 12:53:31 +03:00
alesapin
4902346f86 Merge branch 'master' into alter_rename_column 2020-04-03 12:00:15 +03:00
alesapin
4fa6c2f63d Rename parameter 2020-04-03 11:59:47 +03:00
alesapin
eea9845fc1
Merge pull request #9999 from vitlibar/fix-parallel-distributed-insert-select
Fix parallel distributed insert select
2020-04-03 11:46:32 +03:00
Mikhail
696b7670d4
Typo in docs (#10033) 2020-04-03 10:27:50 +03:00
alexey-milovidov
09d169294d
Update S3Common.cpp 2020-04-03 04:05:28 +03:00
Alexander Tokmakov
cb933a3d19 fix races in 01108_restart_replicas_rename_deadlock 2020-04-03 03:08:51 +03:00
Alexander Kuzmenkov
cd88b5380c Performance comparison fixes 2020-04-02 21:44:58 +03:00
alesapin
b7f9d03355 Remove unused method 2020-04-02 21:34:35 +03:00
alesapin
f741a583e5 Fix style 2020-04-02 21:33:17 +03:00