Commit Graph

1652 Commits

Author SHA1 Message Date
Yakov Olkhovskiy
698b5ce7fa Merge branch 'master' into ci-fuzzer-enable 2024-07-14 05:31:56 +00:00
Alexander Tokmakov
243edcc8aa add logs and metrics about rejected connections in Poco 2024-07-12 01:11:18 +02:00
Nikita Mikhaylov
7ff447de68 Modify the code for build with new libcxx
(cherry picked from commit c896f0bf677bcc948d988cf83b2108e9f7cd761d)
2024-07-09 20:16:43 +00:00
Vitaly Baranov
6d0bf97476
Merge pull request #66067 from vitlibar/move-http-handler-stuff-to-separate-files
Move some of HTTPHandler stuff to separate source files in order to reuse it in PrometheusRequestHandler
2024-07-08 21:03:22 +00:00
Mikhail Filimonov
7cf38826af Fix detection of number of CPUs in containers
In the case when the 'parent' cgroup was used (i.e. name of cgroup was empty, which is common for containers)
ClickHouse was ignoring the CPU limits set for the container.
2024-07-08 18:12:34 +02:00
Yakov Olkhovskiy
a9aaa2ab78 Merge remote-tracking branch 'origin/master' into ci-fuzzer-enable 2024-07-06 00:48:09 +00:00
Vitaly Baranov
eb7c2e4341 Remove unnecessary "const" from return type. 2024-07-05 21:42:57 +02:00
serxa
3fa5ad92b4 rename IHTTPSessionDataHooks methods 2024-07-05 10:33:22 +00:00
serxa
d7ee82b3fe Merge branch 'master' into s3-streams-scheduler 2024-07-05 10:08:45 +00:00
Robert Schulze
2c94218120
Random header fixes for libcxx 16 2024-07-04 15:39:50 +00:00
Vitaly Baranov
bf56ad69dd Make Context::setCurrentRoles() check that new current roles are granted in order to make HTTPHandler's implementation easier. 2024-07-03 21:23:09 +02:00
Raúl Marín
af4844b284
Merge pull request #61661 from Algunenano/jeaiii
Test Jeaiii's itoa
2024-07-03 16:56:56 +00:00
Raúl Marín
2a1c13b070 Add comment about the changes 2024-07-03 14:25:31 +02:00
Azat Khuzhin
ef24f51789 Fix handling of SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE with zero timeout
Previously if you were using socket without timeout it wasn't able to
handle SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE, and even though sockets
without timeouts is an odd thing (but it is possible - [1]), it still
may be possible somewhere.

  [1]: https://github.com/ClickHouse/ClickHouse/pull/65917

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-07-01 19:33:39 +02:00
Konstantin Bogdanov
bbfdf1698f
Fix 2024-06-28 05:18:17 +02:00
Raúl Marín
c9b828c078 Merge remote-tracking branch 'blessed/master' into jeaiii 2024-06-25 14:06:33 +02:00
Sema Checherinda
fb2f0e78f7
Merge pull request #63985 from ianton-ru/protocols-tls-extend-params
More parameters for tls layer in protocols
2024-06-24 12:41:56 +00:00
Raúl Marín
636f2506f0 Silence tidy 2024-06-24 11:35:29 +02:00
Raúl Marín
df8341c447 Try to improve low number itoa 2024-06-21 18:30:45 +02:00
Raúl Marín
c70977bf1d Merge remote-tracking branch 'blessed/master' into jeaiii 2024-06-21 17:26:11 +02:00
Sema Checherinda
e36a641a80 Merge branch 'master' into protocols-tls-extend-params 2024-06-20 19:02:12 +02:00
Sergei Trifonov
e97c730e85
Revert "Use 1MB HTTP buffers to avoid frequent send syscalls" 2024-06-20 17:06:18 +02:00
Robert Schulze
ddb1ebe66a
Merge pull request #65396 from rschu1ze/revert-obsolete-openssl-fix
Move a leaksan suppression from Poco into OpenSSL
2024-06-19 20:47:28 +00:00
Kseniia Sumarokova
784f66cf2f
Merge pull request #65239 from ClickHouse/tracing-try-2
Initialize global profiler for Poco::ThreadPool (needed for keeper, etc)
2024-06-19 09:00:46 +00:00
Robert Schulze
466aec959a
Revert "Suppress false positives in leaksan"
This reverts commit 2418d673f1.
2024-06-19 08:30:44 +00:00
serxa
7a01b8189c fix typo, renames 2024-06-19 00:49:21 +00:00
Sergei Trifonov
f1cf1751f3
Merge pull request #65028 from ClickHouse/fix-poco-send-http-buffer
Use 1MB HTTP buffers to avoid frequent send syscalls
2024-06-18 18:38:38 +00:00
Robert Schulze
e3818a9794
Re-enable session caching 2024-06-17 12:16:02 +00:00
Sergei Trifonov
e15b1fbb45
Merge branch 'master' into s3-streams-scheduler 2024-06-14 18:12:19 +02:00
kssenii
fb32a99578 Initialize global trace collector for Poco::ThreadPool 2024-06-13 19:20:58 +02:00
serxa
19c2f7109f Merge branch 'master' into s3-streams-scheduler 2024-06-12 14:51:13 +00:00
serxa
aad55ab55f IO scheduling on HTTP session level 2024-06-12 14:49:06 +00:00
Duc Canh Le
79a660c018 Merge branch 'master' into bump_fmt_9
Fix CI
2024-06-11 03:39:03 +00:00
Duc Canh Le
1fb5b35dd9 explicitly define formatter for StringRef
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-06-10 13:53:25 +00:00
serxa
ab79addee4 use 1MB HTTP buffers to avoid frequnet send syscalls 2024-06-09 12:55:31 +00:00
Duc Canh Le
de5258128e update fmtlib version to 9.1.0
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-06-07 06:44:36 +00:00
Alexey Milovidov
84914f2c3d Remove iostream_debug_helpers 2024-06-04 05:48:45 +02:00
Robert Schulze
f182920c98
Merge remote-tracking branch 'ClickHouse/master' into redundant-inline 2024-05-26 14:21:47 +00:00
Anton Ivashkin
983fa64e4f Fix CertificateReloader usage for custom protocols 2024-05-23 17:53:23 +02:00
ZhiHong Zhang
4b1c9adb3a
Merge branch 'ClickHouse:master' into gcmaster-parquet 2024-05-22 09:33:01 +08:00
Robert Schulze
a14e58ab88
Merge remote-tracking branch 'rschu1ze/master' into redundant-inline 2024-05-21 05:15:35 +00:00
Robert Schulze
6f56642567
Incorporate review feedback 2024-05-20 13:14:37 +00:00
Robert Schulze
08091006aa
Ignore exception when checking for cgroupsv2 2024-05-19 20:38:23 +00:00
Anton Ivashkin
b8389925a4 Merge master 2024-05-19 16:12:51 +02:00
Robert Schulze
113bb00005
Fix clang-tidy "-readability-redundant-inline-specifier" 2024-05-19 10:23:58 +00:00
Anton Ivashkin
92df0f9737 More parameters for tls layer in protocols 2024-05-16 18:34:17 +02:00
qiangxuhui
47b7d3748d Fix code for loongarch64
Fix `base/poco` and `contrib/openssl-cmake` based on code review comments(https://github.com/ClickHouse/ClickHouse/pull/61509).
2024-05-14 07:45:57 +00:00
qiangxuhui
97a5de9653 Initial support for loongarch64
Make ClickHouse compilable and runnable on loongarch64

So far only basic functionality was tested (on real hw),
clickhouse server runs, exceptions works, client works,
simple tests works.
2024-05-14 07:45:26 +00:00
copperybean
8fb89cec9f fix build
Change-Id: I57f025b17a04e2c5dded3f18e7f477841287a2c2
2024-05-11 15:45:06 +08:00
Alexey Milovidov
ced5cc1644 Useless changes 2024-05-10 05:55:04 +02:00
Alexey Milovidov
426a51b624 Useless changes 2024-05-10 04:53:29 +02:00
Alexey Milovidov
c17a3bb944 Useless changes 2024-05-10 03:31:40 +02:00
Alexey Milovidov
97f24f38b8 Useless changes 2024-05-09 03:14:26 +02:00
Alexey Milovidov
1d69518c4d Useless changes 2024-05-09 02:07:04 +02:00
Alexey Milovidov
95f12ef274 Useless changes 2024-05-09 01:08:33 +02:00
Alexey Milovidov
b25defe17a Fixing some clang-tidy warnings 2024-05-08 22:38:52 +02:00
Robert Schulze
5520f26f18
Incorporate review feedback 2024-05-02 08:09:23 +00:00
Robert Schulze
bf7802025f
Merge remote-tracking branch 'rschu1ze/master' into cgroup-no-subtreecontrol 2024-05-02 08:04:50 +00:00
Robert Schulze
2510fc85b0
Recursively check cgroups.controllers files for memory controllers 2024-04-24 10:24:24 +00:00
Alexey Katsman
ca4e2f581a Add columns for values used in the formatting message into system.text_log 2024-04-23 17:26:56 +01:00
Vitaly Baranov
d12608f366
Merge pull request #62669 from slvrtrn/http-interface-role-query-param
Add `role` query parameter to the HTTP interface
2024-04-17 16:39:49 +00:00
slvrtrn
0718a31921 Add NameValueCollection::getAll method 2024-04-16 18:50:39 +02:00
Robert Schulze
7dc05d092b
Merge remote-tracking branch 'rschu1ze/master' into be-less-boring-32 2024-04-15 16:35:10 +00:00
Alexander Tokmakov
a691d30177
Merge pull request #61610 from ClickHouse/fix-data-race-between-move-partition-and-merges
Cancel merges before removing moved parts
2024-04-10 18:19:42 +00:00
loselarry
7774a2a313 chore: fix some comments
Signed-off-by: loselarry <bikangning@yeah.net>
2024-04-10 17:21:25 +08:00
Nikita Taranov
a2147b8ded
Merge branch 'master' into keep_alive_max_reqs 2024-04-09 21:32:36 +02:00
Sema Checherinda
04ea8a85f2
Merge pull request #62249 from ClickHouse/chesema-keep-alive-send-and-receive
several fixes for client's keep alive connections
2024-04-09 10:27:28 +00:00
Robert Schulze
d30b48f54e
Disable session caching to work around tsan races 2024-04-08 11:16:06 +00:00
Robert Schulze
d8b1275e81
Fix test_dictionaries_all_layouts_separate_sources
Fixes:
    <Information> ReadWriteBufferFromHTTP: Failed to make request to `https://localhost:8889/`. Error: SSL Exception: error:0A000126:SSL routines::unexpected eof while reading. Failed at try 9/10. Will retry with current backoff wait is 10000/10000 ms.

--> https://github.com/openssl/openssl/discussions/22690#discussioncomment-7534909
2024-04-08 11:04:28 +00:00
Robert Schulze
2418d673f1
Suppress false positives in leaksan 2024-04-08 11:03:43 +00:00
Sema Checherinda
0bce544779
Update base/poco/Net/src/HTTPClientSession.cpp
Co-authored-by: Nikita Taranov <nikita.taranov@clickhouse.com>
2024-04-05 23:07:00 +02:00
Sema Checherinda
ae3a199939 support max requests for keep alive 2024-04-05 00:37:29 +02:00
Sema Checherinda
5cab8d185f more details 2024-04-05 00:37:19 +02:00
Sema Checherinda
dd852da339 add more debug logs 2024-04-05 00:30:03 +02:00
Raúl Marín
76b6c125ff Remove boost dep in wide integers when possible 2024-04-03 20:36:29 +02:00
Sema Checherinda
8e6cbc8b31 several fixes for client's keep alive connections 2024-04-03 15:13:59 +02:00
Alexey Milovidov
a7c490e1df Fix build with clang-19 (master) 2024-04-03 05:42:41 +02:00
Yakov Olkhovskiy
8357bc7b1b fix build 2024-03-31 23:33:35 +00:00
János Benjamin Antal
cf5517a099 Cancel merges during move/replace partition 2024-03-27 11:31:41 +00:00
Nikita Taranov
d7b34a80bb stash 2024-03-22 16:09:14 +00:00
Oxide Computer Company
6e260d9419 poco foundation: add illumos support 2024-03-21 11:15:43 +00:00
Alexey Milovidov
f8c7bcb60c
Merge pull request #61655 from oxidecomputer/36/poco-illumos
Restore poco SUN files
2024-03-21 05:34:03 +03:00
Raúl Marín
de76be248b Revert incorrect change on my part 2024-03-20 17:56:01 +01:00
Raúl Marín
225db5e253 Style 2024-03-20 17:04:52 +01:00
Raúl Marín
7ac0ebbaca Test jeaiii itoa 2024-03-20 16:11:12 +01:00
Oxide Computer Company
981c9e0c12 Restore poco SUN files
These were accidentally deleted as unused in
https://github.com/ClickHouse/ClickHouse/commit/44afecf083b2cfa3d77d2e227f
2024-03-20 14:09:35 +00:00
Raúl Marín
c98634ad8c Merge remote-tracking branch 'blessed/master' into nested_includes 2024-03-20 14:08:10 +01:00
Raúl Marín
6c7be89c61
Merge pull request #61100 from Algunenano/experiment_int128
30x faster printing for 256-bit integers
2024-03-20 12:32:26 +01:00
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Robert Schulze
0daaeeab78
Merge pull request #61406 from rschu1ze/enable-clang-tidy-in-headers
Enable clang-tidy in headers
2024-03-18 21:43:26 +01:00
Raúl Marín
a8ea0cbaa6 Merge remote-tracking branch 'blessed/master' into experiment_int128 2024-03-18 16:12:10 +01:00
Raúl Marín
4626a0b3a1 Merge remote-tracking branch 'blessed/master' into experiment_int128 2024-03-18 16:10:32 +01:00
Han Fei
8a54c85f3c
Merge pull request #61049 from hanfei1991/hanfei/check-limit-periodically
Check cgroups memory limit update periodically
2024-03-18 15:15:46 +01:00
Robert Schulze
c17536c3b3
Enable clang-tidy in headers 2024-03-18 08:00:09 +00:00
Raúl Marín
6f1b835a4e Fix comment 2024-03-14 20:46:54 +01:00
Robert Schulze
06d917fcf0
Merge pull request #61150 from rschu1ze/clang-tidy-list
Some clang-tidy fixes
2024-03-14 14:54:41 +01:00
Raúl Marín
b43d1c4eb5 Fix macro 2024-03-14 13:13:33 +01:00
Sema Checherinda
689c715408
Merge pull request #61309 from ClickHouse/chesema-fix-poco-tcp-server
fix data race in poco tcp server
2024-03-14 12:11:52 +01:00
Robert Schulze
3486b4a6e3
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-list 2024-03-14 10:44:20 +00:00
Robert Schulze
4e12b5dc91
Some fixups 2024-03-13 16:54:20 +00:00