Alexey Milovidov
0ad20e6613
Fix test
2021-10-13 03:14:44 +03:00
Alexey Milovidov
9939e7c1eb
Merge branch 'master' into clickhouse-obfuscator-2
2021-10-13 01:16:26 +03:00
alesapin
5a0f22fbce
Fix resolve host
2021-10-12 11:27:18 +03:00
alesapin
d301e40651
Cache DNS in Poco handler for S3 if no proxy specified
2021-10-11 18:31:09 +03:00
kssenii
448d63a0fc
Range read with upper bound offset
2021-10-11 01:53:51 +03:00
kssenii
1f8b449bc5
Lazy seek avoiding
2021-10-11 00:51:43 +03:00
kssenii
6044725baa
Revert "http allow to know total bytes to read"
...
This reverts commit 4c99f6da51
.
2021-10-10 23:37:10 +03:00
kssenii
eb5cb86271
More profile events
2021-10-10 23:20:00 +03:00
kssenii
4c99f6da51
http allow to know total bytes to read
2021-10-10 22:15:21 +03:00
kssenii
7c570f2e48
Add retries for http read init
2021-10-10 22:13:49 +03:00
kssenii
e3d2942aa6
Correct merge
2021-10-10 20:24:36 +03:00
kssenii
fde6f0507d
Merge remote-tracking branch 'origin/retriable-http' into disk-async-read
2021-10-10 20:23:44 +03:00
kssenii
24feb6674c
May be move back initialize to constructor
2021-10-08 15:38:33 +00:00
kssenii
40434519e8
Fix disk web
2021-10-08 16:02:11 +03:00
kssenii
f3f820c6e0
HTTP read buffer retries
2021-10-08 15:41:55 +03:00
kssenii
5e63ec4489
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-07 19:11:45 +03:00
kssenii
d6e1d0503d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-10-07 16:21:00 +03:00
Nikita Mikhaylov
b31d11478b
Merge pull request #29680 from azat/defines
...
Cleanup common defines
2021-10-04 20:13:29 +03:00
alexey-milovidov
6abb3d4c6d
Merge pull request #29682 from traceon/xcode-13-fix-build
...
Fix Xcode 13 build
2021-10-04 02:34:43 +03:00
Denis Glazachev
ca7b69b0f3
Manipulate with -Wreserved-identifier only if HAS_RESERVED_IDENTIFIER has been detected
2021-10-03 17:42:36 +04:00
Azat Khuzhin
16c72f2107
Remove unused macros from ReadWriteBufferFromHTTP
2021-10-03 14:34:03 +03:00
Azat Khuzhin
6a9dd9828d
Move protocol macros into separate header
...
Defines.h is a very common header, so lots of modules will be recompiled
on changes.
Move macros for protocol into separate header, this should significantly
decreases number of units to compile on it's changes.
2021-10-03 14:34:03 +03:00
Alexey Milovidov
9bc32c95c0
Miscellaneous
2021-10-03 10:01:09 +03:00
Alexey Milovidov
0bf597374f
More enhancements for query obfuscator
2021-10-03 05:56:32 +03:00
kssenii
1146035f11
Small fix
2021-10-02 17:28:12 +03:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
kssenii
7ff092712b
Better
2021-10-01 18:13:16 +03:00
kssenii
55972db866
Small fix and more comments
2021-10-01 11:38:58 +03:00
kssenii
e4bc81ac78
Better
2021-09-30 21:45:57 +03:00
kssenii
cc9ce13bac
Finally all fixed
2021-09-30 15:35:59 +03:00
kssenii
85aae03a26
Fix
2021-09-29 22:54:49 +03:00
kssenii
20192352ad
Better
2021-09-29 11:03:36 +03:00
MaxWk
723ff795a8
support obs storage
2021-09-29 14:11:28 +08:00
kssenii
ebca30694d
Fix
2021-09-27 18:25:30 +03:00
Alexey Milovidov
cd7f9d981c
Remove ya.make
2021-09-25 04:22:54 +03:00
alesapin
3614fb9e37
Merge pull request #29223 from ClickHouse/compressed_logs
...
Compressed logs for keeper
2021-09-24 16:03:26 +03:00
kssenii
6219d541a5
Finally fixed
2021-09-24 15:29:04 +03:00
kssenii
c1ea44b9c2
Fixes
2021-09-24 13:38:08 +03:00
Vladimir Chebotarev
0343106692
Fixed logging level for message in S3Common.cpp
.
2021-09-23 21:47:31 +03:00
alesapin
eb3a651bab
Fix bug found on review
2021-09-23 16:55:50 +03:00
mergify[bot]
d69fc35dd9
Merge branch 'master' into compressed_logs
2021-09-22 19:43:16 +00:00
kssenii
1b9565dfa8
Merge branch 'master' of github.com:ClickHouse/ClickHouse into disk-async-read
2021-09-22 22:08:44 +03:00
Kseniia Sumarokova
192c5397cc
Merge pull request #29211 from kssenii/better-retries-2
...
Fix retries for disk web
2021-09-22 12:37:25 +03:00
alesapin
043ef03d42
revert method name
2021-09-22 10:30:15 +03:00
alesapin
334a7ab8db
Change default extension to zst
2021-09-21 23:43:44 +03:00
alesapin
ac7579f187
Compressed logs for keeper
2021-09-21 17:29:05 +03:00
kssenii
e301457e91
Fix prefetch mistake
2021-09-21 15:40:48 +03:00
kssenii
975033e6e3
Fix
2021-09-21 09:44:54 +00:00
kssenii
40ee75fe97
Common thread pool for disks
2021-09-21 10:00:56 +03:00
kssenii
cacc81ca61
Fix
2021-09-21 02:31:02 +03:00
kssenii
0104cb1c8e
Better
2021-09-21 01:51:17 +03:00
kssenii
f312760dca
Better
2021-09-20 19:57:15 +03:00
kssenii
11ae94b8d3
Async read for remote fs
2021-09-20 16:16:46 +03:00
Azat Khuzhin
e5f66fd103
Add socket timeout values into SOCKET_TIMEOUT exception
2021-09-20 09:51:42 +03:00
Maksim Kita
14e4d49601
Merge pull request #29063 from ClickHouse/read-integer-overflow-bug-fix
...
Merging #27963
2021-09-17 16:06:58 +03:00
Maksim Kita
73368aa351
Fixed tests
2021-09-17 12:17:19 +03:00
Maksim Kita
49f04700cc
Fixed style
2021-09-16 00:29:29 +03:00
Maksim Kita
7a72a765c2
Added tests
2021-09-16 00:01:01 +03:00
Maksim Kita
7c748b6140
Merge pull request #27963 from zhanglistar/overflow_bugfix
...
Overflow bugfix
2021-09-15 23:31:43 +03:00
Anton Popov
fc17936c12
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-14 23:02:30 +03:00
Nikita Mikhaylov
58f2504a56
Update ya.make
2021-09-14 12:00:32 +00:00
Sergei Semin
12e24a23d3
Merge branch 'master' into fix-build-clang-13-2
2021-09-12 19:30:55 +03:00
alexey-milovidov
ea13a8b562
Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum
...
Improving CH type system with concepts
2021-09-12 15:26:29 +03:00
Sergei Semin
f74350c148
fix special build
2021-09-12 02:49:31 +03:00
Mike Kot
3401b32e37
Adapted usage of is_decimal concept
2021-09-11 19:35:12 +02:00
Mike Kot
bce011cb33
Replacing IsDecimalNumber
2021-09-11 00:40:18 +02:00
Mike Kot
c4385a2c40
Simplifying exception messages
2021-09-11 00:40:18 +02:00
mergify[bot]
e3b3439535
Merge branch 'master' into fix-build-clang-13-2
2021-09-10 12:05:54 +00:00
Anton Popov
5cff615eca
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-10 13:40:48 +03:00
alexey-milovidov
2236a5df98
Merge pull request #28085 from myrrc/improvement/merge-tree-part-opt-parse
...
optional<> semantics for parsing MergeTreePartInfo and DetachedPartInfo
2021-09-10 00:04:03 +03:00
Sergei Semin
f92e720d18
fix gtest_bit_io.cpp
2021-09-09 23:51:47 +03:00
Sergei Semin
39929e52bd
add ignore of -Wreserved-identifier into LineReader.cpp, ThreadFuzzer.cpp, ReadBufferFromFileDescriptor.cpp
2021-09-09 23:51:47 +03:00
Anton Popov
8e5b3b2f6c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-09 15:12:34 +03:00
alesapin
3b9dae8718
Merge pull request #28616 from ClickHouse/qoega-try-llvm-12
...
Merging #20495
2021-09-08 11:43:46 +03:00
mergify[bot]
e9fbdec13a
Merge branch 'master' into improvement/merge-tree-part-opt-parse
2021-09-07 09:52:24 +00:00
Mike Kot
8e9aacadd1
Initial: replacing hardcoded toString for enums with magic_enum
2021-09-06 16:24:03 +02:00
alesapin
9db10a7164
Fix typo:
2021-09-06 14:34:17 +03:00
alesapin
fcfe77cb57
Fix allocation in buffer
2021-09-06 13:35:37 +03:00
Nikolai Kochetov
a8cad572df
Merge pull request #28561 from FArthur-cmd/remove_recursion_in_zstd
...
remove recursion in ZstdInflatingReadBuffer
2021-09-06 13:03:52 +03:00
mergify[bot]
8eba5f29a1
Merge branch 'master' into improvement/merge-tree-part-opt-parse
2021-09-06 09:53:46 +00:00
alesapin
d1e91a7860
Revert "Revert "Fix tidy""
...
This reverts commit 2e5e017d6d
.
2021-09-06 12:16:52 +03:00
Dmitrii Kovalkov
181bf0dbd6
Fix arcadia build
2021-09-06 11:11:45 +03:00
alesapin
2e5e017d6d
Revert "Fix tidy"
...
This reverts commit 73ef1233ef
.
2021-09-06 10:52:20 +03:00
alesapin
73ef1233ef
Fix tidy
...
Fix tidy one more time
2021-09-06 10:22:21 +03:00
Anton Popov
59128412ea
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-03 22:17:11 +03:00
Anton Popov
c9a0cc5ce9
fix race on table schema in insert-select
2021-09-03 17:23:21 +03:00
Nikita Mikhaylov
7929ee4d9b
Merge pull request #28534 from nikitamikhaylov/fix-race-zlib
...
Fix race in zlib
2021-09-03 15:00:23 +03:00
Artur
04e5e52dbd
prevent endless loop
2021-09-03 11:18:19 +00:00
Artur
9c480c0de6
remove recursion in ZstdInflatingReadBuffer
2021-09-03 10:56:18 +00:00
Nikita Mikhaylov
a3f008c626
Enable define from cmake
2021-09-03 08:30:03 +00:00
Azat Khuzhin
4909d3f2e0
Fix endless loop for truncated bzip2
...
Stress test (thread) found an issue [1]:
elapsed: 2094.356407533
query: SELECT count(), max(x) FROM file
thread_ids: [2927,11494,7502]
current_database: test_19
Stacktrace for 7502:
0 __syscall () at ../base/glibc-compatibility/musl/x86_64/syscall.s:14
1 0x000000001ba033b8 in clock_nanosleep (clk=1, flags=1, req=0x7fbb8adaed68, rem=0x0) at ../base/glibc-compatibility/musl/clock_nanosleep.c:21
2 0x0000000018e25b84 in sleepForNanoseconds (nanoseconds=<optimized out>) at ../base/common/sleep.cpp:48
3 0x0000000009a47143 in DB::injection (yield_probability=0, migrate_probability=0, sleep_probability=0.10000000000000001, sleep_time_us=100000) at ../src/Common/ThreadFuzzer.cpp:193
4 DB::ThreadFuzzer::signalHandler () at ../src/Common/ThreadFuzzer.cpp:204
5 0x00000000098e1447 in __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ()
6 0x00000000098d7f99 in __tsan::ProcessPendingSignals(__tsan::ThreadState*) ()
7 0x00000000098e57de in pread ()
8 0x00000000099fab84 in DB::ReadBufferFromFileDescriptor::nextImpl (this=0x7b38010ddb00) at ../src/IO/ReadBufferFromFileDescriptor.cpp:62
9 0x0000000009ab0cf3 in DB::ReadBuffer::next (this=0x7b38010ddb00) at ../src/IO/ReadBuffer.h:62
10 DB::ReadBuffer::nextIfAtEnd (this=0x7b38010ddb00) at ../src/IO/ReadBuffer.h:78
11 DB::Bzip2ReadBuffer::nextImpl (this=0x7b20032f4800) at ../src/IO/Bzip2ReadBuffer.cpp:59
It looks like bz2 is not capable to read/fail partially written archive:
2021.09.03 00:52:36.744818 [ 3553 ] {90419c0a-c410-42ea-ba76-7672ff5ae5ec} <Debug> executeQuery: (from [::1]:54714) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01059_storage_file_compression.sh') CREATE TABLE file (x UInt64) ENGINE = File(TSV, 'test_19/bz2.tsv.bz2')
2021.09.03 00:52:41.255409 [ 2927 ] {9c7b4e21-cc37-438d-9c13-f9dc01efd30c} <Debug> executeQuery: (from [::1]:54750) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01059_storage_file_compression.sh') TRUNCATE TABLE file
2021.09.03 00:52:43.762791 [ 2927 ] {82857e3d-f7cc-453d-82a4-e8b8fb82ae0e} <Debug> executeQuery: (from [::1]:54758) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01059_storage_file_compression.sh') INSERT INTO file SELECT * FROM numbers(1000000)
2021.09.03 00:52:54.939333 [ 2927 ] {82857e3d-f7cc-453d-82a4-e8b8fb82ae0e} <Error> executeQuery: Code: 241. DB::Exception: Memory limit (total) exceeded: would use 63.07 GiB (attempt to allocate chunk of 4194364 bytes), maximum: 62.94 GiB. (MEMORY_LIMIT_EXCEEDED) (version 21.10.1.7982) (from [::1]:54758) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01059_storage_file_compression.sh') (in query: INSERT INTO file SELECT * FROM numbers(1000000)), Stack trace (when copying this message, always include the lines below):
2021.09.03 00:53:08.505015 [ 2927 ] {2bc7444e-c0d6-462e-9d6a-567f70b01697} <Debug> executeQuery: (from [::1]:54842) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01059_storage_file_compression.sh') SELECT count(), max(x) FROM file
[1]: https://clickhouse-test-reports.s3.yandex.net/28474/6d5f01a56bb1715c47de8444bfc85b39228f3081/stress_test_(thread).html#fail1
2021-09-03 10:49:17 +03:00
Azat Khuzhin
5a4d554c15
FIx Bzip2WriteBuffer ifdef (USE_BZIP2 over USE_BROTLI)
2021-09-03 10:48:52 +03:00
Nikita Mikhaylov
0f284db1fc
Done
2021-09-02 22:33:04 +00:00
Anton Popov
5e421ab272
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-02 02:42:50 +03:00
Nikolay Degterinsky
53b6d918eb
Merge pull request #25310 from bharatnc/ncb/import-export-lz4
...
LZ4 compression for import/export
2021-09-01 21:12:50 +03:00
Alexey Milovidov
19445ac096
Drop unused headers
2021-09-01 02:47:52 +03:00
Mike Kot
4194ed2ec7
Merge remote-tracking branch 'upstream/master' into improvement/merge-tree-part-opt-parse
2021-08-31 14:35:14 +02:00
Nikita Mikhaylov
8abee2480e
src/
2021-08-31 12:14:08 +00:00
Nikolay Degterinsky
ed4d5edd9a
Style fix
2021-08-31 13:53:44 +03:00
Nikita Mikhaylov
00394014ff
Merge pull request #28382 from DimasKovas/fix_arcadia_build_31_08_2021
...
Try to fix arcadia build (generate ya.make)
2021-08-31 13:49:32 +03:00