Commit Graph

142096 Commits

Author SHA1 Message Date
Anton Ivashkin
40eef7f027 Fix tidy build 2024-05-21 15:58:00 +02:00
Anton Ivashkin
b752f2b938 Merge master 2024-05-20 14:38:40 +02:00
Alexey Milovidov
deb5b47829
Merge pull request #64098 from ClickHouse/speed-up-index-set-a-little
Speed up Set index a little
2024-05-20 10:41:21 +00:00
Kseniia Sumarokova
42c984df64
Merge pull request #63475 from tomershafir/disks-io-iouring-refactor-get-from-context
io_uring: refactor get reader from context
2024-05-20 10:17:32 +00:00
alesapin
4ca2c0fcd8
Merge pull request #64116 from ClickHouse/fix_azure_native_copy
Properly support native copy for azure
2024-05-20 10:04:16 +00:00
alesapin
23e87ef80e Review fix 2024-05-20 11:56:44 +02:00
alesapin
6a7a09a1f9
Update src/Backups/BackupIO_AzureBlobStorage.cpp
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2024-05-20 11:55:50 +02:00
alesapin
314752e044
Update src/Backups/BackupIO_AzureBlobStorage.cpp
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2024-05-20 11:55:44 +02:00
Antonio Andelic
3d76de3fec
Merge pull request #63816 from ClickHouse/fix-race-log-entry-data
Fix race in `ReplicatedMergeTreeLogEntryData`
2024-05-20 07:31:43 +00:00
Alexey Milovidov
dae050d2d4
Merge pull request #64023 from azat/build/freebsd-bcrypt-fix
Fix libbcrypt for FreeBSD build
2024-05-20 09:51:39 +02:00
Alexey Milovidov
28ded4a471
Merge pull request #63632 from azat/global-query-profiler-followup
Ignore global profiler if system.trace_log is not enabled and fix really disable it for keeper standalone build
2024-05-20 08:42:25 +02:00
Alexey Milovidov
7bce45f2a0
Merge pull request #64084 from ClickHouse/pretty-print-number-nullable-low-cardinality
Print number tips in case of LowCardinality and Nullable
2024-05-20 08:41:05 +02:00
Alexey Milovidov
dcf410a916 Merge branch 'master' into speed-up-index-set-a-little 2024-05-20 08:38:08 +02:00
Alexey Milovidov
9fefece70b Fix tidy 2024-05-20 08:37:48 +02:00
Alexey Milovidov
1e7eca66ec Merge branch 'master' into speed-up-index-set-a-little 2024-05-20 06:14:02 +02:00
Alexey Milovidov
6c51b771c5
Merge pull request #60883 from ClickHouse/uuid
Fix race in refreshable materialized views causing SELECT to fail sometimes
2024-05-20 06:02:46 +02:00
Alexey Milovidov
341c758002 Merge branch 'master' into speed-up-index-set-a-little 2024-05-20 05:16:45 +02:00
Alexey Milovidov
ce4158f496
Merge pull request #64082 from ClickHouse/prevent-stack-overflow-ci
Prevent stack overflow in Fuzzer and Stress test
2024-05-20 05:14:59 +02:00
Alexey Milovidov
64645e4010 Merge branch 'master' into pretty-print-number-nullable-low-cardinality 2024-05-20 05:14:29 +02:00
Alexey Milovidov
e9e4e5b2d2
Merge pull request #64081 from ClickHouse/change-log-level
This log message is better in Trace
2024-05-20 05:12:47 +02:00
Alexey Milovidov
921e44a616
Merge pull request #64051 from azat/build/freebsd-fix
Fix searching for libclang_rt.builtins.*.a on FreeBSD
2024-05-20 05:11:25 +02:00
Alexey Milovidov
039b385e73
Merge pull request #64058 from azat/fix-unwind-on-aarch64
Fix unwind on SIGSEGV on aarch64 (due to small stack for signal)
2024-05-20 05:10:55 +02:00
Alexey Milovidov
a00868a116
Merge pull request #64089 from azat/tests/03036_reading_s3_archives
tests: fix expected error for 03036_reading_s3_archives (fixes CI)
2024-05-20 05:07:23 +02:00
Alexey Milovidov
7921b74fd9
Merge pull request #64080 from yohannj/h3PointDistErrorMsg
harmonize h3PointDist* error messages
2024-05-20 05:06:08 +02:00
Alexey Milovidov
543e9cc05a Merge branch 'master' into speed-up-index-set-a-little 2024-05-20 03:10:21 +02:00
Alexey Milovidov
53545b5304
Merge pull request #64090 from azat/fix-sanitizers
Fix sanitizers
2024-05-20 03:03:07 +02:00
alesapin
56d25c74b1 Merge remote-tracking branch 'azat/fix-sanitizers' into fix_azure_native_copy 2024-05-19 23:28:03 +02:00
Azat Khuzhin
64a308013f Tune mmap_rnd_bits to workaround sanitizers issues
v1: vm.mmap_rnd_bits=28
v2: rebase with clang 18.1.6 + kernel.randomize_va_space=0
v3: leave only vm.mmap_rnd_bits=28 + use pre-run.sh (hope that it will
    be used), that way docker will not require --privileged and by some
    reason this breaks ASAN (though I cannot reproduce it)
