Andrej Hoos
f447c5418d
Optimize query uniqueness check in ProcessList - move after cancelled_cv.wait
2023-11-23 00:21:56 +01:00
Andrej Hoos
9b549fd4fc
Optimize query uniqueness check in ProcessList
2023-11-22 15:26:44 +01:00
Alexey Gerasimchuck
c2f4dc0f14
Implemented peak_threads_usage
2023-09-07 01:32:39 +00:00
alesapin
aba291ca68
Revert "Revert "Add an ability to specify allocations size for sampling memory profiler""
2023-07-30 14:01:34 +02:00
Alexey Milovidov
43bd6d1b83
Revert "Add an ability to specify allocations size for sampling memory profiler"
2023-07-23 19:00:49 +03:00
Alexander Sapin
4695ec6802
Add an ability to specify allocations size for sampling memory profiler
2023-07-21 14:56:29 +02:00
Raúl Marín
1a615586d7
Merge branch 'master' into async_to_query_log
2023-06-27 13:12:13 +02:00
Vitaly Baranov
c01d5ed004
Fix after review.
2023-06-27 00:27:51 +02:00
Vitaly Baranov
fad07bf4b8
Fix using locks in ProcessList.
2023-06-23 23:49:51 +02:00
Raúl Marín
b1cedf0e42
Simplify handling of AsyncInsertFlush
2023-06-20 11:38:19 +02:00
Raúl Marín
cf74aee6c9
Log async query flushes to query_log
2023-06-20 11:38:19 +02:00
Azat Khuzhin
5b2b20a0b0
Rename ThreadGroupStatus to ThreadGroup
...
There are methods like getThreadGroup() and ThreadGroupSwitcher class,
so seems that this is logical.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-07 15:31:48 +02:00
vdimir
bae1286b63
Update temp_data_on_disk in shared context
2023-04-05 10:07:44 +00:00
avogar
64db4c478b
Use one map
2023-03-27 13:19:45 +00:00
avogar
d00587202d
Make better
2023-03-24 19:25:07 +00:00
avogar
ee0fd39f2a
Fix data-race
2023-03-24 15:20:19 +00:00
Kruglov Pavel
9003b7d789
Fix tsan error lock-order-inversion
2023-03-23 20:14:32 +01:00
Sema Checherinda
3c6deddd1d
work with comments on PR
2023-03-16 19:55:58 +01:00
Sema Checherinda
67ac858a52
remove counters for threads, fix negative counters
2023-03-15 22:22:22 +01:00
Nikolai Kochetov
0da310c8dc
Update ProcessList.cpp
2023-03-07 15:30:40 +01:00
Kruglov Pavel
e4751f95e1
Fix typo
2023-03-06 14:56:05 +01:00
Kruglov Pavel
aa776d00fe
Use executors snapshot
2023-03-06 13:24:36 +01:00
Alexey Milovidov
694f5eb0a8
Update ProcessList.cpp
2023-03-04 12:10:27 +03:00
avogar
221ac4a1e5
Better
2023-03-03 13:23:44 +00:00
avogar
14351922e3
Fix possible deadlock in QueryStatus
2023-03-02 17:20:29 +00:00
Alexey Milovidov
9b908a0be0
Fix trash around query kind, part 2
2023-02-01 03:31:31 +01:00
Alexey Milovidov
5c4db119fa
Fix trash around query kind, part 1
2023-02-01 03:11:54 +01:00
Alexander Tokmakov
bb4c8e169f
check number of parameters in format string
2023-01-23 23:16:16 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Alexander Tokmakov
72e8615bec
formatting of some exception messages
2023-01-17 20:03:56 +01:00
Nikolay Degterinsky
dfe93b5d82
Merge pull request #42284 from Algunenano/perf_experiment
...
Performance experiment
2022-12-30 03:14:22 +01:00
Raúl Marín
5de11979ce
Unify query elapsed time measurements ( #43455 )
...
* Unify query elapsed time reporting
* add-test: Make shell tests executable
* Add some tests around query elapsed time
* Style and ubsan
2022-12-28 21:01:41 +01:00
Nikolay Degterinsky
9b6d31b95d
Merge branch 'master' into perf_experiment
2022-12-13 17:15:07 +01:00
Anton Popov
312dd725b4
allow to send profile events to trace_log
2022-11-24 20:12:16 +00:00
Alexey Milovidov
127631ee47
Merge branch 'master' into perf_experiment
2022-11-12 18:58:25 +01:00
serxa
da114e7ab7
fix bandwidth throttlers initialization order
2022-11-07 18:29:00 +00:00
Raúl Marín
6e0a9452e7
Merge remote-tracking branch 'blessed/master' into perf_experiment
2022-10-25 15:25:06 +02:00
Azat Khuzhin
56bc85746f
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
Conflicts:
- src/Interpreters/ProcessList.cpp
2022-10-22 16:49:08 +02:00
Nikolai Kochetov
80867cb1fe
Add more trash.
2022-10-21 22:19:06 +00:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Alexey Milovidov
f88ed8195b
Fix trash
2022-10-17 04:21:08 +02:00
Raúl Marín
19310a5877
Replace std::vector with absl inlined_vector
2022-10-13 21:50:11 +02:00
Alexey Milovidov
2f83d87905
Make thread_ids unique
2022-10-08 02:42:41 +02:00
vdimir
498ba33160
Rename max_temp_data_on_disk -> max_temporary_data_on_disk
2022-10-01 08:51:33 +00:00
vdimir
0f1a7c252d
better TemporaryDataOnDisk
2022-09-29 09:51:46 +00:00
vdimir
9f3f34548c
Allow to create temporaty streams on leaf TemporaryDataOnDisk
2022-09-29 09:51:45 +00:00
vdimir
15c7a3be34
Temp data on disk: build
2022-09-29 09:51:41 +00:00
vdimir
c0898ce289
Use abstraction for temporary data on disk in Sort and Aggregation
2022-09-29 09:51:41 +00:00
Alexander Tokmakov
f9e7451d88
Merge pull request #41343 from azat/deadlock-fix
...
Fix possible deadlock with async_socket_for_remote/use_hedged_requests and parallel KILL
2022-09-20 16:59:31 +03:00
Azat Khuzhin
f76f14a99c
Fix possible hung/deadlock on query cancellation
...
Right due to graceful cancellation of the query, it is possible to hung
accepting new queries or even have a deadlock, this is because
cancellation is done while acquiring ProcessListBase::mutex.
So this patch makes query cancellation lock-free, and now the lock will
be acquired only for preparing the query and after cancel is done.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-09-19 17:31:21 +02:00