Commit Graph
1588 Commits
Author SHA1 Message Date
Alexey MilovidovandClaude Opus 4.6 aa7578d2d0 Fix relative config paths resolving against wrong directory after chdir
`BaseDaemon::initialize` performs up to 3 `chdir` calls during daemon
startup (to application path, log path, and cores directory). After
`initialize` returns, `Server::main` reads path settings from config.
If those paths are relative, they resolve against the cores directory
instead of the original startup directory.

Fix by capturing the original working directory at the start of
`BaseDaemon::initialize` and using it to resolve the main `path`
setting to absolute. All secondary path settings (like `user_files_path`,
`tmp_path`, `format_schema_path`, etc.) are resolved relative to the
now-absolute main `path`.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-07 06:09:00 +01:00
Alexey MilovidovandGitHub 1bc8e2eca6 Merge pull request #95919 from garrettthomaskth/startup-and-shutdown-console-log-level
add startup and shutdown console log level
2026-02-06 22:37:29 +01:00
Alexey Milovidov a41f649e4d Merge branch 'master' into clickhouse-help 2026-02-05 20:27:00 +01:00
Antonio Andelic 4d63898331 Fix global profiler values 2026-02-05 12:59:25 +01:00
Alexey MilovidovandClaude Opus 4.5 62ccfbd3aa Improve help output for ClickHouse applications
This commit improves the help output for all ClickHouse applications:

- Add `clickhouse help` command that lists all available subcommands
- Return exit code 0 for all help messages (previously some returned 1)
- Output help messages to stdout instead of stderr
- Use "clickhouse <cmd>" format instead of argv[0] in help messages
- Add dynamic `app_name` detection for `clickhouse client` and `clickhouse local`
  to show correct invocation name based on how the binary was called
- Add `--no-sudo` option for `clickhouse start` and `clickhouse restart`
  for environments without sudo (e.g., Docker containers)
- Add detailed help headers and footers for client and local with usage examples

Closes #58244

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-02-05 07:12:44 +01:00
garrettthomas 5af5872d23 fix instances of old name 2026-02-03 21:52:43 -08:00
garrettthomas 7a5e155c69 fix instances of old name 2026-02-03 16:41:07 -08:00
Garrett ThomasandGitHub 2e0fb48848 Merge branch 'master' into startup-and-shutdown-console-log-level 2026-02-03 15:47:20 -08:00
garrettthomas e128f6a237 fix names 2026-02-03 15:44:05 -08:00
garrettthomas 1c3ed8fbd5 add startup and shutdown console log level 2026-02-03 15:31:53 -08:00
Alexander TokmakovandGitHub e643ff0e22 Revert "Support auxiliary zookeeper for DatabaseReplicated." 2026-01-29 13:32:17 +01:00
Alex Bakharew 248a662f0c Merge branch 'master' into abakharew/code-coverage 2026-01-28 11:14:08 +01:00
Nikolay DegterinskyandGitHub 5a10a1c238 Merge pull request #91683 from RinChanNOWWW/replicated-db-aux-keeper
Support auxiliary zookeeper for `DatabaseReplicated`.
2026-01-28 09:23:55 +00:00
Sema ChecherindaandGitHub 12cc3730ff Merge pull request #93356 from ClickHouse/chesema-async-insert-quorum
quorum with async inserts
2026-01-27 21:38:58 +00:00
Alex Bakharew 684885ab96 Merge branch 'master' into abakharew/code-coverage 2026-01-26 19:06:20 +01:00
Antonio Andelic cb99079a8b Merge branch 'master' into less-shitty-memory-worker2 2026-01-26 16:42:21 +01:00
Antonio Andelic 90f604248d Cleanup 2026-01-26 11:12:47 +01:00
Antonio Andelic 773a2bfeed Merge branch 'master' into enable-implicit-int-float-conversion 2026-01-26 10:25:31 +01:00
RinChanNOWWW d0fd05ca59 Support auxiliary keeper for DatabaseReplicated. 2026-01-26 14:50:50 +08:00
Sema Checherinda 7dfe727452 quorum with async inserts 2026-01-23 16:39:23 +01:00
Antonio Andelic 5d7d52d826 Change dirty_decay_ms 2026-01-23 13:24:52 +01:00
Antonio Andelic d718baab40 Run jemalloc dirty pages purging in a different thread 2026-01-23 11:28:39 +01:00
Alex Bakharew 14770a3d13 Merge branch 'master' into abakharew/code-coverage 2026-01-23 11:04:59 +01:00
Antonio AndelicandGitHub cce8b410af Merge branch 'master' into enable-implicit-int-float-conversion 2026-01-22 17:00:59 +01:00
Raúl Marín dfc2929edd Tidy 2026-01-21 13:56:27 +01:00
Alex Bakharew c04a3650a7 Enable log_trace and profiler for llvm coverage 2026-01-20 16:23:18 +01:00
Antonio Andelic dc3d47d689 Enable implicit-int-float-conversion check 2026-01-20 09:35:57 +01:00
Antonio Andelic b2a2788f5e Fix build 2026-01-16 22:27:19 +01:00
Alexey Milovidov 4c9380b1e5 Merge branch 'master' into implicit-int-conversion 2026-01-16 18:31:01 +01:00
Antonio AndelicandGitHub c324e052d2 Merge branch 'master' into implicit-int-conversion 2026-01-15 10:00:07 +01:00
Hechem Selmi 7018ebbb14 remove accesses to settings through global_context. 2026-01-13 17:10:00 +00:00
Hechem Selmi fd217d5d4d fix top_level_domains setting name, 2026-01-13 15:03:41 +00:00
Hechem Selmi 77e3a0b732 Nikita's feedback. 2026-01-13 15:03:41 +00:00
Hechem Selmi 9217bf6725 add support for nested settings and create settings for most settings in Server.cpp. 2026-01-13 15:03:41 +00:00
Antonio Andelic 2832928464 Merge branch 'master' into implicit-int-conversion 2026-01-13 13:01:28 +01:00
Josh Carp 229f07a78f Improve posix compatibility for illumos.
- Guard RLIMIT_NPROC usage; not defined on illumos.
- Include sys/filio.h for FIONREAD on illumos (not in sys/ioctl.h).
- Use DNS::hostName() instead of DNS::thisHost() on illumos.
- Fix fpclass() call for long double.