v4: use actions/common_setup over init_runner.sh (it requires some
    manual deploy)
2024-05-19 22:37:16 +02:00
alesapin
2765fd951c Properly support native copy for azure 2024-05-19 21:02:12 +02:00
Yohann Jardin
524f289f47 empty commit 2024-05-19 17:20:22 +02:00
Anton Ivashkin
b8389925a4 Merge master 2024-05-19 16:12:51 +02:00
Alexey Milovidov
a28309689f
Update MergeTreeIndexSet.h 2024-05-19 16:13:58 +03:00
Alexey Milovidov
11af3fd54f
Update MergeTreeIndexSet.cpp 2024-05-19 16:13:41 +03:00
Alexey Milovidov
e18fa68f3d
Update MergeTreeIndexSet.cpp 2024-05-19 15:00:14 +03:00
Alexey Milovidov
31f0b2f741
Update MergeTreeIndexSet.cpp 2024-05-19 14:52:51 +03:00
Alexey Milovidov
332ec7c51f
Update MergeTreeIndexSet.cpp 2024-05-19 14:28:04 +03:00
Alexey Milovidov
2a9795f4e3 Minor changes 2024-05-19 10:45:19 +02:00
Alexey Milovidov
500475f2b8 Add a test 2024-05-19 10:45:05 +02:00
Robert Schulze
b405f934e4
Merge pull request #64024 from rschu1ze/throw-for-invalid-types
Deserialize untrusted binary inputs in a safer way
2024-05-19 07:13:52 +00:00
Alexey Milovidov
714420fc67 Speed up Set index a little 2024-05-19 09:00:35 +02:00
Alexey Milovidov
c940928bb5
Merge pull request #64091 from azat/fix-sanitizers-bump-clang
Fix sanitizers build by updating llvm/clang that includes fix for it
2024-05-19 08:42:05 +02:00
Azat Khuzhin
81a0c63928 Fix unwind on SIGSEGV on aarch64 (due to small stack for signal)
Only SIGSEGV uses alternative stack (sigaltstack()), which is very
small, 16K, and for aarch64 it is likely not enough for unwinding
(likely due to lots of registers on this platform):

    (gdb) bt
    #0  libunwind::CFI_Parser<libunwind::LocalAddressSpace>::parseFDEInstructions (addressSpace=..., fdeInfo=..., cieInfo=..., upToPC=<optimized out>, arch=4, results=<optimized out>) at ./contrib/libunwind/src/DwarfParser.hpp:561

And this is:

    554       case DW_CFA_remember_state: {
    555         // Avoid operator new because that would be an upward dependency.
    556         // Avoid malloc because it needs heap allocation.
    557         PrologInfoStackEntry *entry =
    558             (PrologInfoStackEntry *)_LIBUNWIND_REMEMBER_ALLOC(
    559                 sizeof(PrologInfoStackEntry));
    560         if (entry != NULL) {
    561           entry->next = rememberStack.entry;
    ^^^
    562           entry->info = *results;
    563           rememberStack.entry = entry;
    564         } else {
    565           return false;
    566         }
    567         _LIBUNWIND_TRACE_DWARF("DW_CFA_remember_state\n");
    568         break;
    569       }

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-19 08:11:53 +02:00
Azat Khuzhin
6ed515554b Revert "CI: disable ARM integration test cases with libunwind crash" 2024-05-19 08:11:53 +02:00
alesapin
3878155b19
Merge pull request #64072 from ClickHouse/try_to_fix_cross_compilation_for_grpc
Try to fix grpc for aarch64 crosscompilation
2024-05-18 18:28:21 +00:00
alesapin
086e5d73a4 Followup 2024-05-18 18:03:55 +02:00
Azat Khuzhin
3743b4a2ed Fix sanitizers build by updating llvm/clang that includes fix for it
Rebuild for clang 18.1.3, that contains a workaround [1] for sanitizers
issue [2]:

    $ git tag --contains  c2a57034eff048cd36c563c8e0051db3a70991b3 | tail -1
    llvmorg-18.1.3

 [1]: c2a57034ef
 [2]: https://github.com/ClickHouse/ClickHouse/issues/64086

Since right now version is not enough:

    $ docker run --rm -it clickhouse/test-util llvm-nm-18 --version
    llvm-nm, compatible with GNU nm
    Ubuntu LLVM version 18.1.2
      Optimized build.

But I don't see any fix for TSan, only MSan, but let's try.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-18 16:43:19 +02:00
alesapin
2983941ab8 Fix build for openssl
(cherry picked from commit 7efd5d3ab62024619e26dc6c3e28d50bffc98d70)
2024-05-18 16:35:15 +02:00
Azat Khuzhin
e885e9957e tests: fix expected error for 03036_reading_s3_archives
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-18 14:24:15 +02:00
Alexey Milovidov
5f938c9c2d
Merge pull request #64056 from jrdi/fix-rmt-is-deleted-docs
Improve ReplacingMergeTree is_deleted documentation
2024-05-18 07:28:22 +02:00
Alexey Milovidov
cde1b82ebd Print number tips in case of LowCardinality and Nullable 2024-05-18 06:42:59 +02:00