Commit Graph

4733 Commits

Author SHA1 Message Date
Konstantin Bogdanov
665b4a9d1d
Merge pull request #62829 from ClickHouse/jwt-auth-in-client
Support JWT in `clickhouse-client`
2024-06-26 07:56:28 +00:00
Alexey Milovidov
628359ddc9 Add memory limit for clickhouse-local by default 2024-06-26 02:29:04 +02:00
Alexander Tokmakov
43cb2f6af7 remove trash 2024-06-26 02:03:22 +02:00
Alexey Milovidov
0f07ad4b1e Merge branch 'master' into no-jemalloc-message 2024-06-25 23:59:07 +02:00
Alexey Milovidov
ad5a3f533f Merge branch 'master' into dont-load-outdated-parts-on-readonly 2024-06-25 22:24:08 +02:00
divanik
5da4b69d57 Tried to fix tests 2024-06-25 17:20:42 +00:00
Nikita Mikhaylov
782669a9fd Refactor 2024-06-25 14:23:37 +00:00
alesapin
12a129d838
Merge pull request #65545 from ClickHouse/add_customizeable_config_reloader_interval
Add ability to change config reload interval
2024-06-25 14:18:54 +00:00
Alexey Milovidov
029b24388b Merge branch 'master' into no-jemalloc-message 2024-06-25 03:11:38 +02:00
Alexey Milovidov
eda9b9d874 Do not load inactive parts on readonly disks 2024-06-25 01:37:46 +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
divanik
45507dd7d7 Merge branch 'master' of github.com:ClickHouse/ClickHouse into divanik/fix_clickhouse_disks_2 2024-06-24 09:58:31 +00:00
alesapin
fc10bf544f Merge remote-tracking branch 'origin/master' into add_customizeable_config_reloader_interval 2024-06-24 11:38:02 +02:00
Robert Schulze
d6dfbe2762
Merge remote-tracking branch 'ClickHouse/master' into fix/DEFAULT_MARK_CACHE_MAX_SIZE 2024-06-24 09:16:49 +00:00
Robert Schulze
322ab9f0d0
Merge pull request #65584 from rschu1ze/comp_expr_cache_settings
Show compiled expressions cache settings in `system.server_settings`
2024-06-23 20:30:20 +00:00
Denny Crane
a6a3991f39 comment out more default settings 2024-06-23 16:51:36 -03:00
Alexey Milovidov
8d75fd53b2 Merge branch 'master' of github.com:ClickHouse/ClickHouse into no-jemalloc-message 2024-06-23 21:34:55 +02:00
Alexey Milovidov
d2e230744d
Merge pull request #65494 from ClickHouse/strict-parsing-in-keeper-client
Strict parsing in keeper client
2024-06-23 19:22:06 +02:00
Robert Schulze
4e1a68f33d
Show compiled expressions cache settings size in system.server_settings 2024-06-23 10:55:52 +00:00
Alexander Tokmakov
6b994b81a1 fix 2024-06-23 03:35:58 +02:00
Azat Khuzhin
6dc68983e7 Fix keeper with non-system-wide directories
Otherwise it still tries to access default system-wide directory on
config reloading:

    2024.06.22 20:36:19.860615 [ 31600 ] {} <Error> Application: std::exception. Code: 1001, type: std::__1::__fs::filesystem::filesystem_error, e.what() = filesystem error: in create_directories: Permission denied ["/var/lib/clickhouse-keeper"], Stack trace (when copying this message, always include the lines below):

    0. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/exception:141: std::runtime_error::runtime_error(String const&) @ 0x0000000016f16a17
    1. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/string:1499: std::system_error::system_error(std::error_code, String const&) @ 0x0000000016f1d09f
    2. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__filesystem/filesystem_error.h:42: std::__fs::filesystem::filesystem_error::filesystem_error[abi:v15000](String const&, std::__fs::filesystem::path const&, std::error_code) @ 0x000000000b639ed2
    3. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__filesystem/filesystem_error.h:90: void std::__fs::filesystem::__throw_filesystem_error[abi:v15000]<String&, std::__fs::filesystem::path const&, std::error_code const&>(String&, std::__fs::filesystem::path const&, std::error_code const&) @ 0x0000000016ebaf96
    4. /src/ch/clickhouse/contrib/llvm-project/libcxx/src/filesystem/filesystem_common.h:173: std::__fs::filesystem::detail::(anonymous namespace)::ErrorHandler<bool>::report(std::error_code const&) const @ 0x0000000016ebe416
    5. /src/ch/clickhouse/contrib/llvm-project/libcxx/src/filesystem/operations.cpp:1030: std::__fs::filesystem::__create_directories(std::__fs::filesystem::path const&, std::error_code*) @ 0x0000000016ebec3d
    6. /src/ch/clickhouse/contrib/llvm-project/libcxx/src/filesystem/filesystem_common.h:161: std::__fs::filesystem::__create_directories(std::__fs::filesystem::path const&, std::error_code*) @ 0x0000000016ebed0e
    7. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/string:1499: DB::ConfigProcessor::savePreprocessedConfig(DB::ConfigProcessor::LoadedConfig&, String) @ 0x00000000128362b3
    8. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/string:1499: DB::ConfigReloader::reloadIfNewer(bool, bool, bool, bool) @ 0x000000001283c085
    9. /src/ch/clickhouse/src/Common/Config/ConfigReloader.cpp:33: DB::ConfigReloader::ConfigReloader(std::basic_string_view<char, std::char_traits<char>>, std::vector<String, std::allocator<String>> const&, String const&, zkutil::ZooKeeperNodeCache&&, std::shared_ptr<Poco::Event> const&, std::function<void (Poco::AutoPtr<Poco::Util::AbstractConfiguration>, bool)>&&, bool) @ 0x000000001283b457
    10. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x000000000b686ecd
    11. /src/ch/clickhouse/base/poco/Util/src/Application.cpp:0: Poco::Util::Application::run() @ 0x0000000014afb156
    12. /src/ch/clickhouse/programs/keeper/Keeper.cpp:165: DB::Keeper::run() @ 0x000000000b68317e
    13. /src/ch/clickhouse/base/poco/Util/src/ServerApplication.cpp:132: Poco::Util::ServerApplication::run(int, char**) @ 0x0000000014b0faf2
    14. /src/ch/clickhouse/programs/keeper/Keeper.cpp:0: mainEntryClickHouseKeeper(int, char**) @ 0x000000000b68227e
    15. /src/ch/clickhouse/programs/main.cpp:0: main @ 0x00000000061d6204
    16. ? @ 0x00007ffff7dc2c88
    17. ? @ 0x00007ffff7dc2d4c
    18. _start @ 0x00000000061d502e

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-06-22 20:50:27 +02:00
Azat Khuzhin
b013d95fd5 Provide keeper override for local development (rewrite path to current directory)
The same way like clickhouse-server has

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-06-22 20:50:27 +02:00
Alexey Milovidov
36037d28f8 Merge branch 'master' into no-jemalloc-message 2024-06-22 20:30:59 +02:00
Azat Khuzhin
ba99955f11 Add missing logger directives into config.xml
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-06-22 17:54:14 +02:00
Denny Crane
a902d37615 resolve ambiguity in MARK_CACHE_SIZE default settings 2024-06-21 15:39:57 -03:00
alesapin
104dc8fa3e Fix server settings 2024-06-21 19:16:27 +02:00
divanik
504cc3b090 Fix some tests 2024-06-21 16:27:21 +00:00
alesapin
0dc01f4a94 Add ability to change config reload interval 2024-06-21 18:24:20 +02:00
Alexey Milovidov
54c0bdee09 Fix style 2024-06-21 16:00:20 +02:00
Alexey Milovidov
5c541af995 Do not print jemalloc message at startup 2024-06-21 15:15:13 +02:00
Pablo Marcos
932e4bf982
Merge pull request #65381 from pamarcos/system-error-log
Add system.error_log
2024-06-21 13:04:23 +00:00
divanik
d933d63c3b Merge branch 'master' of github.com:ClickHouse/ClickHouse into divanik/fix_clickhouse_disks_2 2024-06-21 12:22:10 +00:00
pufit
3786ca72d0 docs, review fixes 2024-06-21 02:02:30 -04:00
Konstantin Bogdanov
610b97d344
Merge pull request #65510 from ClickHouse/local/prompt-without-hostname
clickhouse-local: remove hostname from prompt
2024-06-21 01:52:55 +00:00
pufit
e1248d8d4d Merge branch 'master' into pufit/startup-scripts
# Conflicts:
#	src/Core/ServerSettings.h
2024-06-20 21:32:11 -04:00
Konstantin Bogdanov
3b7d69a2fe
Remove hostname from clickhouse-local prompt 2024-06-21 00:46:33 +02:00
Sema Checherinda
e36a641a80 Merge branch 'master' into protocols-tls-extend-params 2024-06-20 19:02:12 +02:00
Pablo Marcos
71f8937abd Merge branch 'master' into system-error-log 2024-06-20 16:33:44 +00:00
Alexey Milovidov
a447a25a9d Strict parsing in Keeper client 2024-06-20 15:17:05 +02:00
Alexey Milovidov
5edf7dd9df Strict parsing in Keeper client 2024-06-20 15:13:20 +02:00
divanik
b4ba760874 Merge branch 'master' of github.com:ClickHouse/ClickHouse into divanik/fix_clickhouse_disks_2 2024-06-19 12:57:05 +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
Konstantin Bogdanov
db541b95c7
Fix client failure 2024-06-19 04:29:47 +02:00
Konstantin Bogdanov
782bb68a48
Lint 2024-06-19 04:29:47 +02:00
Konstantin Bogdanov
28756a493e
Refactor with exceptions 2024-06-19 04:29:47 +02:00
Konstantin Bogdanov
f2583db8a1
Support JWT in clickhouse-client 2024-06-19 04:29:46 +02:00
alesapin
85771099f4
Merge pull request #64061 from ClickHouse/workload-for-merges
Workload classification for merges and mutations
2024-06-18 10:17:27 +00:00
Pablo Marcos
216d26987a Add test and config changes for system.error_log 2024-06-18 08:37:40 +00:00
Pablo Marcos
0ae0ca1a95 Add system.error_log that flushes periodically system.errors to disk 2024-06-18 08:37:40 +00:00
divanik
6f841d89e7 Fix tests 2024-06-17 17:41:28 +00:00
divanik
253d745ac5 Merge branch 'master' of github.com:ClickHouse/ClickHouse into divanik/fix_clickhouse_disks_2 2024-06-17 11:41:59 +00:00
Alexey Milovidov
204b27d0f0 Merge branch 'master' into async-load-by-default 2024-06-17 05:21:13 +02:00
Sergei Trifonov
a17d9d92d7
Merge branch 'master' into workload-for-merges 2024-06-14 18:35:43 +02:00
divanik
752bd00784 Corrected problems and tests 2024-06-14 13:54:12 +00:00
divanik
4ace4006d2 Add documentation for new features in interactive client 2024-06-14 13:02:41 +00:00
Kseniia Sumarokova
321f62d257
Merge pull request #64412 from ClickHouse/unite-storages3-and-disks3-settings
Refactor s3 settings (move settings parsing into single place)
2024-06-14 12:35:47 +00:00
Alexander Tokmakov
bc8c8ffd55
Merge pull request #64986 from ClickHouse/fix_init_order
Fix initialization order (ServerUUID/ZooKeeper)
2024-06-14 12:32:05 +00:00
divanik
2824ca64e0 Tests and code style 2024-06-14 11:06:56 +00:00
divanik
b8992f0397 Create integration test 2024-06-13 19:14:16 +00:00
kssenii
fb32a99578 Initialize global trace collector for Poco::ThreadPool 2024-06-13 19:20:58 +02:00
Duc Canh Le
82f12ac006 Merge branch 'master' into fix_keeper_default_global_pool
Fix CI
2024-06-13 15:16:58 +00:00
Kseniia Sumarokova
ef8810a60d
Merge branch 'master' into unite-storages3-and-disks3-settings 2024-06-13 14:24:04 +02:00
serxa
08a293a91f Merge branch 'master' into workload-for-merges 2024-06-11 21:33:25 +00:00
Antonio Andelic
f51ed35200 Merge branch 'master' into fix-gwp-asan 2024-06-11 16:57:50 +02:00
divanik
78325c89cc Change help message 2024-06-10 16:17:36 +00:00
kssenii
26ac82dd5c Merge remote-tracking branch 'origin' into unite-storages3-and-disks3-settings 2024-06-10 18:05:52 +02:00
kssenii
571ddb66df Merge remote-tracking branch 'origin/master' into named-collecitons-in-keeper 2024-06-10 13:17:32 +02:00
Antonio Andelic
c2c5992434 Merge branch 'master' into fix-gwp-asan 2024-06-10 12:50:08 +02:00
Antonio Andelic
25fa5d87f3
Merge pull request #64896 from ClickHouse/fix-global-trace-collector
Fix global trace collector
2024-06-10 09:09:07 +00:00
Antonio Andelic
ee46c82dc2 Merge branch 'master' into fix-gwp-asan 2024-06-10 09:39:13 +02:00
Alexander Tokmakov
01ece14035 fix initialization order (ServerUUID/ZooKeeper) 2024-06-07 16:23:40 +02:00
serxa
7594e06ea2 Merge branch 'master' into workload-for-merges 2024-06-07 13:58:41 +00:00
divanik
3f7a9738fe Fix compilation bug 2024-06-07 09:04:28 +00:00
divanik
d7c70d029e Ignore caches and encrypted 2024-06-06 16:56:30 +00:00
Azat Khuzhin
833f031721 Handle logs from rocksdb by ClickHouse internal logging
Someone may not know about /path/to/rocksdb/LOG, and besides it requires
an access to data dir, instead of logs dir.

