Commit Graph

8607 Commits

Author SHA1 Message Date
Azat Khuzhin
ed70ed6f71 Introduce connection_no_wait setting for MySQL engine.
This will allow to avoid superfluous sleep during query execution, since
this not only not desired behavoiur, but also may hang the server, since
if you will execute enough queries that will use MySQL database but will
not allow enough connections (or your MySQL server is too slow) then you
may run out of threads in the global thread pool.

Also note that right now it is possible to get deadlock when the mysql
pool is full, consider the following scenario:

- you have m1 and m2 mysql tables
- you have q1 and q2 queries, bot queries join m1 and m2
- q1 allocated connection for m1 but cannot allocate connection for m2
- q2 allocated connection for m2 but cannot allocate connection for m1
- but to resolve the lock one should give up on the locking while it is not possible right now...

And then you got no free threads and this:

    # grep -h ^202 /proc/$(pgrep clickhouse-serv)/task/*/syscall  | cut -d' ' -f2 | sort | uniq -c | sort -nr | head
       1554 0x7ffb60b92fe8 # mutex in mysqlxx::PoolWithFailover::get
       1375 0x7ffb9f1c4748 # mutex in ::PoolEntryHelper::~PoolEntryHelper from DB::MultiplexedConnections::invalidateReplica
       1160 0x7ffb612918b8 # mutex in mysqlxx::PoolWithFailover::get
         42 0x7ffb9f057984 # mutex in ThreadPoolImpl<std::__1::thread>::worker

    *NOTE: 202 is a `futex` with WAIT*

