Commit Graph

53379 Commits

Author SHA1 Message Date
Azat Khuzhin
e379b80d45 MADV_DONTNEED check in runtime for qemu (via patching jemalloc)
qemu does not support MADV_DONTNEED, and by not support it simply ignore
it (i.e. return 0 -- no error).

This issue has been "fixed" in #15590, however it just
terminates the process, and completely breaks clickhouse under qemu
(see also #15174).

But there is no need in such strong protection, we can stop using
madvise in jemalloc if MADV_DONTNEED does not work properly.
And this is what #18169 was tried to do (by override madvise), however
this will break sanitizers, at least TSAN and UBSAN.
The problem there is that sanitizers initialization code uses madvise
(and there is no way to turn this off with TSAN_OPTIONS) and overwritten
madvise function will have sanitizers traits (__tsan_func_entry), while
TSAN is not ready for this, and eventually it SIGSEGV.
Interesting thing is that in the recent clang-12, madvise was replaced
with direct syscall [1].

  [1]: 9f8c4039f2

But it is better to make clickhouse compatible with clang < 12 too, so
instead of override madvise completely, the runtime check was moved into
the jemalloc code [2].

  [2]: https://github.com/ClickHouse-Extras/jemalloc/pull/1
2020-12-19 15:34:12 +03:00
alexey-milovidov
753aa36baf
Merge pull request #18234 from ClickHouse/return-git-import
Return clickhouse-git-import
2020-12-19 13:00:19 +03:00
alexey-milovidov
41b2503d1a
Merge pull request #18114 from azat/20.13-gcc10-sanitizers
gcc10 sanitizers support
2020-12-19 12:54:36 +03:00
alexey-milovidov
086916a853
Update regression.py 2020-12-19 03:32:50 +03:00
alexey-milovidov
021aba5769
Merge pull request #18217 from ClickHouse/fix_stranges_in_testkeeper
Fix watches processing in TestKeeper
2020-12-19 03:29:51 +03:00
Alexey Milovidov
231cce489d Add a test 2020-12-19 01:08:05 +03:00
Alexey Milovidov
ecc270605d Fix error (CC @akuzm) 2020-12-19 01:07:52 +03:00
Alexey Milovidov
ce32a55fd6 Preparation 2020-12-19 00:54:24 +03:00
Alexey Milovidov
93bf494108 Preparation 2020-12-19 00:19:28 +03:00
Alexey Milovidov
7805e84b4b Return clickhouse-git-import 2020-12-19 00:19:11 +03:00
Alexey Milovidov
9c3fbc9ac6 Return clickhouse-git-import 2020-12-19 00:04:03 +03:00
alexey-milovidov
8f2a2b4bbb
Add comment. 2020-12-18 23:56:11 +03:00
alexey-milovidov
1c5e22a6c7
Attempt to fix broken useless action 2020-12-18 23:54:03 +03:00
Anton Popov
07bc3579d0
Merge pull request #18219 from CurtizJ/add-test
Add test for fixed bug with skip indices
2020-12-18 23:11:17 +03:00
alexey-milovidov
da1fc5d25e
Merge pull request #18218 from Jokser/s3-docs
Add S3 table function / engine documentation [EN]
2020-12-18 22:05:45 +03:00
Pavel Kovalenko
7fa73045fe Remove extra comma 2020-12-18 21:48:42 +03:00
Pavel Kovalenko
f80e872bbb Update globs in path usage for S3 table function / storage documentation [EN] 2020-12-18 21:45:21 +03:00
alexey-milovidov
03bc2d328a
Merge pull request #17726 from amosbird/querylog
Extensive information in system.query_log
2020-12-18 21:24:21 +03:00
alexey-milovidov
e0c2de9a8c
Merge pull request #17463 from amosbird/threadmetrics
Add connection thread metrics
2020-12-18 21:22:51 +03:00
alexey-milovidov
814dd63dc2
Update s3.md 2020-12-18 21:04:09 +03:00
alexey-milovidov
137dd889ab
Update s3.md 2020-12-18 21:03:05 +03:00
alexey-milovidov
49bcb167bc
Update s3.md 2020-12-18 21:02:07 +03:00
alexey-milovidov
d5361525d5
Update s3.md 2020-12-18 20:55:54 +03:00
alexey-milovidov
edba76ebc0
Update s3.md 2020-12-18 20:54:41 +03:00
alexey-milovidov
57d3d641f5
Update s3.md 2020-12-18 20:52:59 +03:00
Ivan
6d5912e633
Update query_test.py 2020-12-18 19:01:04 +03:00
Nikolai Kochetov
591e0a744b
Merge pull request #18183 from spongedu/fix_show_hint
complete hints for show statement
2020-12-18 18:50:27 +03:00
Nikolai Kochetov
d7fc426458
Merge pull request #18216 from ClickHouse/fix-18137
Fix 18137
2020-12-18 18:49:02 +03:00
alexey-milovidov
3261392f16
Merge pull request #18208 from vzakaznikov/update_testflows_version_to_1.6.72
Updating TestFlows version to the latest 1.6.72
2020-12-18 18:03:00 +03:00
alexey-milovidov
8491bcad22
Delete requirements.py 2020-12-18 18:02:19 +03:00
alexey-milovidov
34e4ace029
Merge pull request #17525 from ClickHouse/null-as-default-default
Attempt to make NULL as default by default
2020-12-18 18:00:34 +03:00
alexey-milovidov
7ec772f480
Merge pull request #18129 from ClickHouse/boringssl2
Port to BoringSSL (part 2)
2020-12-18 18:00:10 +03:00
Anton Popov
820e0cf877 add test for fixed bug 2020-12-18 16:41:47 +03:00
Ivan
57763e6867
Enable Pytest framework for stateless tests (#17902) 2020-12-18 16:26:11 +03:00
Pavel Kovalenko
b11663886c Fix uppercase word in S3 table function documentation [EN] 2020-12-18 15:12:51 +03:00
Pavel Kovalenko
9d75093c28 Fix link in S3 table function / engine documentation [EN] 2020-12-18 15:12:06 +03:00
Pavel Kovalenko
601558c11b Add references to S3 table function / engine in documentation [EN] 2020-12-18 12:50:35 +03:00
Pavel Kovalenko
cd0a0e33bd Add S3 table function / engine documentation [EN] 2020-12-18 12:46:50 +03:00
alesapin
26637bd7ee
Merge pull request #17943 from ClickHouse/try_rewrite_writer
Small simplification of MergeTreeDataWriter
2020-12-18 12:41:16 +03:00
alesapin
24eed37315 Fix style check 2020-12-18 12:23:27 +03:00
alesapin
3937942fae Fix bug in watches processing 2020-12-18 12:13:50 +03:00
Nikolai Kochetov
8012951e77 Add test. 2020-12-18 11:34:20 +03:00
Nikolai Kochetov
eef58c85f0 Put thread back to set if it had stolen all tasks of backoff thread. 2020-12-18 11:33:55 +03:00
Amos Bird
c447628d42
Add connection thread metrics 2020-12-18 15:22:55 +08:00
Amos Bird
9924cad96c
identify internal queries 2020-12-18 14:54:38 +08:00
Amos Bird
d9e62581b3
Fix MSan 2020-12-18 14:13:59 +08:00
Amos Bird
b99f9913e1
Fix build 2020-12-18 14:13:59 +08:00
Amos Bird
2a28c127eb
Better code for real 2020-12-18 14:13:59 +08:00
Amos Bird
2f92d57af9
Better code. 2020-12-18 14:13:58 +08:00
Amos Bird
81d7f8ef2d
Need proper locking 2020-12-18 14:13:58 +08:00