alesapin
3e834035b8
Merge branch 'master' into debug_keeper_lost_logs
2021-09-01 10:36:42 +03:00
Alexey Milovidov
19445ac096
Drop unused headers
2021-09-01 02:47:52 +03:00
Nikita Mikhaylov
c7727f093d
Merge upstream/master into global-merge-executor (using imerge)
2021-08-31 23:34:11 +00:00
Nikita Mikhaylov
ac5316ce98
Stress test + reworker executor
2021-08-31 23:20:23 +00:00
alexey-milovidov
77d085f264
Merge pull request #27527 from evillique/log_queries_probability
...
Add log_queries_probability setting
2021-09-01 00:51:23 +03:00
alexey-milovidov
4cc0b0298c
Merge pull request #28269 from amosbird/fixweirdcode
...
Better nullable primary key implementation
2021-09-01 00:48:45 +03:00
Kseniia Sumarokova
437c87fff3
Update StorageTableFunction.h
2021-09-01 00:06:10 +03:00
kssenii
445b6b34fc
Fix
2021-08-31 20:58:00 +00:00
kssenii
f9592cae11
Fix
2021-08-31 22:24:58 +03:00
Kseniia Sumarokova
63a0eb3922
Update DiskWebServer.cpp
2021-08-31 21:51:00 +03:00
Nikita Mikhaylov
f471ed4506
Merge pull request #28037 from nikitamikhaylov/settings-s3-engine
...
Support `SETTINGS` clause for `S3` engine
2021-08-31 21:08:53 +03:00
Nikita Mikhaylov
28eff0e369
save
2021-08-31 18:07:24 +00:00
kssenii
185d29439b
Fix
2021-08-31 20:51:42 +03:00
alesapin
2c7a51d816
Merge pull request #28366 from azat/remove-Temporary-part-fix-v2
...
Fix removing of parts in a Temporary state (v2 followup)
2021-08-31 19:13:15 +03:00
Nikita Mikhaylov
dbc950caa4
added a test
2021-08-31 14:54:24 +00:00
Nikolai Kochetov
487e36720c
Update src/Common/ZooKeeper/ZooKeeper.cpp
...
Co-authored-by: alesapin <alesapin@gmail.com>
2021-08-31 17:50:24 +03:00
Nikolai Kochetov
43d5ada6bd
More accurate check that zk root exists.
2021-08-31 17:37:36 +03:00
Vladimir C
94d5f3a87b
Merge pull request #28349 from vdimir/issue-27691-qf
...
Fix non joined rows from nullable column
2021-08-31 17:09:24 +03:00
Vladimir C
3768bde572
Remove extra space in src/Interpreters/join_common.cpp
2021-08-31 17:08:35 +03:00
kssenii
248fe1fd09
Fix disk
2021-08-31 16:54:43 +03:00
Nikita Mikhaylov
cf50b247cf
update ya.make
2021-08-31 12:55:23 +00:00
Nikita Mikhaylov
e41d1cff1d
Fix test
2021-08-31 12:54:45 +00:00
Nikita Mikhaylov
fcfda4b983
Fix tests and update ya.make
2021-08-31 12:54:45 +00:00
Nikita Mikhaylov
e5593f594d
After rebase
2021-08-31 12:54:06 +00:00
Nikita Mikhaylov
d7a627e5a9
Added test to skip list
2021-08-31 12:54:06 +00:00
Nikita Mikhaylov
ae241fc129
done
2021-08-31 12:54:06 +00:00
Vasily Nemkov
109d2f63d0
Fixed tests and minor style issues
2021-08-31 15:39:15 +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
e39f9aabde
delete useless file
2021-08-31 12:29:51 +00:00
alesapin
7223a32aac
Followup
2021-08-31 15:29:33 +03:00
alesapin
9a3bbf44e3
Better description
2021-08-31 15:28:17 +03:00
vdimir
e8e26463bf
Change signature of ASTSelectQuery::arrayJoinExpressionList
2021-08-31 15:27:44 +03:00
vdimir
34b9bd7d33
Fix build: missing argument in inferJoinKeyCommonType
2021-08-31 15:27:44 +03:00
vdimir
3443b3b5c4
Separate functoin buildJoinedPlan, minor refactoring
2021-08-31 15:27:44 +03:00
vdimir
30e112d6a6
Do not convert join key columns for storage/dict join
2021-08-31 15:27:43 +03:00
vdimir
c4654d6b45
Add option to getMostSubtype/getLeastSupertype to not throw exception
2021-08-31 15:27:25 +03:00
alesapin
921e51e061
Remove some obsolete settings for replicated fetches
2021-08-31 15:22:56 +03:00
vdimir
becd288cb9
Try to remove useless applyJoinKeyConvert
2021-08-31 15:18:44 +03:00
Nikita Mikhaylov
8abee2480e
src/
2021-08-31 12:14:08 +00:00
Nikita Mikhaylov
3027efe860
after merge with master
2021-08-31 12:09:35 +00:00
Anton Popov
268550cc4b
Merge pull request #28272 from Algunenano/faster_sumIF
...
Speed up sumIf/countIf
2021-08-31 15:00:46 +03:00
Nikita Mikhaylov
f8d4f04294
Merge upstream/master into global-merge-executor (using imerge)
2021-08-31 11:52:11 +00:00
Nikita Mikhaylov
1adb9bfe23
better
2021-08-31 11:02:39 +00:00
alesapin
a1ac4fc7e0
Comments
2021-08-31 14:02:26 +03:00
alesapin
49d247ca40
Fix compaction after snapshot
2021-08-31 13:59:39 +03: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
Nikolay Degterinsky
e8713a7d7e
Merge branch 'master' into ncb/import-export-lz4
2021-08-31 13:32:39 +03:00
alesapin
525999145e
Merge pull request #26791 from ClickHouse/async-reads
...
Experiment with asynchronous readers
2021-08-31 13:17:45 +03:00
alesapin
e8ab58bc87
Remove strange comment
2021-08-31 13:07:05 +03:00
alesapin
167372e48a
Add comment
2021-08-31 12:57:22 +03:00
alesapin
decbd99338
Remove debug logs
2021-08-31 12:50:11 +03:00
alesapin
ff0ed1b290
Fix unit test
2021-08-31 12:42:15 +03:00
alesapin
a5400928ab
Interm
2021-08-31 12:12:11 +03:00
Maksim Kita
4ebd0ae941
Merge pull request #28102 from ClickHouse/executable-table-function
...
Merging #23192
2021-08-31 12:00:50 +03:00
Nikolai Kochetov
8143c2e2b8
Merge pull request #28353 from ClickHouse/another-try-to-fix-BackgroundPoolTask-decrement
...
Another try to fix BackgroundPoolTask decrement.
2021-08-31 11:34:26 +03:00
tavplubix
0708d51ad1
Merge pull request #28310 from azat/intersecting-parts
...
Fix intersecting parts due to new part had been replaced with an empty part
2021-08-31 10:27:33 +03:00
Dmitrii Kovalkov
b1eb48804b
Run generate-ya-make.sh
2021-08-31 09:05:33 +03:00
Alexey Milovidov
3663597fa3
Remove idiotic whitespace
2021-08-31 02:54:11 +03:00
Alexey Milovidov
ca6f6306f3
Merge branch 'master' into async-reads
2021-08-31 02:52:58 +03:00
alexey-milovidov
c6a754289b
Merge pull request #28361 from DimasKovas/block_ouput_streams_compats
...
Add compat between SinkToStorage and BlockOutputStream
2021-08-31 01:41:33 +03:00
Alexey Milovidov
2198548ead
Remove unused header
2021-08-31 00:16:19 +03:00
Maksim Kita
c1482ee45b
CHJIT added PageArena
2021-08-30 22:42:35 +03:00
Nikita Mikhaylov
c4416906c8
done
2021-08-30 19:37:03 +00:00
Maksim Kita
c9a0b1e28e
Updated tests
2021-08-30 21:41:36 +03:00
Azat Khuzhin
2c0390f326
Fix removing of parts in a Temporary state (v2 followup)
...
CI reports [1]:
<Fatal> : Logical error: 'Deleting data part all_0_0_0_3 doesn't exist'.
...
<Fatal> BaseDaemon: 8. ./obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeData.cpp:1254: DB::MergeTreeData::removePartsFinally() @ 0x1f94dffa in /usr/bin/clickhouse
[1]: https://clickhouse-test-reports.s3.yandex.net/0/855a53ff8160c4638fe345b0d26e062804ba790a/stress_test_(debug).html#fail1
Follow-up for: #28221
2021-08-30 21:07:26 +03:00
Azat Khuzhin
0828548b88
Fix intersecting parts due to new part had been replaced with an empty part
...
AFAICS the problem is that some parts may be replaced with empty parts
(after #25820 ), and removed by the cleanup thread, due to it is empty
[1] (while it should not be deleted since it can download source part):
<details>
```
2021.08.18 20:11:22.687933 [ 341 ] {} <Trace> test_dpefxp.alter_table_1 (0758ca24-90e7-452c-8758-ca2490e7252c): Created log entry for mutation -1_115_115_0_146
...
2021.08.18 20:11:22.707609 [ 22825 ] {} <Trace> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Executing log entry to mutate part -1_115_115_0 to -1_115_115_0_146
2021.08.18 20:11:22.707643 [ 22825 ] {} <Debug> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Source part -1_115_115_0 for -1_115_115_0_146 is not ready; will try to fetch it instead
...
2021.08.18 20:11:22.709397 [ 333 ] {} <Trace> test_dpefxp.alter_table_6 (ReplicatedMergeTreeQueue): Not executing log entry queue-0000001579 for part -1_115_115_0 because it is covered by part -1_115_115_0_146 that is currently executing.
2021.08.18 20:11:22.718861 [ 22825 ] {} <Information> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): DB::Exception: No active replica has part -1_115_115_0_146 or covering part
...
2021.08.18 20:11:27.936829 [ 295 ] {} <Information> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Going to replace lost part -1_115_115_0_146 with empty part
2021.08.18 20:11:27.957839 [ 295 ] {} <Information> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Created empty part -1_115_115_0_146 instead of lost part
...
2021.08.18 20:11:28.731635 [ 257 ] {} <Trace> test_dpefxp.alter_table_6 (ReplicatedMergeTreeCleanupThread): Cleared 190 old blocks from ZooKeeper
...
2021.08.18 20:11:28.734507 [ 257 ] {} <Trace> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Will try to insert a log entry to DROP_RANGE for part: -1_115_115_0_146
2021.08.18 20:11:28.779373 [ 22837 ] {} <Debug> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Removed 1 parts inside -1_115_115_0_146.
...
2021.08.18 20:11:28.792600 [ 273 ] {} <Trace> test_dpefxp.alter_table_6 (766ae414-e113-4965-b66a-e414e1137965): Created log entry /clickhouse/tables/00993_system_parts_race_condition_drop_zookeeper_test_dpefxp/alter_table/log/log-0000003459 for merge -1_111_118_1
...
2021.08.18 20:11:28.910988 [ 354 ] {} <Error> test_dpefxp.alter_table_7 (ReplicatedMergeTreeQueue): Code: 49. DB::Exception: Part -1_111_118_1 intersects next part -1_115_115_0_146. It is a bug. (LOGICAL_ERROR), Stack trace (when copying this message, always include the lines below):
2021.08.18 20:11:31.282160 [ 305 ] {} <Error> test_dpefxp.alter_table_2 (ReplicatedMergeTreeQueue): Code: 49. DB::Exception: Part -1_111_118_1 intersects next part -1_115_115_0_146. It is a bug. (LOGICAL_ERROR), Stack trace (when copying this message, always include the lines below):
```
</details>
[1]: https://clickhouse-test-reports.s3.yandex.net/27752/59e3cb18f4e53c453951267b5599afeb664290d8/functional_stateless_tests_(release,_wide_parts_enabled).html
2021-08-30 21:05:46 +03:00
kssenii
335b6f12fd
Fix
2021-08-30 20:59:03 +03:00
Raúl Marín
d3d8d4eae6
PVS Studio
2021-08-30 19:37:54 +02:00
Raúl Marín
92799f6cff
Make gcc happy
2021-08-30 19:09:04 +02:00
Vasily Nemkov
3ca0b0c860
Fixed GCC-9 build
2021-08-30 19:08:02 +03:00
alexey-milovidov
ea84b939c2
Merge pull request #28333 from DimasKovas/try_to_fix_arcadia_2_30_08_2021
...
Try to fix arcadia build
2021-08-30 18:53:14 +03:00
Vasily Nemkov
c902afddde
Added system.session_log table
...
Which logs all the info about LogIn, LogOut and LogIn Failure events.
Additional info that is logged:
- User name
- event type (LogIn, LogOut, LoginFailure)
- Event date\time\time with microseconds
- authentication type (same as for IDENTIFIED BY of CREATE USER statement)
- array of active settings profiles upon login
- array of active roles upon login
- array of changed settings with corresponding values
- client address and port
- interface (TCP\HTTP\MySQL\PostgreSQL, etc.)
- client info (name, version info)
- optional LoginFailure reason text message.
Added some tests to verify that events are properly saved with all necessary info via following interfaces:
- TCP
- HTTP
- MySQL
Known limitations
- Not tested against named HTTP sessions, PostgreSQL and gRPC, hence those are not guaranteed to work 100% properly.
2021-08-30 18:28:28 +03:00
Dmitrii Kovalkov
54eeeb7cf2
Add compat between SinkToStorage and BlockOutputStream
2021-08-30 16:58:40 +03:00
vdimir
943b71e4ff
Fix non joined rows from nullable column
2021-08-30 16:33:01 +03:00
vdimir
bb1d22aa19
Log join input and output structure
2021-08-30 16:33:01 +03:00
alesapin
2160a2f8f7
Followup
2021-08-30 16:23:31 +03:00
Kseniia Sumarokova
00bea71610
Merge pull request #25251 from kssenii/disk-over-web-server
...
ClickHouse over web server with static files
2021-08-30 16:18:59 +03:00
alesapin
00935c3bb3
Trying to debug keeper logs disappearance
2021-08-30 16:07:58 +03:00
Nikolai Kochetov
ab45c412d0
Another try to fix BackgroundPoolTask decrement.
2021-08-30 15:45:32 +03:00
Raúl Marín
11d242cf7d
If: Check if work is necessary and combine flags
2021-08-30 14:28:09 +02:00
Raúl Marín
7fb57482c0
Fix bug in countBytesInFilterWithNull
2021-08-30 13:35:22 +02:00
Raúl Marín
d0f8e2d063
Remove memcpy and use the heap
2021-08-30 13:31:51 +02:00
Nikita Mikhaylov
fb66ab75be
Merge pull request #25633 from Avogar/json-as-string
...
Allow data in square brackets in JSONAsString format
2021-08-30 14:06:28 +03:00
tavplubix
b47f34aa17
Merge pull request #28313 from amosbird/fastload
...
Fast data parts loading by delaying table startup process
2021-08-30 13:53:55 +03:00
tavplubix
855a53ff81
Merge pull request #28195 from ClickHouse/maybe_fix_livelock_in_zookeeper_client
...
Maybe fix livelock in ZooKeeper client
2021-08-30 13:40:00 +03:00
Kruglov Pavel
95fd6197dc
Merge pull request #27729 from ContentSquare/sequenceMatchQuickCheck
...
Sequence match quick check
2021-08-30 13:04:23 +03:00
Nikolay Degterinsky
b9ea863a88
Remove unnecessary include
2021-08-30 12:58:56 +03:00
Nikolay Degterinsky
2433d88b82
Merge branch 'master' into log_queries_probability
2021-08-30 12:55:33 +03:00
Nikolay Degterinsky
c9adef001d
Change settings earlier
2021-08-30 12:52:35 +03:00
alesapin
531079c452
Merge pull request #28221 from azat/remove-Temporary-part-fix
...
Fix removing of parts in a Temporary state
2021-08-30 12:39:08 +03:00
zhangxiao871
0cf6506156
reserve for newPoints.
2021-08-30 17:29:25 +08:00
Dmitrii Kovalkov
2c8e2c6995
Fix arcadia build
2021-08-30 12:19:13 +03:00
Raúl Marín
5ad8e93458
Speedup sumIf with Nullable types
2021-08-30 10:54:49 +02:00
Raúl Marín
a5c8af1e1b
Speed up sumIf
2021-08-30 10:54:49 +02:00
Vladimir Chebotarev
de5daa22ab
Revert "MATERIALIZE COLUMN xxx FINAL"
...
This reverts commit bf1430c1ec
.
2021-08-30 11:50:26 +03:00
Vladimir Chebotarev
40bedd88e7
One more fix.
2021-08-30 11:50:01 +03:00
Vladimir Chebotarev
06476089d9
Fixed PVS report.
2021-08-30 11:50:01 +03:00
Vladimir Chebotarev
0d6e0181d6
MATERIALIZE COLUMN xxx FINAL
2021-08-30 11:49:59 +03:00
Vladimir Chebotarev
428657b14f
2. Draw the rest of that owl.
2021-08-30 11:49:26 +03:00
Vladimir Chebotarev
ce0850007f
1. Draw some circles.
2021-08-30 11:49:26 +03:00
alexey-milovidov
af709ab9a0
Merge pull request #28326 from DimasKovas/generate_ya_make_30_08_2021
...
Try to fix arcadia build (generate ya.make)
2021-08-30 11:28:02 +03:00
zhangxiao871
a672c63225
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master
2021-08-30 16:26:24 +08:00
Dmitrii Kovalkov
9871ad70ff
Exclude fuzzers
2021-08-30 11:12:25 +03:00
Dmitrii Kovalkov
8acf0fa16a
run generate-ya-make
2021-08-30 10:57:40 +03:00
kssenii
378f4854da
Rename
2021-08-30 05:50:08 +00:00
Amos Bird
de9e591619
Fast load by delaying table startup
2021-08-30 10:15:32 +08:00
Maksim Kita
d88de46312
StorageExecutable added support for create
2021-08-29 23:19:05 +03:00
Amos Bird
d5d1873b45
Better
2021-08-30 03:00:00 +08:00
alexey-milovidov
77f26e8673
Merge pull request #28299 from amosbird/fixtmprowsource
...
Use real tmp file instead of predefined “rows_sources" for vertical merges
2021-08-29 21:49:59 +03:00
Alexey Milovidov
e4f3d97b52
Merge branch 'master' of github.com:yandex/ClickHouse into async-reads
2021-08-29 21:42:14 +03:00
alexey-milovidov
3d3afbdb35
Merge pull request #28193 from amosbird/alterprimarykey2
...
Reserve protocol number for ALTER PRIMARY KEY.
2021-08-29 20:37:19 +03:00
Kseniia Sumarokova
7784f4ebb0
Merge pull request #28268 from infinivision/hdfs_namenode_ha
...
configable LIBHDFS3_CONF, refers to #8159
2021-08-29 12:25:42 +03:00
Amos Bird
9e7ae5dd6d
Use real tmp file instead of predefined one
2021-08-29 16:54:15 +08:00
kssenii
3e7f022d66
Extend usage comment explanation a little
2021-08-28 20:51:20 +00:00
kssenii
f27f519aa2
Fix build and add example
2021-08-28 20:35:51 +00:00
Maksim Kita
4aa2479ca1
Added support for multiple pipes
2021-08-28 22:47:59 +03:00
Amos Bird
4624bf70b0
Always monotonic for non-zero division
2021-08-28 23:33:18 +08:00
Amos Bird
f2374a6916
Better nullable primary key implementation.
2021-08-28 17:48:28 +08:00
zhongyuankai
72e05cda1f
Merge branch 'master' into add-system-of-table_views
2021-08-28 11:32:58 +08:00
Amos Bird
b68857d086
Simplify projection, add minmax_count projection.
2021-08-28 11:25:37 +08:00
Zhichang Yu
ef1994f420
set env LIBHDFS3_CONF, refers to ClickHouse#8159
2021-08-28 09:16:48 +08:00
tavplubix
e3b2586a02
Merge pull request #28274 from ClickHouse/revert-28054-mysql
...
Revert "Add test for #13398 "
2021-08-28 04:04:10 +03:00
Alexey Milovidov
93ebb40130
Fix warnings
2021-08-28 01:59:34 +03:00
Alexey Milovidov
71ed9ad060
Renaming according to the review suggestions
2021-08-28 01:32:35 +03:00
Alexey Milovidov
79e0433ba7
Merge branch 'master' of github.com:yandex/ClickHouse into async-reads
2021-08-28 01:19:16 +03:00
alexey-milovidov
4eef445df9
Merge pull request #28266 from CurtizJ/fix-order-by-merge
...
Fix order by for `Merge` tables with `optimize_read_in_order`
2021-08-28 01:15:40 +03:00
alexey-milovidov
37b66dc70a
Merge pull request #28234 from kssenii/fix-codes
...
Fix error codes
2021-08-28 00:00:10 +03:00
tavplubix
c36fe210b8
Revert "Add test for #13398 "
2021-08-27 21:07:10 +03:00
alesapin
fde3cc1315
Merge pull request #28197 from ClickHouse/fix_requests_push
...
Fix rare case when watch response received before request response
2021-08-27 20:20:30 +03:00
Maksim Kita
308fb6112d
Merge pull request #28249 from kitaisreal/dictionaries-small-fixes
...
Dictionaries small fixes
2021-08-27 17:01:31 +03:00
Anton Popov
89e1d1f64a
fix order by for StorageMerge with optimize_read_in_order
2021-08-27 16:55:55 +03:00
tavplubix
481cc011c7
Merge pull request #28212 from azat/zookeeper_log-improvements
...
zookeeper_log improvements
2021-08-27 16:22:52 +03:00
Amos Bird
ce96b2c35a
bump
2021-08-27 20:44:26 +08:00
tavplubix
703101fe4d
Merge pull request #27931 from ClickHouse/wait_for_all_replicas_timeouts
...
Avoid too long waiting for inactive replicas
2021-08-27 14:31:36 +03:00
Maksim Kita
0e169b4265
Dictionaries small fixes
2021-08-27 13:46:59 +03:00
Maksim Kita
2e4da05708
CHJIT custom memory manager
2021-08-27 13:35:07 +03:00
Alexander Tokmakov
7ddb4a9ccc
maybe fix livelock in zookeeper client
2021-08-27 13:19:05 +03:00
alesapin
44390a88ec
Merge pull request #28152 from ClickHouse/fix_rotate_log_interval_change
2021-08-27 12:29:15 +03:00
kssenii
a90c6fdba5
Fix
2021-08-27 12:00:16 +03:00
Nikolai Kochetov
34f4bd3e72
Merge pull request #28178 from amosbird/projection-fix14
...
Projection bug fixes and refactoring.
2021-08-27 11:47:46 +03:00
Nikolai Kochetov
614e30e601
Merge pull request #28205 from ClickHouse/fix-lc-and-inifinite-fields
...
Fix insertion of fields with Infinity values in nullable low cardinality columns
2021-08-27 11:28:13 +03:00
Maksim Kita
cdfdb2cd75
Merge pull request #28213 from azat/custom-tld-eof-fix
...
Fix reading of custom TLD w/o new line at EOF
2021-08-27 10:57:16 +03:00
zhongyuankai
a7ee7621dd
optimize code
2021-08-27 15:44:50 +08:00
mergify[bot]
6c34bac4ca
Merge branch 'master' into fix_requests_push
2021-08-27 07:14:48 +00:00
alesapin
b1d4967b88
Merge pull request #28190 from ClickHouse/fix_list_watches_semantics
...
More correct list watches semantics in ClickHouse Keeper
2021-08-27 10:13:25 +03:00
Azat Khuzhin
19458a0c61
Fix removing of parts in a Temporary state
...
Parts in a temporary state is not exists in data_parts_by_info, so do
not try to search there and throw LOGICAL_ERROR in case of failure:
<details>
```
02:45:49.037546 [ 5890 ] {} <Error> test_iy9rta.concurrent_kill_4 (526aa7c8-db2a-4f0e-926a-a7c8db2a9f0e): Code: 40. DB::Exception: Part all_0_0_0_1 from r11 has different columns hash. (CHECKSUM_DOESNT_MATCH) (version 21.10.1.7910 (official build)). Data after mutation is not byte-identical to data on another replicas. We will download merged part from replica to force byte-identical result.
02:45:49.049422 [ 5890 ] {} <Trace> test_iy9rta.concurrent_kill_4 (526aa7c8-db2a-4f0e-926a-a7c8db2a9f0e): Trying to immediately remove part all_0_0_0_1 (state Temporary)
02:45:49.060210 [ 5890 ] {} <Fatal> : Logical error: 'Part all_0_0_0_1 doesn't exist'.
02:47:01.572508 [ 29208 ] {} <Fatal> BaseDaemon: (version 21.10.1.7910 (official build), build id: 9309CECED9A0D32CBB00BB8EC77B91456679868E) (from thread 5890) (no query) Received signal Aborted (6)
...
02:47:06.815000 [ 29208 ] {} <Fatal> BaseDaemon: 8. ./obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeData.cpp:2593: DB::MergeTreeData::tryRemovePartImmediately(std::__1::shared_ptr<DB::IMergeTreeDataPart const>&&) @ 0x1f959e0d in /usr/bin/clickhouse
02:47:06.816309 [ 29209 ] {} <Fatal> BaseDaemon: 8. ./obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeData.cpp:2593: DB::MergeTreeData::tryRemovePartImmediately(std::__1::shared_ptr<DB::IMergeTreeDataPart const>&&) @ 0x1f959e0d in /usr/bin/clickhouse
02:47:09.455665 [ 29208 ] {} <Fatal> BaseDaemon: 9. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:1939: DB::StorageReplicatedMergeTree::tryExecutePartMutation(DB::ReplicatedMergeTreeLogEntry const&) @ 0x1f5f2bf6 in /usr/bin/clickhouse
02:47:09.468738 [ 29209 ] {} <Fatal> BaseDaemon: 9. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:1939: DB::StorageReplicatedMergeTree::tryExecutePartMutation(DB::ReplicatedMergeTreeLogEntry const&) @ 0x1f5f2bf6 in /usr/bin/clickhouse
02:47:11.776857 [ 29208 ] {} <Fatal> BaseDaemon: 10. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:1581: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x1f5e484c in /usr/bin/clickhouse
02:47:11.904232 [ 29209 ] {} <Fatal> BaseDaemon: 10. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:1581: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x1f5e484c in /usr/bin/clickhouse
02:47:13.941811 [ 29208 ] {} <Fatal> BaseDaemon: 11. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:3176: DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18::operator() shared_ptr<DB::ReplicatedMergeTreeLogEntry>&) const @ 0x1f65faa5 in /usr/bin/clickhouse
02:47:14.477158 [ 29209 ] {} <Fatal> BaseDaemon: 11. ./obj-x86_64-linux-gnu/../src/Storages/StorageReplicatedMergeTree.cpp:3176: DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18::operator() shared_ptr<DB::ReplicatedMergeTreeLogEntry>&) const @ 0x1f65faa5 in /usr/bin/clickhouse
02:47:16.475373 [ 29208 ] {} <Fatal> BaseDaemon: 12. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676: decltype(std::__1::forward<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>))(std::__1::forward<std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&>(fp0))) std::__1::__invoke<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMEntry>&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&) @ 0x1f65fa32 in /usr/bin/clickhouse
02:47:16.970325 [ 29209 ] {} <Fatal> BaseDaemon: 12. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676: decltype(std::__1::forward<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>))(std::__1::forward<std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&>(fp0))) std::__1::__invoke<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMEntry>&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&) @ 0x1f65fa32 in /usr/bin/clickhouse
02:47:18.979481 [ 29208 ] {} <Fatal> BaseDaemon: 13. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:317: bool std::__1::__invoke_void_return_wrapper<bool>::__call<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplireeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogE x1f65f9f2 in /usr/bin/clickhouse
02:47:19.450807 [ 29209 ] {} <Fatal> BaseDaemon: 13. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:317: bool std::__1::__invoke_void_return_wrapper<bool>::__call<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplireeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::SelectedEntry>)::$_18&, std::__1::shared_ptr<DB::ReplicatedMergeTreeLogE x1f65f9f2 in /usr/bin/clickhouse
02:47:21.055007 [ 29208 ] {} <Fatal> BaseDaemon: 14. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1608: std::__1::__function::__default_alloc_func<DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr<DB::ReplicatedMergeTreeQueue::ry>)::$_18, bool (std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&)>::operator()(std::__1::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&) @ 0x1f65f9b0 in /usr/bin/clickhouse
02:47:23.546946 [ 413 ] {} <Fatal> Application: Child process was terminated by signal 6.
```
</details>
CI: https://clickhouse-test-reports.s3.yandex.net/0/4a8b82232c11512232df3ecdf4ffaec287116ad5/stress_test_(debug).html#fail1
2021-08-27 10:08:44 +03:00
zhongyuankai
306da6f414
update system views test
2021-08-27 10:41:15 +08:00
Alexey Milovidov
b1478368cd
Fix error
2021-08-27 04:45:14 +03:00
Alexey Milovidov
7df2532d60
Fix style
2021-08-27 04:29:37 +03:00
Alexey Milovidov
6f1789e9da
Add missing file
2021-08-27 03:47:34 +03:00
Alexey Milovidov
864d01e564
Add pread_fake_async method
2021-08-27 03:35:04 +03:00
Alexey Milovidov
0316f1cc3e
Even more instrumentation
2021-08-27 03:08:10 +03:00
Alexey Milovidov
f5ae8ef225
Instrumentation
2021-08-27 03:02:14 +03:00
Alexey Milovidov
91cef77edc
Instrumentation
2021-08-27 03:01:07 +03:00
Alexey Milovidov
84a9be0b14
Move code to .cpp
2021-08-27 02:32:11 +03:00
Alexey Milovidov
46732e781f
Merge branch 'master' of github.com:yandex/ClickHouse into async-reads
2021-08-27 01:57:48 +03:00
Alexey Milovidov
8fd643e22a
Fix build
2021-08-27 01:57:34 +03:00
alexey-milovidov
3d38604c55
Update executeQuery.cpp
2021-08-27 00:59:58 +03:00
Azat Khuzhin
91621cfcd2
Fix reading of custom TLD w/o new line at EOF
...
Fixes : #28177
2021-08-27 00:43:21 +03:00
Azat Khuzhin
a63ef6b8eb
Avoid excessive getpeername(2) calls for zookeeper_log
2021-08-27 00:41:06 +03:00
Azat Khuzhin
5bb0a91f83
Fix system.zookeeper_log.address (Before it always contains "::")
2021-08-27 00:41:06 +03:00
Azat Khuzhin
f342acc2ad
Guard UDF container with a lock
...
Fixes TSAN report [1]:
WARNING: ThreadSanitizer: data race (pid=436)
Write of size 8 at 0x7b040076e450 by thread T240:
...
3 DB::UserDefinedFunctionFactory::registerFunction() obj-x86_64-linux-gnu/../src/Interpreters/UserDefinedFunctionFactory.cpp:30:56 (clickhouse+0x1500727f)
4 DB::InterpreterCreateFunctionQuery::execute() obj-x86_64-linux-gnu/../src/Interpreters/InterpreterCreateFunctionQuery.cpp:37:44 (clickhouse+0x14b1224a)
5 DB::executeQueryImpl() obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:573:32 (clickhouse+0x15039241)
6 DB::executeQuery() obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:934:30 (clickhouse+0x150376fa)
7 DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:291:24 (clickhouse+0x15a7af2a)
Previous read of size 8 at 0x7b040076e450 by thread T1370:
...
2 DB::UserDefinedFunctionFactory::tryGet() const obj-x86_64-linux-gnu/../src/Interpreters/UserDefinedFunctionFactory.cpp:65:45 (clickhouse+0x150078a4)
3 DB::UserDefinedFunctionsMatcher::tryToReplaceFunction() obj-x86_64-linux-gnu/../src/Interpreters/UserDefinedFunctionsVisitor.cpp:39:73 (clickhouse+0x15007cd0)
4 DB::UserDefinedFunctionsMatcher::visit() obj-x86_64-linux-gnu/../src/Interpreters/UserDefinedFunctionsVisitor.cpp:27:19 (clickhouse+0x15007ba8)
5 DB::InDepthNodeVisitor<>::visit() obj-x86_64-linux-gnu/../src/Interpreters/InDepthNodeVisitor.h:34:13 (clickhouse+0x14fbcba4)
..
24 DB::executeQueryImpl() obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:543:28 (clickhouse+0x15038f3b)
[1]: https://clickhouse-test-reports.s3.yandex.net/0/df1fe27791f82c2a917390faa30716effbd32b8f/stress_test_(thread).html#fail1
2021-08-27 00:39:11 +03:00
Nikolai Kochetov
9c028be1e4
Fix insertion of fields with Infinity values in nullable low cardinality columns.
2021-08-26 21:19:12 +03:00
Mike Kot
1f3701d485
Disk empty name fix
2021-08-26 19:28:33 +02:00
alesapin
23325c3fa6
Fix rare case when watch response received before request response
2021-08-26 19:00:41 +03:00
mergify[bot]
401b2f3b8f
Merge branch 'master' into json-as-string
2021-08-26 15:03:59 +00:00
Jakub Kuklis
c60e935830
Adding Format Null to performance test queries, style improvement for the test, additional comments in the code
2021-08-26 16:42:39 +02:00
Nikita Mikhaylov
fc37817ada
Merge pull request #28150 from FArthur-cmd/fix_compression_26149
...
Fix `Attempt to read after eof with enabled data compression`
2021-08-26 17:17:09 +03:00
Amos Bird
103e0abe1c
Reserve protocol number for ALTER PRIMARY KEY.
2021-08-26 22:08:58 +08:00
Nikolay Degterinsky
7c66ad051d
Fix
2021-08-26 16:42:49 +03:00
Kruglov Pavel
5bc332c40c
Merge pull request #28054 from kssenii/mysql
...
Add test for #13398
2021-08-26 16:39:43 +03:00
Nikolay Degterinsky
75575505cf
Merge branch 'master' into log_queries_probability
2021-08-26 16:32:49 +03:00
Kruglov Pavel
12b1e9ae6e
Merge pull request #27881 from azat/remote-query-cancel-fix
...
Fix remote query cancelation (in case of remote server abnormaly terminated)
2021-08-26 16:31:54 +03:00
Kruglov Pavel
3644f2a754
Merge pull request #28096 from CurtizJ/map-keys-conversion
...
Support implicit conversions between index in operator [] and key of Map
2021-08-26 16:31:12 +03:00
Kseniia Sumarokova
31afd7d09c
Merge pull request #28081 from kssenii/pg-conflict
...
Support `on conflict` for postgres engine
2021-08-26 16:30:30 +03:00
zhongyuankai
15cbd7470a
StorageSystemViews bug fix
2021-08-26 20:54:04 +08:00
Filatenkov Artur
eeeef3cc18
Update ZlibInflatingReadBuffer.cpp
2021-08-26 15:43:01 +03:00
Filatenkov Artur
a1240fd575
Update ZlibInflatingReadBuffer.cpp
2021-08-26 15:42:10 +03:00
zhongyuankai
042d17531c
system.views add columns type
2021-08-26 20:05:01 +08:00
alesapin
ebfac8cfbb
More correct list watches semantics in ClickHouse Keeper
2021-08-26 14:50:08 +03:00
Amos Bird
0169fce78e
Projection bug fixes and refactoring.
2021-08-26 19:09:31 +08:00
sdk2
d9308749de
Update src/Functions/GatherUtils/Sources.h
2021-08-26 18:52:17 +08:00
alesapin
bcaff65457
Merge pull request #28028 from ClickHouse/replicated-tree-attach-wip
...
Allow attaching parts with 'compatible' enum types
2021-08-26 13:50:29 +03:00
alesapin
64bc3285e9
Fix merge with master
2021-08-26 13:14:06 +03:00
Filatenkov Artur
1d97ae3f6a
Update ZlibInflatingReadBuffer.cpp
2021-08-26 12:15:10 +03:00
Filatenkov Artur
a7d982198c
Update src/IO/ZlibInflatingReadBuffer.cpp
...
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2021-08-26 11:33:24 +03:00
Filatenkov Artur
f8eb02cb64
Update src/IO/ZlibInflatingReadBuffer.cpp
...
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2021-08-26 11:33:10 +03:00
Ilya Yatsishin
5553a064be
Merge pull request #28139 from lthaooo/fix_prewhere_total_size_of_queried_columns_bug
...
Fix bug in MergeTreeWhereOptimizer
2021-08-26 10:42:23 +03:00
alesapin
137a3681a0
Merge branch 'master' into fix_rotate_log_interval_change
2021-08-26 10:27:56 +03:00
alesapin
47b995467e
Merge pull request #28080 from ClickHouse/some_renames_in_keeper
...
Clickhouse-keeper: renames and comments
2021-08-26 10:16:21 +03:00
Kseniia Sumarokova
aea22ec6a1
Delete getInsertQuery.cpp
2021-08-26 08:44:50 +03:00
Alexey Milovidov
7dd0146223
Fix error
2021-08-26 01:56:08 +03:00
Alexey Milovidov
3cb9cf7242
Merge branch 'master' of github.com:yandex/ClickHouse into async-reads
2021-08-26 01:55:46 +03:00
Alexey Milovidov
d8250ab3d6
Preparation
2021-08-26 01:14:42 +03:00
kssenii
0b66581de2
Fix build
2021-08-25 21:51:43 +00:00
Nikita Mikhaylov
ae7c8df0b9
Merge pull request #27872 from nikitamikhaylov/codecs-fuzzing
...
Add fuzzers for codecs
2021-08-26 00:17:01 +03:00
Nikita Mikhaylov
f99d7d89b8
Added static assert
2021-08-25 21:11:45 +00:00
alesapin
96b78f83a9
Fix typo
2021-08-26 00:04:11 +03:00
Nikita Mikhaylov
28d70dae43
Deleted printing exception message
2021-08-25 20:58:53 +00:00
Maksim Kita
6ccdde4a88
Updated TableFunctionExecutable
2021-08-25 22:30:22 +03:00
Maksim Kita
2403686bb9
Merge pull request #28135 from amosbird/projection-improve3
...
Get rid of useless projection columns during merge
2021-08-25 22:14:38 +03:00
mergify[bot]
69d2a6080b
Merge branch 'master' into fix_compression_26149
2021-08-25 19:01:08 +00:00
Artur
13c2de5fa8
add comments
2021-08-25 18:23:17 +00:00
alesapin
e44f9cd42d
ClickHouse Keeper: Fix endless logs when rotate_interval changed
2021-08-25 21:11:52 +03:00
Artur
239b198a12
fix eof
2021-08-25 16:56:19 +00:00
Mike Kot
407af64280
Merge remote-tracking branch 'upstream/master' into improvement/merge-tree-part-opt-parse
2021-08-25 18:24:43 +02:00
alesapin
eaa49f56dd
Merge pull request #27019 from lthaooo/materialize_ttl_recalculate_only
...
Improvement of Materialize TTL
2021-08-25 19:10:20 +03:00
Nikita Mikhaylov
923d6759c0
Fix style
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
c5ca63c606
Fix performance (probably)
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
de8aa64e56
Deleted file
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
b333e7c744
Better
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
02e097a262
Fix tests
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
43fb3098ae
Deleted some unneded changes
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
3538f1520b
Build fixes after merge
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
08fbab09b0
Fix some issues
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
2c09533c83
lower a binary size for compression fuzzers
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
82a0c9d4df
Fix build
2021-08-25 15:40:56 +00:00
Nikita Mikhaylov
ad4966f6d2
better
2021-08-25 15:40:56 +00:00
Nikolai Kochetov
96b9635c28
Update CMakeLists.txt
2021-08-25 15:40:15 +00:00
Nikita Mikhaylov
e63da5969f
First blood
2021-08-25 15:40:15 +00:00
Kruglov Pavel
4685fb4226
Merge pull request #28140 from FArthur-cmd/fix_style
...
Fix style
2021-08-25 18:34:01 +03:00
Nikita Mikhaylov
0615bf27d6
Merge pull request #27990 from nikitamikhaylov/fix-clang-tidy
...
Build fuzzers in CI
2021-08-25 18:33:41 +03:00
Artur Filatenkov
31c7e22bd6
correct style
2021-08-25 18:29:25 +03:00
lthaooo
eecd5b21c9
fix total_size_of_queried_columns bug
2021-08-25 23:02:13 +08:00
Nikolay Degterinsky
2c81a35b4e
Add setting
2021-08-25 17:41:21 +03:00
Amos Bird
e6a1124ebe
Reload stacktrace cache.
2021-08-25 21:05:48 +08:00
Amos Bird
a6b2a6ee36
Get rid of useless projection columns during merge
2021-08-25 20:54:27 +08:00
Nikolay Degterinsky
99a26b3a9a
Small fix
2021-08-25 15:35:53 +03:00
zhongyuankai
3e18e22cfb
update api
2021-08-25 20:20:05 +08:00
Nikolay Degterinsky
f722132f23
Merge branch 'master' into ncb/import-export-lz4
2021-08-25 14:59:17 +03:00
Filatenkov Artur
884b51116d
Merge branch 'master' into master
2021-08-25 14:34:39 +03:00
Maksim Kita
df1fe27791
Merge pull request #28105 from azat/enable-optimize_distributed_group_by_sharding_key
...
Enable optimize_distributed_group_by_sharding_key by default
2021-08-25 14:07:33 +03:00
zhongyuankai
64efa917d8
review system.views
2021-08-25 18:11:40 +08:00
alesapin
dc576e952a
Update KeeperStorage.cpp
2021-08-25 12:31:02 +03:00
zhongyuankai
52570b1c80
Merge branch 'master' into add-system-of-table_views
2021-08-25 15:59:23 +08:00
Maksim Kita
dc852568c0
Merge pull request #27796 from ClickHouse/create-user-defined-lambda-function
...
Merging #23978
2021-08-25 10:08:20 +03:00
Azat Khuzhin
e8d87053c0
Fix data-race between setConnectionFD() and setTimer() from cancellation path
...
TSan report [1]:
==================
WARNING: ThreadSanitizer: data race (pid=7)
Write of size 8 at 0x7b5000d83768 by thread T539:
0 Poco::Timespan::operator=(Poco::Timespan const&) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Timespan.cpp:61:8 (clickhouse+0x18e2da08)
1 DB::RemoteQueryExecutorReadContext::setConnectionFD(int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutorReadContext.cpp:103:21 (clickhouse+0x142c4f41)
2 DB::RemoteQueryExecutorRoutine::ReadCallback::operator()(int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutorReadContext.cpp:26:30 (clickhouse+0x142c7dae)
3 decltype(std::__1::forward<DB::RemoteQueryExecutorRoutine::ReadCallback&>(fp)(std::__1::forward<int>(fp0), std::__1::forward<Poco::Timespan>(fp0), std::__1::forward<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(fp0))) std::__1::__invoke<DB::RemoteQueryExecutorRoutine::ReadCallback&, int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(DB::RemoteQueryExecutorRoutine::ReadCallback&, int&&, Poco::Timespan&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676:1 (clickhouse+0x142c7cf7)
4 void std::__1::__invoke_void_return_wrapper<void>::__call<DB::RemoteQueryExecutorRoutine::ReadCallback&, int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(DB::RemoteQueryExecutorRoutine::ReadCallback&, int&&, Poco::Timespan&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:348:9 (clickhouse+0x142c7cf7)
5 std::__1::__function::__default_alloc_func<DB::RemoteQueryExecutorRoutine::ReadCallback, void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator()(int&&, Poco::Timespan&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1608:12 (clickhouse+0x142c7c21)
6 void std::__1::__function::__policy_invoker<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::__call_impl<std::__1::__function::__default_alloc_func<DB::RemoteQueryExecutorRoutine::ReadCallback, void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> >(std::__1::__function::__policy_storage const*, int, Poco::Timespan&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2089:16 (clickhouse+0x142c7c21)
7 std::__1::__function::__policy_func<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator()(int&&, Poco::Timespan&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16 (clickhouse+0x1589a8c1)
8 std::__1::function<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator()(int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12 (clickhouse+0x1589a8c1)
9 DB::HedgedConnections::getReadyFileDescriptor(std::__1::function<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) obj-x86_64-linux-gnu/../src/Client/HedgedConnections.cpp:379:13 (clickhouse+0x1589a8c1)
10 DB::HedgedConnections::getReadyReplicaLocation(std::__1::function<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) obj-x86_64-linux-gnu/../src/Client/HedgedConnections.cpp:317:20 (clickhouse+0x1589a8c1)
11 DB::HedgedConnections::receivePacketUnlocked(std::__1::function<void (int, Poco::Timespan, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>, bool) obj-x86_64-linux-gnu/../src/Client/HedgedConnections.cpp:298:32 (clickhouse+0x1589b531)
12 DB::RemoteQueryExecutorRoutine::operator()(boost::context::fiber&&) const obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutorReadContext.cpp:46:51 (clickhouse+0x142c7013)
13 std::__1::enable_if<!(std::is_member_pointer<std::__1::decay<DB::RemoteQueryExecutorRoutine&>::type>::value), std::__1::result_of<DB::RemoteQueryExecutorRoutine& (boost::context::fiber&&)>::type>::type boost::context::detail::invoke<DB::RemoteQueryExecutorRoutine&, boost::context::fiber>(DB::RemoteQueryExecutorRoutine&, boost::context::fiber&&) obj-x86_64-linux-gnu/../contrib/boost/boost/context/detail/invoke.hpp:41:12 (clickhouse+0x142c6be1)
14 boost::context::detail::fiber_capture_record<boost::context::fiber, FiberStack&, DB::RemoteQueryExecutorRoutine>::run() obj-x86_64-linux-gnu/../contrib/boost/boost/context/fiber_ucontext.hpp:291:17 (clickhouse+0x142c6be1)
15 void boost::context::detail::fiber_entry_func<boost::context::detail::fiber_capture_record<boost::context::fiber, FiberStack&, DB::RemoteQueryExecutorRoutine> >(void*) obj-x86_64-linux-gnu/../contrib/boost/boost/context/fiber_ucontext.hpp:72:13 (clickhouse+0x142c5f79)
16 <null> <null> (libc.so.6+0x5e65f)
Previous read of size 8 at 0x7b5000d83768 by thread T321 (mutexes: write M861449115349678976, write M1059607378698108960, write M747733173224015304):
0 Poco::Timespan::totalMicroseconds() const obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/Timespan.h:213:9 (clickhouse+0x142c54b3)
1 DB::RemoteQueryExecutorReadContext::setTimer() const obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutorReadContext.cpp:160:25 (clickhouse+0x142c54b3)
2 DB::RemoteQueryExecutor::tryCancel(char const*, std::__1::unique_ptr<DB::RemoteQueryExecutorReadContext, std::__1::default_delete<DB::RemoteQueryExecutorReadContext> >*) obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutor.cpp:538:26 (clickhouse+0x142be3a5)
3 DB::RemoteQueryExecutor::cancel(std::__1::unique_ptr<DB::RemoteQueryExecutorReadContext, std::__1::default_delete<DB::RemoteQueryExecutorReadContext> >*) obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutor.cpp:462:5 (clickhouse+0x142bdd8a)
4 DB::RemoteSource::onCancel() obj-x86_64-linux-gnu/../src/Processors/Sources/RemoteSource.cpp:112:21 (clickhouse+0x15bf52c6)
5 DB::IProcessor::cancel() obj-x86_64-linux-gnu/../src/Processors/IProcessor.h:237:9 (clickhouse+0x159db37e)
6 DB::PipelineExecutor::cancel() obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:376:20 (clickhouse+0x159db37e)
7 DB::PullingAsyncPipelineExecutor::cancel() obj-x86_64-linux-gnu/../src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:175:25 (clickhouse+0x159e9748)
8 DB::TCPHandler::processOrdinaryQueryWithProcessors() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:700:26 (clickhouse+0x1594f554)
9 DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:329:17 (clickhouse+0x15949a2e)
10 DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1658:9 (clickhouse+0x15959007)
11 Poco::Net::TCPServerConnection::start() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x18cb2e42)
12 Poco::Net::TCPServerDispatcher::run() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x18cb35cf)
13 Poco::PooledThread::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:199:14 (clickhouse+0x18e29c21)
14 Poco::(anonymous namespace)::RunnableHolder::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:55:11 (clickhouse+0x18e280af)
15 Poco::ThreadImpl::runnableEntry(void*) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27 (clickhouse+0x18e26827)
[1]: https://clickhouse-test-reports.s3.yandex.net/27881/b328d9687238617e89c0806c9fa2dd7dd44b5fd7/integration_tests_(thread).htmlfail1
2021-08-25 09:42:30 +03:00
Azat Khuzhin
2df0411b3f
Add TimerDescriptor::setRelative(uint64_t usec)
2021-08-25 09:42:30 +03:00
Azat Khuzhin
225f44248c
Fix remote query cancelation (in case of remote server abnormaly terminated)
...
In case the remote server abnormally terminated, neither FIN nor RST
packet will be sent, and the initiator will not know that the connection
died (unless tcp_keep_alive_timeout > 0).
Fix this, using default timeouts.
2021-08-25 09:42:30 +03:00
lthaooo
314ba1e682
Merge branch 'master' into materialize_ttl_recalculate_only
2021-08-25 10:56:24 +08:00
Alexey Milovidov
53ca1ebca6
Be in style
2021-08-25 03:58:49 +03:00
Alexey Milovidov
c03dc92dd1
Fix excessive logging in ReadBufferFromS3
2021-08-25 03:28:15 +03:00
Alexey Milovidov
da4865a5d8
Remove excessive logging from DiskS3
2021-08-25 03:22:26 +03:00
Alexey Milovidov
5243315227
Improve performance in case without prefetch by avoiding swapping of memory buffers
2021-08-25 03:13:05 +03:00
Alexey Milovidov
384b4304c0
Minor change
2021-08-25 02:56:14 +03:00
Alexey Milovidov
848c2ec23e
Tuneable prefetch
2021-08-25 02:38:08 +03:00
Alexey Milovidov
183891eb0a
Add IDisk::isRemote method
2021-08-25 02:27:20 +03:00
Alexey Milovidov
fd27a2faef
Remove imperfect code
2021-08-25 02:05:55 +03:00
Alexey Milovidov
7c1d0a3baf
Progress on development
2021-08-25 01:24:47 +03:00
Alexey Milovidov
f7ca674b0c
Progress on development
2021-08-25 01:07:06 +03:00
Alexey Milovidov
8f57216180
Progress on development
2021-08-25 00:45:58 +03:00
Alexey Milovidov
4d9ad3725d
Merge branch 'master' into async-reads
2021-08-25 00:45:40 +03:00
Azat Khuzhin
37043b74bf
Enable optimize_distributed_group_by_sharding_key by default
...
Since it requires optimize_skip_unused_shards this should be safe.
2021-08-24 23:49:50 +03:00
Alexey Milovidov
a3ecc2b705
Remove unused include
2021-08-24 23:47:13 +03:00
Maksim Kita
5545959581
Updated StorageExecutable
2021-08-24 22:38:42 +03:00
Maksim Kita
016c7c74f8
Merge branch 'executable-table-function' into add-executable-table-function
2021-08-24 21:45:43 +03:00
kssenii
3cd56266c7
Merge branch 'pg-conflict' of github.com:kssenii/ClickHouse into pg-conflict
2021-08-24 18:29:05 +00:00
kssenii
8613d89001
Fix build
2021-08-24 18:28:38 +00:00
Anton Popov
47bb5eb330
support implicit conversions between index in operator [] and key of Map
2021-08-24 21:16:06 +03:00
Dmitry Novik
2da3893b1f
refactor isCompatibleEnumTypes to remove PVS warning
2021-08-24 21:11:47 +03:00
Mike Kot
d621605954
Merge remote-tracking branch 'upstream/master' into improvement/merge-tree-part-opt-parse
2021-08-24 19:43:33 +02:00
Mike Kot
f85e2e027c
Optional semantics for [Detached]MergeTreePartInfo
2021-08-24 19:43:09 +02:00
Maksim Kita
dce3fc60ad
Fixed build
2021-08-24 19:13:38 +03:00
Maksim Kita
82ba24cd10
Merge branch 'master' into create-user-defined-lambda-function
2021-08-24 19:12:32 +03:00
tavplubix
0602d74a11
Merge pull request #28035 from ClickHouse/fix_replace_ranges_may_stuck
...
Fix race between REPLACE PARTITION and MOVE PARTITION
2021-08-24 17:49:57 +03:00
Vitaly Baranov
64f69462c6
Merge pull request #27921 from vitlibar/add-tests-for-field-init
...
Allow implicit cast bool to Field
2021-08-24 17:15:44 +03:00
alesapin
916e6cc9f2
Fix style
2021-08-24 17:06:10 +03:00
Nikolay Degterinsky
7630180fe7
Merge pull request #28078 from excitoon/patch-12
...
Fixed a typo in comments to `SinkToStorage`
2021-08-24 16:25:24 +03:00
Nikolay Degterinsky
8295d8f2d7
Update src/Processors/Sinks/SinkToStorage.h
2021-08-24 16:25:01 +03:00
Nikolai Kochetov
0f3133e22e
Use old error code.
2021-08-24 16:14:45 +03:00
Kseniia Sumarokova
5bbf5dacc5
Update src/Storages/StoragePostgreSQL.cpp
...
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2021-08-24 16:13:57 +03:00
Kseniia Sumarokova
ee7f710e35
Update TableFunctionPostgreSQL.cpp
2021-08-24 16:13:41 +03:00
kssenii
0ec716292c
Postgres ON CONFLICT
2021-08-24 12:37:32 +00:00
alesapin
95cf0634dc
Clickhouse-keeper: renames and comments
2021-08-24 15:30:31 +03:00
alexey-milovidov
739caf86d5
Merge pull request #27484 from excitoon/patch-10
...
Don't silently ignore errors and don't count delays in `ReadBufferFromS3`
2021-08-24 15:26:39 +03:00
OnePiece
17ba4c620e
Merge branch 'ClickHouse:master' into add-system-of-table_views
2021-08-24 20:20:24 +08:00
OnePiece
e9edabc3cb
Update attachSystemTables.cpp
2021-08-24 20:09:36 +08:00
OnePiece
d2919e98c7
Update attachSystemTables.cpp
2021-08-24 20:09:04 +08:00
OnePiece
29aa41577f
Create StorageSystemTableViews.h
2021-08-24 20:07:48 +08:00
OnePiece
ba594f41b9
Create StorageSystemTableViews.cpp
2021-08-24 20:07:08 +08:00
OnePiece
40673aa1f5
Update DatabaseCatalog.cpp
2021-08-24 20:05:29 +08:00
OnePiece
01f4e2e0e0
Update DatabaseCatalog.h
2021-08-24 20:03:49 +08:00
Dmitry Novik
1984940eb6
Update all StorageInMemoryMetadata::check overloads
2021-08-24 14:59:35 +03:00
Vladimir Chebotarev
82ef8a2b7b
Fixed a typo in comments to SinkToStorage
.
2021-08-24 14:59:29 +03:00
Kseniia Sumarokova
d78e551de9
Update src/Disks/DiskWebServer.cpp
...
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2021-08-24 12:24:54 +03:00
mergify[bot]
ae22bab2c4
Merge branch 'master' into materialize_ttl_recalculate_only
2021-08-24 08:49:19 +00:00
Nikolay Degterinsky
d60f128a9a
Merge branch 'master' into ncb/import-export-lz4
2021-08-24 11:47:10 +03:00
Vladimir C
5f4ca42d15
Merge pull request #23051 from excitoon-favorites/s3partitionedwrite
2021-08-24 10:58:43 +03:00
kssenii
0d5000f917
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into mysql
2021-08-24 07:30:42 +00:00
kssenii
14b87feb27
Fix build
2021-08-24 07:30:33 +00:00
kssenii
b536653851
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into disk-over-web-server
2021-08-24 07:29:50 +00:00
Vladimir C
0858fdf113
Merge pull request #27036 from nickitat/nickitat_select_filter
2021-08-24 10:18:55 +03:00
Nikolai Kochetov
3db619cffc
Merge pull request #28027 from ClickHouse/fix-throw-without-exception-in-mysql
...
Fix throw without exception in MySQL source.
2021-08-24 10:13:12 +03:00
Vladimir C
98acccbdcc
Merge branch 'master' into s3partitionedwrite
2021-08-24 10:03:57 +03:00
Vitaly Baranov
1efed59d84
Update Field.h
2021-08-24 08:53:21 +03:00
kssenii
5307d31924
Throw for alter and silence for drop
2021-08-23 23:48:53 +00:00
Nikolai Kochetov
2a0e45a595
Fix throw without exception in MySQL source.
2021-08-23 22:20:30 +00:00
kssenii
962f415740
Add test and settings
2021-08-23 22:18:04 +00:00
Dmitry Novik
e78f9b3d4b
code cleanup
2021-08-24 00:42:03 +03:00