(Went with `syscall` because debugging 10k+ threads is not easy, and
eventually it may TRAP)
2021-09-02 22:23:37 +03:00
Alexey
7667a20936 Russian fixes 2021-09-02 18:44:37 +00:00
Alexey
d9aee1bf7b Merge branch 'alexey-sm-DOCSUP-13375-document-CREATE-DROP-FUNCTION' of https://github.com/lehasm/ClickHouse into alexey-sm-DOCSUP-13375-document-CREATE-DROP-FUNCTION 2021-09-01 18:37:42 +00:00
Alexey
610257dcd2 Translated to Russian 2021-09-01 18:36:47 +00:00
Alexey
299fc2604a Example fixed 2021-09-01 18:36:35 +00:00
alexey-milovidov
ff0b332c24
Update custom-partitioning-key.md 2021-09-01 20:53:06 +03:00
alexey-milovidov
4699386470
Update mergetree.md 2021-09-01 20:52:05 +03:00
zhongyuankai
dfdf262f8b Merge branch 'master' into DOCSUP-13927-document-system_views 2021-08-31 21:35:01 +08:00
zhongyuankai
bc32baffac fix doc system views 2021-08-31 21:33:21 +08:00
zhongyuankai
b946815f35 fix doc system views 2021-08-31 21:29:40 +08:00
zhongyuankai
fd9d766a44 fix doc system views 2021-08-31 21:28:38 +08:00
zhongyuankai
1a088e36c6 fix doc system views 2021-08-31 21:25:46 +08:00
romanzhukov
061a4c4a27 Fix PR comment. 2021-08-31 14:55:46 +03:00
zhongyuankai
d4d72d9346 add doc system views 2021-08-31 17:42:04 +08:00
Maksim Kita
bcb826df4d
Merge pull request #28162 from olgarev/revolg-DOCSUP-13597-Right_and_full_join_for_MergeJoin
DOCSUP-13597: RIGHT and FULL join for MergeJoin
2021-08-31 12:07:16 +03:00
Maksim Kita
741223ce52
Merge pull request #28115 from qianmoQ/translation-docs-zh
Translate documentation for database engines
2021-08-31 12:02:01 +03:00
qianmoQ
13a96e7819 Add dbm to gui 2021-08-31 09:59:07 +08:00
qianmoQ
dba7739f48 Fix document inline errors 2021-08-31 09:53:39 +08:00
kssenii
335b6f12fd Fix 2021-08-30 20:59:03 +03:00
Onehr7
87b026aa43
Update in.md 2021-08-30 20:08:33 +08:00
Maksim Kita
243b845dc0
Merge pull request #28314 from olgarev/revolg-DOCSUP-13934-kill_query_for_mysql
DOCSUP-13934: Support MySQL KILL QUERY
2021-08-29 23:20:30 +03:00
olgarev
60d85d36bd
Update docs/en/interfaces/mysql.md 2021-08-29 21:24:52 +03:00
olgarev
d78dd54e16 Initial 2021-08-29 18:17:41 +00:00
Dmitriy
c9db269569 Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-13590-document_the_getserverport_function 2021-08-29 19:00:29 +03:00
Kseniia Sumarokova
7784f4ebb0
Merge pull request #28268 from infinivision/hdfs_namenode_ha
configable LIBHDFS3_CONF, refers to #8159
2021-08-29 12:25:42 +03:00
Maksim Kita
d77f243651
Merge pull request #28271 from kozlek/patch-1
doc: Warn about MV using column names during insertion
2021-08-28 23:20:55 +03:00
Maksim Kita
c1538586aa
Merge pull request #27964 from sevirov/sevirov-DOCSUP-13329-add_complexkeyrangehashed_dictionary
DOCSUP-13329: Add ComplexKeyRangeHashed dictionary
2021-08-28 23:14:29 +03:00
tavplubix
7fce331475
Merge pull request #28103 from sevirov/sevirov-DOCSUP-13434-document_the_serveruuid_function
DOCSUP-13434: Document the serverUUID() function
2021-08-28 17:17:01 +03:00
Dmitriy
918ddc6c82
Update docs/ru/sql-reference/functions/uuid-functions.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-28 11:55:54 +03:00
Dmitriy
554e51b13a
Update docs/en/sql-reference/functions/uuid-functions.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-28 11:54:41 +03:00
Zhichang Yu
ef1994f420 set env LIBHDFS3_CONF, refers to ClickHouse#8159 2021-08-28 09:16:48 +08:00
Dmitriy
81fdacf96e Translate to Russian
Перевел на русский язык.
2021-08-27 21:50:31 +03:00
Dmitriy
d023e9c891
Update docs/ru/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-layout.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-27 21:07:59 +03:00
Vitalii S
f75d93e97e
Fixed few typos 2021-08-27 13:48:19 -04:00
Thomas Berdy
e5511944bc
doc: Warn about MV using column names during insertion 2021-08-27 18:40:35 +02:00
qianmoQ
af84be6009
Merge branch 'ClickHouse:master' into translation-docs-zh 2021-08-27 19:33:10 +08:00
qianmoQ
3153836b6a Fix file problems with bad links 2021-08-27 19:32:21 +08:00
Aimiyoo
7264efc053
Update tutorial.md (#28235) 2021-08-27 12:54:15 +03:00
Dmitriy
fc9d334d8d Translate to Russian
Перевел на русский язык.
2021-08-26 22:36:24 +03:00
Dmitriy
7021d9bbe4
Update docs/en/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-layout.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-26 19:47:21 +03:00
Ilya Yatsishin
7f7ecb0c60
Merge branch 'master' into try-llvm-12 2021-08-26 18:58:49 +03:00
Nikita Mikhaylov
e42b029155
Merge pull request #28191 from eltociear/patch-2
Fix typo in parametric-functions.md
2021-08-26 17:52:31 +03:00
Kseniia Sumarokova
31afd7d09c
Merge pull request #28081 from kssenii/pg-conflict
Support `on conflict` for postgres engine
2021-08-26 16:30:30 +03:00
Ikko Ashimine
abeb1d03f1
Fix typo in parametric-functions.md
occured -> occurred
2021-08-26 21:42:18 +09:00
Alexey Boykov
d455cc0069
Merge pull request #27950 from sevirov/sevirov-DOCSUP-12065-document_queryid_and_initialqueryid_functions
DOCSUP-12065: Document queryID and initialQueryID functions
2021-08-26 14:35:08 +03:00
lehasm
b8296416f7
DOCSUP-13276: document print_query_id (#28106)
* EN description

* Example description updated

* Update docs/en/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/en/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Translated to ru

* Minor fixes

* Some Ru grammar and formatting fixed.

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/interfaces/cli.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-26 13:09:02 +03:00
Nikolai Kochetov
11d79ec24f
Merge pull request #27725 from olgarev/revolg-DOCSUP-12894-projections_translated
DOCSUP-12894: Projections settings
2021-08-26 11:26:58 +03:00
Dmitriy
121104c4f4
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 22:30:40 +03:00
Dmitriy
b62fb1e8cf
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 22:30:14 +03:00
Dmitriy
80b6097dae Fix typo
Убрал лишние отступы.
2021-08-25 20:33:00 +03:00
Dmitriy
0d39cd2fae
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:16:23 +03:00
Dmitriy
7295bf95b3
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:16:16 +03:00
Dmitriy
9ebe99b4b0
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:16:07 +03:00
Dmitriy
e8e60e1a60
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:15:57 +03:00
Dmitriy
5a50a1e9d9
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:15:28 +03:00
Dmitriy
f1be822a1a
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 20:14:04 +03:00
Artur Filatenkov
31c7e22bd6 correct style 2021-08-25 18:29:25 +03:00
olgarev
89a4ca27ae
Apply suggestions from code review
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 15:15:39 +03:00
Filatenkov Artur
884b51116d
Merge branch 'master' into master 2021-08-25 14:34:39 +03:00
Nikolay Degterinsky
bfdfe4dca4
Merge pull request #28055 from yingfc/master
Fix `star schema` in zh docs
2021-08-25 14:14:08 +03:00
gyuton
efeefcb437
DOCSUP-11587: Edited and translated to Russian (#27066)
* First Draft.

* Apply suggestions from code review

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Edited conrib.md

* Edited configuration-files.md

* Minor fixes

* Apply suggestions from code review

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/development/contrib.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Small changes

Co-authored-by: George <gyuton@yandex-team.ru>
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 13:23:18 +03:00
Roman Bug
3ce50c3b4a
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:48:23 +03:00
Roman Bug
4ddf7a2841
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:48:16 +03:00
Roman Bug
1b4ea01347
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:48:10 +03:00
Roman Bug
a8fd281318
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:47 +03:00
Roman Bug
feb149f0ee
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:39 +03:00
Roman Bug
40cb7171a8
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:32 +03:00
Roman Bug
af874dd7e0
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:26 +03:00
Roman Bug
62724a1566
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:20 +03:00
Roman Bug
82129dc2fe
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:14 +03:00
Roman Bug
f0573add40
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:07 +03:00
Roman Bug
73cf90a674
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:47:02 +03:00
Roman Bug
30cfd8bcc2
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:45:05 +03:00
Roman Bug
a151aff2ca
Update docs/ru/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:57 +03:00
Roman Bug
fd580de663
Update docs/ru/operations/server-configuration-parameters/settings.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:50 +03:00
Roman Bug
e3e9ac5c9c
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:43 +03:00
Roman Bug
c5b9bbb7e1
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:32 +03:00
Roman Bug
e5b600eadc
Update docs/en/sql-reference/functions/type-conversion-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:08 +03:00
Roman Bug
a140891ac0
Update docs/en/operations/server-configuration-parameters/settings.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:44:01 +03:00
Roman Bug
6caced9de2
Update docs/en/operations/server-configuration-parameters/settings.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-25 10:43:39 +03:00
Kseniia Sumarokova
994d3c04fe
Merge pull request #27919 from adevyatova/annadevyatova-DOCSUP-11585-datetime32
DOCSUP-11585: Document Date32 data type
2021-08-25 09:25:42 +03:00
qianmoQ
8205ac11e2 [Docs] Translate documentation for database engines 2021-08-25 11:51:43 +08:00
alexey-milovidov
b6d9fe6f88
Fix idiotic markup 2021-08-25 03:36:42 +03:00
olgarev
dfdeaa0be9 Initial 2021-08-24 22:40:50 +00:00
Dmitriy
3d6d61f7a5 Document the serverUUID() function
Задокументировал функцию (черновик).
2021-08-24 23:04:19 +03:00
Dmitriy
7d9180cd8c Update other-functions.md
Поправил предупреждение.
2021-08-24 20:08:39 +03:00
Dmitriy
77296573e6
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:55:53 +03:00
Dmitriy
980720112e
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:55:42 +03:00
Dmitriy
15e986b3d9
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:55:35 +03:00
Dmitriy
9a0b4f666f
Update docs/ru/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:52:38 +03:00
Dmitriy
dd5e303e29
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:52:28 +03:00
Dmitriy
41bf324f9c
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:51:56 +03:00
Dmitriy
77483f14c1
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:51:29 +03:00
Dmitriy
c491d1a587
Update docs/en/sql-reference/functions/other-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 19:51:20 +03:00
Roman Zhukov
30f404f4b6 Update setting ZooKeeper 2021-08-24 16:43:56 +00:00
Maksim Kita
23a2ce2019
Merge pull request #28040 from syominsergey/patch-11
fix some typos in docs
2021-08-24 19:06:08 +03:00
Yingfan Chen
e83675264b fix sql query 1-4.3 to be multilines 2021-08-24 22:38:33 +08:00
kssenii
0ec716292c Postgres ON CONFLICT 2021-08-24 12:37:32 +00:00
Anna
86fa28a897
Update docs/en/sql-reference/data-types/date32.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 14:32:05 +03:00
Anna
49f2706638
Update docs/en/sql-reference/data-types/date.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-24 14:31:45 +03:00