v2: fix use-after-free due to destruction order (https://s3.amazonaws.com/clickhouse-test-reports/64856/8cefc1a1ba5ddfdda033694a14e1f1847d497092/stateless_tests__asan__[2_4]/stderr.log)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-06-06 17:47:39 +02:00
Antonio Andelic
bfb1c4c793 better 2024-06-06 11:29:42 +02:00
Antonio Andelic
1d3cf17053 Fix global trace collector 2024-06-06 11:18:31 +02:00
Antonio Andelic
9b16cadbdd Merge branch 'master' into fix-gwp-asan 2024-06-06 09:45:28 +02:00
pufit
86bbcb0037 Startup scripts 2024-06-06 01:42:07 -04:00
divanik
22a1e11520 Merge branch 'master' of github.com:ClickHouse/ClickHouse into divanik/fix_clickhouse_disks_2 2024-06-05 18:19:10 +00:00
kssenii
f0974f02ee Merge remote-tracking branch 'origin/master' into unite-storages3-and-disks3-settings 2024-06-05 13:11:20 +02:00
Alexey Milovidov
7c76341e03 Merge branch 'master' into async-load-by-default 2024-06-05 04:49:58 +02:00
Antonio Andelic
5c9aac484d Avoid taking lock 2024-06-04 14:57:43 +02:00
Duc Canh Le
ebf506aef4 Merge branch 'master' into fix_keeper_default_global_pool
Try fixing CI
2024-06-04 08:30:55 +00:00
Antonio Andelic
b2c0917925 Merge branch 'master' into fix-gwp-asan 2024-06-04 09:15:02 +02:00
kssenii
cd3d99a0eb Merge remote-tracking branch 'origin/master' into unite-storages3-and-disks3-settings 2024-06-03 17:37:33 +02:00
Raúl Marín
ee416a6862
Merge pull request #63723 from Algunenano/ifunction_column_size
Add a bunch of important asserts
2024-06-03 14:04:02 +00:00
Konstantin Bogdanov
aa040c506a
Merge pull request #64521 from azat/bash-completion/fix-settings
Fix bash completion for settings
2024-06-03 13:51:56 +00:00
Antonio Andelic
5df91804f6 Add probability setting for GWPAsan 2024-06-03 11:54:37 +02:00
Alexander Gololobov
8c59c5e897
Merge pull request #64628 from ClickHouse/speed_up_keeper_client_find
Speedup find_* keeper-client commands by making multiple async getChildren requests
2024-06-01 21:58:19 +00:00
divanik
439ac99897 Resolve several issues 2024-05-31 13:10:42 +00:00
Alexander Gololobov
9d92d238ad More tidy fixes 2024-05-31 10:15:46 +02:00
Alexander Gololobov
dd5c151d86
clang-tidy fix 2024-05-30 21:22:07 +02:00
kssenii
0571485ef6 Merge remote-tracking branch 'origin/master' into named-collecitons-in-keeper 2024-05-30 19:45:01 +02:00
kssenii
83c0c9bcde Move everything to NamedCollecitonFactory 2024-05-30 19:43:05 +02:00
kssenii
74c59fa92a Merge remote-tracking branch 'origin/master' into unite-storages3-and-disks3-settings 2024-05-30 16:55:22 +02:00
divanik
75c484a73b Corrected build and some integrations tests 2024-05-30 14:07:25 +00:00
Alexander Gololobov
3da65bb0a2
Apply suggestions from code review
Co-authored-by: Konstantin Bogdanov <thevar1able@users.noreply.github.com>
2024-05-30 15:11:35 +02:00
Pratima Patel
3bfe259ea0 Fix the documentation for config property users_without_row_policies_can_read_rows which is true by default now as per pull request 58584 2024-05-30 08:52:00 -04:00
Alexander Gololobov
abbfbe0472 Build fix 2024-05-30 14:40:27 +02:00