Commit Graph

80 Commits

Author SHA1 Message Date
Alexey Milovidov
ab677b5ad0 Removed some trash 2020-01-10 19:47:56 +03:00
Alexey Milovidov
6e50290ec6 Merge branch 'master' into weiqxu-master 2020-01-10 19:41:29 +03:00
Weiqing Xu
de122fc282 Fix it removes PID file by mistake In Daemon
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

In Daemon mode, when the user start a new clickhouse, if there is old
runing process and the pid is same with the value in PID file, it will
not start. However it also remove the PID file of the old runing process by
mistake.

In this fix, it will not remove the pid file of old runing process when
it start failed.
2019-12-31 16:52:25 +08:00
Alexey Milovidov
48d126e88a Removed unrelated changes 2019-12-22 23:19:29 +03:00
Alexey Milovidov
e0000bef98 Added "system.stack_trace" table (development) 2019-12-22 20:20:33 +03:00
proller
09f3d68f6e Use logging in clickhouse-local. Use config options in command line in clickhouse-client (#5540)
* Try fix macos server run

* Doc macos build
 # Please enter the commit message for your changes. Lines starting

* CLICKHOUSE-3957 start wip

* tests wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* fix

* Making logger for clickhouse-local

* fixes

* wip

* wip

* wip

* wip

* clean

*      cf

* wip

* fix

* Update CMakeLists.txt

* Update argsToConfig.h

* Update argsToConfig.cpp

* Update ExtendedLogChannel.h

* Update OwnPatternFormatter.cpp
2019-06-14 17:00:37 +03:00
proller
263e69e861
Build fixes (FreeBSD port) (#4397) 2019-02-15 14:46:07 +03:00
objatie_groba
5f0eec91a3 Minor code style fix. V2 2019-02-02 17:23:48 +03:00
objatie_groba
92cc7b0ef8 Minor code style fix 2019-02-02 16:54:30 +03:00
objatie_groba
f1d90515a1 First try 2019-02-02 15:26:07 +03:00
proller
f1791e94e2
Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
Alexey Milovidov
ab5d76fc42 Fixed error introduced in #3553 and prevent it happening 2018-11-21 23:56:37 +03:00
Alexey Milovidov
06187e9a98 Comments [#CLICKHOUSE-2] 2018-11-21 20:27:13 +03:00
cekc
76c79929c3
fix typo in BaseDaemon doc
daemon has --errorlog-file cmd option, not --error-file
2018-09-21 16:42:32 +03:00
Alexey Milovidov
595bd32f41 Enabling -Wzero-as-null-pointer-constant [#CLICKHOUSE-2] 2018-08-26 04:41:08 +03:00
Alexey Milovidov
29a6a85ccf Enabling -Winconsistent-missing-destructor-override [#CLICKHOUSE-2] 2018-08-26 04:31:12 +03:00
Alexey Milovidov
e6e1ff4284 Enabling -Winconsistent-missing-destructor-override [#CLICKHOUSE-2] 2018-08-26 04:30:13 +03:00
proller
3a00be1aab fix 2018-08-21 21:35:47 +03:00
Alexey Milovidov
328c1387c0 Removed Poco::NumberFormatter [#CLICKHOUSE-2] 2018-08-20 22:35:04 +03:00
Alexey Milovidov
acb99b49df Merge branch 'master' into CLICKHOUSE-2910 2018-08-14 23:29:42 +03:00
alesapin
53b23e0113 CLICKHOUSE-3878: Add inherited fd's closing function 2018-08-12 15:23:22 +03:00
alesapin
dd01eb6b40 CLICKHOUSE-3878: Add odbc-bridge first version 2018-08-07 20:57:44 +03:00
Alexey Milovidov
5d00a23f47 Leave thread number in log in a consistent place #2482 2018-06-28 23:04:13 +03:00
Vitaliy Lyudvichenko
392f6e0c6c Print query_id in logs. Add own logging interface. [#CLICKHOUSE-2910] 2018-06-18 16:41:13 +03:00
Vitaliy Lyudvichenko
4cd230f85c Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-06-14 16:04:00 +03:00
Vitaliy Lyudvichenko
ac54e52fb3 Add server logs passing to client. [#CLICKHOUSE-2910] 2018-06-07 20:58:50 +03:00
Alexandr Krasheninnikov
8d273e776b Syslog logging support 2018-06-01 20:45:03 +03:00
proller
caf83a650e libs: compiling with msvc2017 (#1996)
* Allow use bundled *ssl library

* fix

* Add submodule

* Fixes

* fix

* fixes

* fixes

* fix

* fix

* update poco

* fix warnings

* fix

* fix

* Build fixes

* Build fixes

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* add bat

* no zookeeper in dbms

* update boost

* fixes

* fixes

* fix

* fix

* fix

* fix

* try fix

* try fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Better

* fix

* dh verbose

* fix

* dh verbose

* fix

* clean

* Update LocalDate.h

* Update LocalDateTime.h
2018-03-23 19:05:14 +03:00
proller
d6a1f8470f CLICKHOUSE-3553 Rebuild loggers on every config change (#1973)
* Macos test fix

* Fix freebsd build

* CLICKHOUSE-3553 Rebuild loggers on every config change

* rename clickhouse_common_configprocessor -> clickhouse_common_config; move Server/ConfigReloader.cpp -> Common/Config/

* CLICKHOUSE-3553 Set new level to all loggers on reload

* Dont use hash

* Update BaseDaemon.h
2018-02-28 23:34:25 +03:00
Alexey Milovidov
0e818311e0 Clarifications [#CLICKHOUSE-2] 2018-01-17 21:10:38 +03:00
proller
d97b2edc7c Make separate libs Common/ZooKeeper and Common/ConfigProcessor (#1749)
* Make separate libs Common/ZooKeeper and Common/ConfigProcessor
renamed:    dbms/src/Common/StringUtils.h -> dbms/src/Common/StringUtils/StringUtils.h

* Fix space

* Fix data in system.build_options

* merge

* merge
2018-01-15 22:07:47 +03:00
Andrey Urusov
d21a2a057b Graphite simplification 2017-11-23 13:29:11 +03:00
Alexey Milovidov
01e8adbfff Removed "experimental" namespace [#CLICKHOUSE-2]. 2017-11-20 07:15:43 +03:00
Vladimir Chebotarev
87cc80c30e libdaemon: Moved default graphite config name to constant. [#CHEBOTAREV-14] 2017-08-24 16:37:27 +03:00
Alexey Milovidov
4687a2730d Allow to override umask in config [#CLICKHOUSE-2]. 2017-08-18 04:00:13 +03:00
Vadim Skipin
e6344f9048 Extract handlers to allow reuse 2017-08-10 06:13:15 +03:00
aprudaev
1cd217ba56 Fix reload configuration memory leak (#892)
* On reload remove previous configuration from LayeredConfiguration.

* fix build
2017-06-19 16:31:55 +03:00
proller
bcb230ebc6 Fix incudes, move code from daemon/OwnPatternFormatter.h 2017-04-27 08:40:27 +03:00
Alexey Milovidov
41e97787e3 Less dependencies [#CLICKHOUSE-2]. 2017-04-16 08:40:17 +03:00
Alexey Milovidov
310736cd7e Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
Alexey Milovidov
09e3134bf4 Revert "Using C++17 [#CLICKHOUSE-3]."
This reverts commit 431a735efe.
2017-04-01 11:51:30 +03:00
Alexey Milovidov
ecb0b87bd8 Using C++17 [#CLICKHOUSE-3]. 2017-04-01 11:51:30 +03:00
Alexey Milovidov
137ad95929 Changed tabs to spaces in code [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
Alexey Milovidov
4f44445ff0 Removed all trailing whitespaces [#CLICKHOUSE-2]. find . -name '*.h' -or -name '*.cpp' -or -name '*.cmake' -or -name 'CMakeLists.txt' -or -name '*.html' -or -name '*.xml' | grep -v contrib | xargs sed -i -r -e 's/\s+$//' 2017-03-31 19:00:30 +03:00
proller
670e98fa92 allow several <graphite> targets (#603)
* allow several <graphite> targets

* fix

* fix

* Adjustable parts

* changelog version

* fix

* changelog

* Style fixes

* attachSystemTables

* config describe

* fixes

* fixes
2017-03-21 23:08:09 +04:00
proller
d98c95ddcd fix build 2017-03-20 22:18:10 +03:00
Alexey Zatelepin
faadab3034 Allow including config elements from ZooKeeper [#CLICKHOUSE-2794] 2017-03-19 21:58:12 +04:00
Pavel Kartavyy
5107cd94b3 support absence of BaseDaemon in OwnPatternFormatter 2017-02-07 19:37:56 +03:00
Pavel Kartavyy
6d48eacbff update usage of OwnPatternFormatter 2017-02-07 15:24:28 +03:00
Pavel Kartavyy
b61bd0b96b Merge commit '84e4fb00bd0373058bfc091d2d19a8034df7cc93' into update-clickhouse
Conflicts:
	metrica/src/ClickHouse/libs/libdaemon/src/BaseDaemon.cpp
2017-02-06 17:57:47 +03:00