zhanglistar
213a3481b5
move mmap file2buffer to function
2022-02-15 20:25:19 +08:00
zhanglistar
ceeed2e928
keeper no memory snapshot
2022-02-14 21:34:55 +08:00
zhanglistar
edcea7dc31
keeper snapshot memory opt.
2022-02-14 19:43:08 +08:00
Azat Khuzhin
bedf208cbd
Use fmt::runtime() for LOG_* for non constexpr
...
Here is oneliner:
$ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'
Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:
$ cat fmt.cocci
@@
expression log;
expression var;
@@
-LOG_DEBUG(log, var)
+LOG_DEBUG(log, fmt::runtime(var))
I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
alesapin
ab2aca2699
Fix bug in keeper which can lead to inconsistent snapshots
2022-01-24 13:17:40 +03:00
alesapin
3fed7c0f55
Fix race condition
2022-01-22 23:28:43 +03:00
alesapin
2ee3f70330
Fix erase
2022-01-22 22:36:23 +03:00
alesapin
7771249730
Fix tests
2022-01-22 19:30:45 +03:00
alesapin
460c01f2ea
Fix path
2022-01-22 18:29:36 +03:00
alesapin
706c055656
Buildable
2022-01-21 21:09:46 +03:00
alesapin
a7f9377835
Fix style
2022-01-21 18:01:45 +03:00
alesapin
dd1a361960
Fix typo
2022-01-21 17:57:05 +03:00
alesapin
ab2146d2a0
Better hash set and less locks
2022-01-21 17:26:50 +03:00
alesapin
9248a1ae03
Not so ugly interface
2022-01-21 16:35:28 +03:00
alesapin
35b6b11a5d
Fix hash
2022-01-19 16:47:12 +03:00
alesapin
044cc3a00e
Control snapshot size better
2022-01-19 16:38:11 +03:00
alesapin
9ea6b8c2d3
Some interm state
2022-01-19 14:46:29 +03:00
alesapin
3d325aacf6
Merge branch 'master' into better_hashmap
2022-01-19 12:31:23 +03:00
Kruglov Pavel
2295a07066
Merge pull request #33534 from azat/fwd-decl
...
RFC: Split headers, move SystemLog into module, more forward declarations
2022-01-18 17:22:49 +03:00
alesapin
07f3d08a1a
Fix stupid bug
2022-01-17 17:54:09 +03:00
alesapin
4fb8761a22
Merge branch 'master' into better_hashmap
2022-01-17 15:51:50 +03:00
alesapin
b2271cc2d9
Merge pull request #33288 from JackyWoo/add_lower_bound_session_timeout_to_keeper
...
Add lower bound session timeout to keeper
2022-01-17 14:06:15 +03:00
mergify[bot]
085492614b
Merge branch 'master' into add_lower_bound_session_timeout_to_keeper
2022-01-13 12:21:46 +00:00
小路
2d1d640a48
Update ZooKeeperDataReader.cpp
2022-01-13 17:31:54 +08:00
zhangxiao871
b9aa46c5a6
fix session_id_counter for keeper-converter
2022-01-12 17:56:51 +08:00
Azat Khuzhin
aee034a597
Use explicit template instantiation for SystemLog
...
- Move some code into module part to avoid dependency from IStorage in SystemLog
- Remove extra headers from SystemLog.h
- Rewrite some code that was relying on headers that was included by SystemLog.h
v2: rebase
v3: squash move into module part with explicit template instantiation
(to make each commit self compilable after rebase)
2022-01-10 22:01:41 +03:00
alesapin
0860acb4ef
Merge pull request #33246 from nicelulu/fix_acl_map
...
Fix acl map num
2022-01-08 17:48:00 +03:00
JackyWoo
679d18c5e1
reset last_latency when reset keeper stats
2022-01-07 22:17:03 +08:00
zhangxiao871
30eb0921b0
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master
2022-01-07 17:30:32 +08:00
枢木
a6c1bd0935
Add config to enable ipv4 or ipv6.
2022-01-07 17:22:20 +08:00
alesapin
f8114126ed
Use HashMap and arena with free lists for keeper
2021-12-30 19:21:49 +03:00
JackyWoo
569ce62e8d
use session_timeout as session timeout uper bound
2021-12-30 17:18:51 +08:00
JackyWoo
d35e5f8319
add lower bound session timeout to keeper
2021-12-29 20:59:01 +08:00
alesapin
7e1767542c
Merge pull request #33249 from nicelulu/fix_acl
...
clickhouse-keeper acl consistent with zookeeper, accept generated digest
2021-12-29 13:21:10 +03:00
zhangxiao871
daa4c9e33b
clickhouse-keeper acl consistent with zookeeper, accept generated digest
2021-12-28 17:17:01 +08:00
zhangxiao871
9303b5f0ce
better process empty acls
2021-12-28 15:54:00 +08:00
zhangxiao871
2e9979d672
Fix ACLMap num
2021-12-28 15:44:07 +08:00
alesapin
8bb6205293
Fix keeper log messages
2021-12-27 15:23:44 +03:00
Alexey Milovidov
f03cb4c762
Cleanup trash from Kafka and HDFS
2021-12-25 06:10:59 +03:00
zhanglistar
e4006b2cfd
Merge branch 'ClickHouse:master' into keepersizeopt
2021-12-17 14:35:19 +08:00
zhanglistar
bc4a2ca073
Update KeeperStorage.cpp
...
modify potential overflow sub.
2021-12-16 09:25:38 +08:00
bharatnc
a3dfb89927
remove unused headers in test
2021-12-11 08:30:22 -08:00
zhanglistar
2af221df18
1. update node size in set processor.
2021-12-11 22:24:59 +08:00
zhanglistar
de3aad085d
1. fix ut fail.
2021-12-10 10:26:28 +08:00
zhanglistar
2509e879db
1. snapshot add size of Node.
2021-12-09 23:09:56 +08:00
zhanglistar
91f26edeca
Update KeeperStorage.h
...
delete trailing whitespaces.
2021-12-09 18:15:53 +08:00
zhanglistar
359257483a
Update KeeperStorage.h
2021-12-09 18:05:11 +08:00
zhanglistar
21f50f95b2
Update KeeperStorage.h
...
fix code style
2021-12-09 18:04:29 +08:00
zhanglistar
368fa9144a
1. opt keeper sizeInBytes caculation.
2021-12-08 14:52:21 +08:00
alesapin
437591f2fa
Add check for duplicate hostnames and IDs in KeeperConfig
2021-12-02 14:46:33 +03:00