olgarev
c6b62a8ddd
Apply suggestions from code review
...
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-03-20 12:15:51 +03:00
Olga Revyakina
fca90fa940
Minor fixes
2021-03-15 04:30:42 +03:00
Olga Revyakina
b814987a22
Translated to Russian with some fixes in English
2021-03-15 04:18:54 +03:00
alexey-milovidov
afa24938bc
Merge pull request #21686 from kitaisreal/library-dictionary-source-fix-possible-leak
...
LibraryDictionarySource fix possible leak
2021-03-15 00:06:15 +03:00
alexey-milovidov
adbf032235
Merge pull request #21713 from ClickHouse/modulo-ubsan
...
Fix UBSan report in modulo by constant
2021-03-14 23:19:12 +03:00
alesapin
dad5238d7d
Merge pull request #16240 from ianton-ru/s3_zero_copy_replication
...
S3 zero copy replication
2021-03-14 18:19:37 +03:00
Alexey Milovidov
b3d2948081
Fix UBSan report in modulo by constant
2021-03-14 17:31:07 +03:00
Maksim Kita
c94ee3151d
Merge pull request #21182 from ikarishinjieva/fix_#21170
...
fix #21170
2021-03-14 17:24:39 +03:00
Maksim Kita
dfd2068350
Updated SharedLibrary string_view interface
2021-03-14 17:19:48 +03:00
Maksim Kita
037cc92433
Reverted changes InterpreterSelectWithUnionQuery
2021-03-14 15:45:39 +03:00
Maksim Kita
1ac62970c4
Modified SharedLibrary interface
2021-03-14 14:29:02 +03:00
alexey-milovidov
f1223e7548
Merge pull request #21674 from azat/fix-flaky-test_replace_partition
...
Fix flaky test_replace_partition
2021-03-14 14:11:11 +03:00
alexey-milovidov
254e7c513f
Merge pull request #21712 from ClickHouse/remove-useless-option
...
Remove useless CMake option
2021-03-14 14:10:17 +03:00
Alexey Milovidov
583c78143d
Remove useless CMake option
2021-03-14 14:08:08 +03:00
Maksim Kita
40d2ec7924
Merge pull request #19816 from kitaisreal/range-hashed-dictionary-support-has-keys
...
RangeHashed dictionary support dictHas function
2021-03-14 13:44:06 +03:00
alexey-milovidov
edbaf756a0
Merge pull request #21696 from azat/stress-tests-fixes
...
Tests fixes (that was found by stress tests)
2021-03-14 12:31:57 +03:00
alexey-milovidov
c9f14052bc
Merge pull request #21700 from azat/clickhouse-test-fix-log-comment
...
Fix log_comment for *.sh in clickhouse-test
2021-03-14 12:29:57 +03:00
alexey-milovidov
2ea38ea01e
Merge pull request #21520 from ClickHouse/replace-memcpy
...
Evaluate yet another memcpy
2021-03-14 12:24:48 +03:00
Alexey Milovidov
1606c7e3f3
Fix typo
2021-03-14 12:24:17 +03:00
Maksim Kita
98192f1234
Update 01280_ssd_complex_key_dictionary.sql
2021-03-14 01:28:53 +03:00
Alexey Milovidov
bab924620a
Add comments and documentation
2021-03-14 00:53:00 +03:00
Alexey Milovidov
a1ebd52d09
Add comments and documentation
2021-03-14 00:51:13 +03:00
Alexey Milovidov
32e66baa0a
Add comments and documentation
2021-03-14 00:48:44 +03:00
Alexey Milovidov
b4cae2c858
Add TODO
2021-03-14 00:48:08 +03:00
Alexey Milovidov
36a41220d3
Add comments and documentation
2021-03-14 00:46:47 +03:00
Maksim Kita
b1398e6ffa
Updated test
2021-03-13 23:26:01 +03:00
Maksim Kita
084bd03672
Merge pull request #21692 from azat/dict-ip_trie-access_to_key_from_attributes
...
Fix SIGSEGV on not existing attributes from ip_trie with access_to_key_from_attributes
2021-03-13 23:13:26 +03:00
Alexey Milovidov
37cc2fe977
Use custom memcpy only for AArch64
2021-03-13 22:39:10 +03:00
alesapin
06eb2d8dfd
Merge branch 'master' into s3_zero_copy_replication
2021-03-13 22:32:54 +03:00
alexey-milovidov
c9265b64f5
Merge pull request #21678 from ClickHouse/podarray-cleanup
...
PODArray swap fix
2021-03-13 22:28:48 +03:00
Azat Khuzhin
334520557c
Fix log_comment for *.sh in clickhouse-test
...
setdefault will set it only once
2021-03-13 18:15:16 +03:00
Alexander Kuzmenkov
c4798dd45f
boop the ci
2021-03-13 15:43:02 +03:00
alexey-milovidov
38c068725d
Merge pull request #21691 from azat/clickhouse-test-fix
...
Fix error message in clickhouse-test
2021-03-13 15:20:31 +03:00
alexey-milovidov
36935a335f
Merge pull request #21102 from Enmk/governance/query_log
...
Added Grant, Revoke and System query_kind for system.query_log
2021-03-13 15:16:32 +03:00
Alexander Kuzmenkov
9474414c17
boop the ci
2021-03-13 15:15:58 +03:00
Alexander Kuzmenkov
6495de66fc
boop the CI
2021-03-13 14:59:19 +03:00
Maksim Kita
ee8c51f65e
Fixed tests
2021-03-13 14:58:31 +03:00
Maksim Kita
add444f71c
Fixed broken test
2021-03-13 14:58:31 +03:00
Maksim Kita
854bfaf366
RangeHashed dictionary support has function
2021-03-13 14:57:56 +03:00
Maksim Kita
468ab258bf
Remove protect
2021-03-13 14:55:56 +03:00
Maksim Kita
6be5c271ae
Added explicit function interface
2021-03-13 14:09:56 +03:00
Azat Khuzhin
833dbf1225
Mark 01294_lazy_database_concurrent_recreate_reattach_and_show_tables as long
2021-03-13 13:43:17 +03:00
Azat Khuzhin
0c1b2f6d59
Update exception message for lack of attribute with access_to_key_from_attributes
2021-03-13 12:53:10 +03:00
Maksim Kita
79b061ac3c
Merge pull request #21668 from kitaisreal/dictionary-attributes-unique-names
...
DictionaryStructure fix non unique attribute names
2021-03-13 12:31:33 +03:00
Azat Khuzhin
2d66a5c393
Fix hang check for 00966_live_view_watch_events_http
...
If INSERT was failed then WATCH EVENTS will hang:
2021.03.12 23:45:33.666223 [ 1901 ] {} <Trace> DynamicQueryHandler: Request URI: /?allow_experimental_live_view=1&query=WATCH%20test.lv%20EVENTS
...
2021.03.12 23:45:34.119465 [ 35492 ] {55f2c8ec-df9f-4e97-9acc-385ed5b5fde2} <Error> executeQuery: Code: 241, e.displayText() = DB::Exception: Memory limit (for user) exceeded: would use 153.99 MiB (attempt to allocate chunk of 4194729 bytes), maximum: 150.00 MiB (version 21.4.1.6239) (from [::1]:43910) (in query: INSERT INTO test.mt VALUES ), Stack trace (when copying this message, always include the lines below):
...
Hung check:
elapsed: 597.835824299
is_cancelled: 0
query: WATCH test.lv EVENTS
thread_ids: [1901]
gdb:
Thread 133 (Thread 0x7f26ac95b700 (LWP 1901)):
0 0x00007f2793d447b1 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
1 0x0000000008cbd5c5 in __tsan::call_pthread_cancel_with_cleanup(int (*)(void*, void*, void*), void*, void*, void*, void (*)(void*), void*) ()
2 0x0000000008c4f134 in cond_wait(__tsan::ThreadState*, unsigned long, __tsan::ScopedInterceptor*, int (*)(void*, void*, void*), void*, void*, void*) ()
3 0x0000000008c4f339 in pthread_cond_timedwait ()
4 0x000000001831c8b6 in std::__1::__libcpp_condvar_timedwait (__cv=0x7b5801053520, __m=0x189, __ts=0x7f26ac9132b8) at ../contrib/libcxx/include/__threading_support:442
5 std::__1::condition_variable::__do_timed_wait (this=0x7b5801053520, lk=..., tp=...) at ../contrib/libcxx/src/condition_variable.cpp:74
6 0x00000000134fe7f2 in std::__1::condition_variable::wait_for<long long, std::__1::ratio<1l, 1000000l> > (this=this@entry=0x7b5801053520, __lk=..., __d=...) at ../contrib/libcxx/include/__mutex_base:462
7 0x00000000134fe2c9 in DB::LiveViewEventsBlockInputStream::tryReadImpl (this=this@entry=0x7b5c0070ff98, blocking=false) at ../src/Storages/LiveView/LiveViewEventsBlockInputStream.h:180
8 0x00000000134fd6e4 in DB::LiveViewEventsBlockInputStream::readImpl (this=0x189) at ../src/Storages/LiveView/LiveViewEventsBlockInputStream.h:115
9 0x0000000012285593 in DB::IBlockInputStream::read (this=0x7b5c0070ff98) at ../src/DataStreams/IBlockInputStream.cpp:58
10 0x00000000122afc7e in DB::copyDataImpl<std::__1::function<bool ()> const&, std::__1::function<void (DB::Block const&)> const&>(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::function<bool ()> const&, std::__1::function<void (DB::Block const&)> const&) (from=..., to=..., is_cancelled=..., progress=...) at ../src/DataStreams/copyData.cpp:26
11 0x00000000122af8e1 in DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::function<bool ()> const&, std::__1::function<void (DB::Block const&)> const&) (from=..., to=..., is_cancelled=..., progress=...) at ../src/DataStreams/copyData.cpp:73
12 0x0000000012cfc5e2 in DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, DB::Context&, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) (istr=..., ostr=..., allow_into_outfile=false, context=..., set_result_details=...) at ../src/Interpreters/executeQuery.cpp:1033
13 0x000000001357941d in DB::HTTPHandler::processQuery (this=this@entry=0x7b1c006f41b0, context=..., request=..., params=..., response=..., used_output=..., query_scope=...) at ../src/Server/HTTPHandler.cpp:772
14 0x000000001357c507 in DB::HTTPHandler::handleRequest (this=<optimized out>, request=..., response=...) at ../src/Server/HTTPHandler.cpp:910
15 0x00000000135f3081 in DB::HTTPServerConnection::run (this=<optimized out>) at ../src/Server/HTTP/HTTPServerConnection.cpp:48
16 0x00000000161f9e73 in Poco::Net::TCPServerConnection::start (this=0x7b8c01554000) at ../contrib/poco/Net/src/TCPServerConnection.cpp:43
17 0x00000000161fa59f in Poco::Net::TCPServerDispatcher::run (this=<optimized out>) at ../contrib/poco/Net/src/TCPServerDispatcher.cpp:113
18 0x0000000016361732 in Poco::PooledThread::run (this=<optimized out>) at ../contrib/poco/Foundation/src/ThreadPool.cpp:199
19 0x000000001635fcd0 in Poco::(anonymous namespace)::RunnableHolder::run (this=<optimized out>) at ../contrib/poco/Foundation/src/Thread.cpp:55
20 0x000000001635e4d8 in Poco::ThreadImpl::runnableEntry (pThread=0x7b5400082538) at ../contrib/poco/Foundation/src/Thread_POSIX.cpp:345
21 0x0000000008c4e36d in __tsan_thread_start_func ()
22 0x00007f2793d3d609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
23 0x00007f2793c64293 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Cc: @vzakaznikov
2021-03-13 11:32:55 +03:00
Azat Khuzhin
68dff2d954
Mark 01018_ip_dictionary as long
...
https://clickhouse-test-reports.s3.yandex.net/21692/481d897cadb6b1a309478f24a46efe506b7108d6/functional_stateless_tests_flaky_check_(address).html#fail1
2021-03-13 11:06:49 +03:00
Alexey Milovidov
a446612e8a
Remove currently unused code
2021-03-13 10:39:43 +03:00
Alexey Milovidov
6d91881f6a
Remove currently unused code
2021-03-13 10:38:35 +03:00
Azat Khuzhin
a301aa64da
Do not use system-wide SYSTEM STOP TTL MERGES, use per-table instead
...
Fixes 01294_lazy_database_concurrent_recreate_reattach_and_show_tables
2021-03-13 10:37:26 +03:00
Azat Khuzhin
1ce9293e97
Fix 01035_lc_empty_part_bug under stress tests
...
Found in [1]:
2021.03.12 23:32:58.897190 [ 436606 ] {97a08a8f-4630-44f8-ba18-a94c6fabbded} <Information> test_13.lc_empty_part_bug: Waiting mutation: mutation_3.txt
...
2021.03.12 23:32:58.900444 [ 374 ] {} <Debug> test_13.lc_empty_part_bug: Current max source part size for mutation is 0 but part size 1. Will not mutate part all_1_1_0_2. Max size depends not only on available space, but also on settings 'number_of_free_entries_in_pool_to_execute_mutation' and 'background_pool_size'
...
Hang check:
query: alter table lc_empty_part_bug modify column s LowCardinality(String);
elapsed: 2156.396613506
[1]: https://clickhouse-test-reports.s3.yandex.net/21511/d7d9638ceb6bd702f34a88ee54f8f83197e90af5/stress_test_(address).html#fail1
2021-03-13 10:31:19 +03:00