Commit Graph

568 Commits

Author SHA1 Message Date
Alexey Milovidov
f5518c0c43 Simplification 2020-03-06 01:45:59 +03:00
Alexey Milovidov
a0ace3e94a Fixed error 2020-03-06 00:50:58 +03:00
Alexey Milovidov
c2aae62d75 Merge branch 'session-cleaner-better-build-time' of github.com:yandex/ClickHouse into session-cleaner-better-build-time 2020-03-06 00:42:55 +03:00
Alexey Milovidov
5d077e0213 Fixed error 2020-03-06 00:41:46 +03:00
Alexey Milovidov
d4d48a0165 Fix style 2020-03-05 23:02:55 +03:00
Alexey Milovidov
3b85f2ffef Do not run session cleaner for client, local 2020-03-05 22:23:39 +03:00
Alexey Milovidov
2acd6afe0b Fixed build 2020-03-05 18:08:25 +03:00
Alexey Milovidov
722a946ce5 Merge branch 'session-cleaner-better-build-time' of github.com:ClickHouse/ClickHouse into session-cleaner-better-build-time 2020-03-05 18:00:40 +03:00
Alexey Milovidov
3aba47aa8b Merge branch 'master' into session-cleaner-better-build-time 2020-03-05 17:59:49 +03:00
Alexey Milovidov
4e15d74469 Better code around sessions, step 3 2020-03-05 07:10:48 +03:00
Alexey Milovidov
aac2f98870 Better code around sessions, step 2 2020-03-05 06:57:31 +03:00
Alexey Milovidov
156e6246c1 Better code around sessions 2020-03-05 06:12:07 +03:00
Alexey Milovidov
ef7fd6c486 Merge branch 'master' into session-cleaner-better-build-time 2020-03-05 05:14:28 +03:00
Vladimir Chebotarev
2bd6474379 Adding storage policies and disks while reloading configuration. 2020-03-04 15:10:17 +03:00
Alexey Milovidov
dc086b20a9 Fixed wrong code around Memory Profiler 2020-03-03 03:24:44 +03:00
Vitaly Baranov
5b4b40f86f
Merge pull request #9447 from vitlibar/shard-clamps-settings-to-constraints
Shard now clamps the settings from the initiator.
2020-03-01 20:33:52 +03:00
Vitaly Baranov
fc0376a170 Shard now clamps the settings got from the initiator to the shard's constaints instead of throwing an exception. 2020-03-01 02:18:49 +03:00
Vitaly Baranov
39d9c315d4 Simplify the message about authentication: now the same message is used in all cases of failed authentication. 2020-03-01 00:27:15 +03:00
Vitaly Baranov
455fad5919 Add attach mode to access-controlling SQL. 2020-02-28 16:34:18 +03:00
Alexey Milovidov
766ae8261a Added some missing ErrorCodes 2020-02-25 21:02:41 +03:00
Alexey Milovidov
3602126a1e Remove unused ErrorCodes 2020-02-25 17:35:37 +03:00
Vitaly Baranov
c1e870d493
Merge pull request #9182 from vitlibar/RBAC-5.2
RBAC-5.2
2020-02-22 03:55:17 +03:00
Vitaly Baranov
ae18d443c8 Introduce roles. 2020-02-21 06:03:03 +03:00
Vitaly Baranov
4f85c148b5 Move event handling away from Context. 2020-02-21 03:27:23 +03:00
Vitaly Baranov
5849dd2236 Slightly better solution for checking row policy for distributed tables,
now it checks both current user's and initial user's filters.
2020-02-21 00:57:42 +03:00
Vitaly Baranov
244c9d5325 Add class GenericRoleSet to represent a set of IDs of users and roles. 2020-02-21 00:57:42 +03:00
Vitaly Baranov
ed2061db8a Better pointers: std::shared_ptr<const QuotaContext> instead of std::shared_ptr<QuotaContext>, boost::atomic_shared_ptr instead of std::atomic_load/store. 2020-02-21 00:57:42 +03:00
Alexey Milovidov
a739e42740 Better build time 2020-02-19 21:41:22 +03:00
Ivan
bef233f450
Add simple memory profiler (#8765)
* Add new trace type to system.trace_log table

* [WIP]

* Add settings for soft limit raising.

* Remove unused diff

* Remove unused diff

* Some renames

* Fix client hanging on quit

* Remove obsolete pointer for trace collector in context.

* Use memory tracker on query level.

* Fix TSan tests

* Try to simplify TraceCollector initialization.

It allows to workaround first call inside signal handler

* Initialize TraceCollector before setting signal handlers

* Attempt to fix

* Fix Int64 → UInt64 for |size|

* Explicitly reset global TraceCollector instance.
2020-02-12 15:37:40 +03:00
Ivan Lezhankin
5644fa8c41 Explicitly reset global TraceCollector instance. 2020-02-11 18:16:53 +03:00
Ivan
1b55150701
Add row-level filter support to Distributed engine (#8926)
* Add tests
* Implement support for initial user on remote side.
2020-02-07 22:31:09 +03:00
Ivan Lezhankin
abb1220cb3 Merge branch 'master' into memory-profiler 2020-02-07 18:16:41 +03:00
Vitaly Baranov
c9f2713cc4 Remove getting user by name from Context. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
08c6061bdf Add user_id to Context. 2020-02-06 18:12:54 +03:00
Ivan Lezhankin
88095b636e Merge remote-tracking branch 'upstream/master' into memory-profiler 2020-02-03 16:21:21 +03:00
Vitaly Baranov
caeed69fe0 Change access rights dynamically when users.xml is edited. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
10c912dab2 Rewrite the User class to be controlled by AccessControlManager. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
168002376b Remove old access rights checking code. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
9e910222da Add interfaces to check access rights. 2020-01-31 19:23:33 +03:00
Ivan Lezhankin
df0a3ce221 Merge remote-tracking branch 'upstream/master' into memory-profiler 2020-01-28 18:34:19 +03:00
Ivan Lezhankin
09b39b78e4 Remove obsolete pointer for trace collector in context. 2020-01-24 18:40:08 +03:00
Azat Khuzhin
88bfb788a9 Add ability to use multiple disks/volumes for temporary data
This patch adds <tmp_policy> config directive, that will define the
policy to use for storing temporary files, if it is not set (default)
the <tmp_path> will be used.

Also tmp_policy has some limitations:
- move_factor              is ignored
- keep_free_space_bytes    is ignored
- max_data_part_size_bytes is ignored
- must have exactly one volume
2020-01-23 20:31:01 +03:00
Ivan Lezhankin
7706e0a35c Some renames 2020-01-22 18:20:19 +03:00
Ivan Lezhankin
1934706ca9 [WIP] 2020-01-21 19:39:52 +03:00
Alexander Tokmakov
9389c83d4d Merge branch 'master' into table_name_in_istorage 2020-01-13 14:41:42 +03:00
Pradeep Chhetri
4941fdfe4b Fix some spelling mistakes 2020-01-11 17:51:33 +08:00
Alexey Milovidov
02e90b13e2 Fixed error 2020-01-10 15:47:59 +03:00
Alexander Tokmakov
9b75ee2378 Merge branch 'master' into table_name_in_istorage 2020-01-09 17:33:58 +03:00
Alexey Milovidov
ae2cc175ae Fixed potential performance issue in "Context::getTable" method 2020-01-06 02:00:31 +03:00
alexey-milovidov
e712b22dda
Merge pull request #8484 from ClickHouse/obsolete-mark-cache-min-lifetime
Make "mark_cache_min_lifetime" setting obsolete
2019-12-31 20:56:54 +03:00