See also:
- https://github.com/oxidecomputer/garbage-compactor/blob/master/clickhouse/patches/0018-Do-not-try-to-increase-the-thread-limit-via-proc.patch

Part of #23777.
2026-01-12 16:38:51 +00:00
Raúl MarínandGitHub aeb743df51 Revert "Improve posix portability for illumos." 2026-01-12 13:17:05 +01:00
Antonio Andelic 36c4767a2a Merge branch 'master' into implicit-int-conversion 2026-01-12 09:31:50 +01:00
Josh Carp b0a6dcb295 Improve posix portability for illumos.
- Guard RLIMIT_NPROC usage; not defined on illumos.
- Include sys/filio.h for FIONREAD on illumos (not in sys/ioctl.h).
- Use posix statvfs in decompressor.
- Use DNS::hostName() instead of DNS::thisHost() on illumos.
- Fix fpclass() call for long double.

See also:
- https://github.com/oxidecomputer/garbage-compactor/blob/master/clickhouse/patches/0017-Use-statvfs-on-illumos.patch
- https://github.com/oxidecomputer/garbage-compactor/blob/master/clickhouse/patches/0018-Do-not-try-to-increase-the-thread-limit-via-proc.patch

Part of #23777.
2026-01-11 05:08:58 +00:00
Raúl MarínandGitHub 12ef4d25d0 Merge pull request #93679 from Algunenano/build_clean
Cleanup some build flags
2026-01-09 15:06:32 +00:00
Raúl Marín 5a5673539d Missing files 2026-01-08 17:14:36 +01:00
Antonio Andelic 8884aa496a Merge branch 'master' into implicit-int-conversion 2026-01-08 13:32:51 +01:00
Eduard KaracharovandAzat Khuzhin dfddf71f25 MemoryWorker: force purging dirty pages on threshold exceeded
Make memory worker to be able to preventilvely purge jemalloc arenas,
if the size of dirty pages exceeds pre-configured threshold ratio
(relatively to `max_server_memory_usage`), even if the process memory
is below memory tracker limit.

Co-authored-by: Azat Khuzhin <[email protected]>
2026-01-08 08:24:09 +02:00
Antonio Andelic 1b27ae2c7b Merge branch 'master' into wide-integer-explicit-cast 2026-01-07 16:32:44 +01:00
Antonio Andelic 340be5a496 Enable implicit-int-conversion check 2026-01-07 16:30:57 +01:00
pufit f534122fb3 Fix build 2025-12-29 22:45:21 -05:00
pufit e8f282d62a Merge branch 'master' into ch-keeper-http-api-v1
# Conflicts:
#	programs/keeper-client/KeeperClient.cpp
#	programs/keeper-client/KeeperClient.h
#	programs/server/Server.cpp
#	src/Server/HTTPRequestHandlerFactoryMain.cpp
2025-12-29 19:46:51 -05:00
Azat KhuzhinandGitHub 56847ffa0a Merge pull request #81302 from zghong/fix-init-dns-resolver-after-clusters
Initialize `DNSResolver` before use to respect custom settings
2025-12-11 12:55:22 +00:00
Zhigao Hong 71571e286f Apply suggestions from code review 2025-12-11 01:31:00 +08:00
Azat KhuzhinandGitHub 45c9aad5c2 Merge pull request #91157 from azat/bg-sched-pool-introspection
Introduce system.background_schedule_pool{,_log} to improve introspection of background jobs
2025-12-01 18:10:13 +00:00