alesapin
bf0a4864ac
Add support for set/get ACL commands
2021-06-22 13:49:35 +03:00
alesapin
71e9689ba6
Fix PVS warning
2021-06-21 22:59:19 +03:00
alesapin
731edc9a6d
Fixes in ACLs
2021-06-21 18:45:45 +03:00
alesapin
76cee4e3cf
Debugging
2021-06-21 16:58:39 +03:00
alesapin
b5dae909dd
Add some tests
2021-06-18 21:36:19 +03:00
alesapin
2d8f45a098
Add some initialization
2021-06-18 11:55:59 +03:00
alesapin
1747c254dc
Remove unused flag
2021-06-17 21:36:50 +03:00
alesapin
dbe4ba8c2c
Merge branch 'update_buffer_size_in_nuraft' into zookeeper_snapshots
2021-06-17 19:51:11 +03:00
alesapin
dc893f9644
Update NuRaft buffer to 64 bit size
2021-06-17 19:37:08 +03:00
alesapin
1a6abb4db4
Better
2021-06-17 19:32:50 +03:00
alesapin
d513d14b2c
Add some functions for data conversion
2021-06-17 16:29:11 +03:00
alesapin
39e843d9c7
Some code for snapshot deserialization
2021-06-15 09:45:19 +03:00
alesapin
312bab0f32
Fix empty check
2021-05-28 18:37:23 +03:00
alesapin
4fac425fd2
Fix loop
2021-05-28 16:07:16 +03:00
alesapin
b4b9d16fb0
Remove debug
2021-05-28 14:55:01 +03:00
alesapin
a1efea20dc
Better ACLs storage on disk (update snapshot version)
2021-05-28 14:52:19 +03:00
alesapin
4d59590b7f
Slightly better
2021-05-27 11:15:46 +03:00
mergify[bot]
d1338230f4
Merge branch 'master' into keeper_auth
2021-05-26 13:55:00 +00:00
alesapin
359668a20b
Fix benign race (detected by clang-12) in Keeper snapshots
2021-05-25 18:05:51 +03:00
alesapin
d72d28a0a5
Fix clang tidy
2021-05-24 18:53:11 +03:00
alesapin
77d4002498
Fix unit tests
2021-05-24 15:26:23 +03:00
alesapin
11ac483e12
Add tests
2021-05-24 15:18:04 +03:00
alesapin
cd815efaee
Merge branch 'master' into keeper_auth
2021-05-23 20:57:18 +03:00
alesapin
472a41b287
Superdigest support
2021-05-23 20:54:42 +03:00
alesapin
bdb52bb643
Fixup ACL
2021-05-22 19:21:52 +03:00
alesapin
b9e9c9cf23
More correct implementation
2021-05-22 19:07:47 +03:00
alesapin
8c06f81130
Followup fix
2021-05-22 10:50:23 +03:00
alesapin
8c63f0f8e2
Fix race condition on keeper shutdown
2021-05-22 10:46:12 +03:00
alesapin
6e593cda7b
Working test
2021-05-22 10:38:50 +03:00
alesapin
ec8394ed1d
Initial implementation
2021-05-22 00:19:22 +03:00
alesapin
31181095e7
Review fixes
2021-05-18 17:08:56 +03:00
alesapin
bae419be36
Fix typo
2021-05-15 18:29:07 +03:00
alesapin
852608c937
Don't abort on Auth request
2021-05-15 18:01:00 +03:00
alesapin
bfa23d7e02
Merge branch 'master' into standalone_keeper
2021-05-13 11:03:07 +03:00
alesapin
f2a8b5b2c6
Fix concurrent snapshot read/write
2021-05-12 23:28:01 +03:00
alesapin
43ee9f0a3a
Check for directory owner
2021-05-12 17:05:44 +03:00
alesapin
591abbaded
Better error codes in Keeper while no leader alive
2021-05-11 16:54:36 +03:00
Alexey Milovidov
367f7fe6c9
Fix warnings by PVS-Studio
2021-05-08 23:57:08 +03:00
Alexey Milovidov
e905883c75
More fixes for PVS-Studio
2021-05-08 19:12:31 +03:00
Alexey Milovidov
8b9c058141
Fix bad code in Keeper (found by PVS-Studio)
2021-05-08 19:11:31 +03:00
Alexey Milovidov
241c7a94da
Fix bad code in Keeper (found by PVS-Studio)
2021-05-08 19:11:08 +03:00
alesapin
ce848ff2f0
Fix tidy
2021-04-17 17:06:49 +03:00
alesapin
1b4e3ea1d4
Fix unit tests with new API
2021-04-16 23:07:40 +03:00
alesapin
5c7fa239e2
One more typo
2021-04-16 22:08:52 +03:00
alesapin
8ff272cf7c
Fix typo
2021-04-16 21:35:03 +03:00
alesapin
690045c67f
Fix nasty bug
2021-04-16 21:31:23 +03:00
alesapin
7ed32dddf0
More checks
2021-04-16 17:00:12 +03:00
alesapin
7f69910e97
Followup fix
2021-04-16 16:56:57 +03:00
alesapin
539f6cda8b
Followup fix
2021-04-16 16:56:05 +03:00
alesapin
aecab0a1f6
Followup fix
2021-04-16 16:55:39 +03:00
alesapin
e724952c03
Fix obvious bug
2021-04-16 16:53:48 +03:00
alesapin
f168bfae6d
More optimal
2021-04-16 16:50:09 +03:00
alesapin
50103ff0bc
Merge branch 'master' into keeper_bench_mark
2021-04-15 11:30:33 +03:00
alesapin
b115b8af3d
Something working
2021-04-13 14:55:08 +03:00
alesapin
bc8ebb1028
Simplify build
2021-04-12 16:11:43 +03:00
alesapin
338ff1615c
Simplier config
2021-04-12 15:40:01 +03:00
alesapin
ef34c95c7e
Add SSL to keeper (both client and internal)
2021-04-12 15:25:52 +03:00
alesapin
07442b1170
Fix stupid sed
2021-04-08 17:24:05 +03:00
alesapin
c28a3b860c
Fix Coordination darwin build
2021-04-08 17:17:57 +03:00
alesapin
a1164a7e4c
More consistent
2021-04-07 13:21:53 +03:00
alesapin
36c0e601a9
Better non-dirty fix
2021-04-07 13:18:07 +03:00
alesapin
05eeec16c1
Fix potential segfault on Keeper startup
2021-04-07 11:49:10 +03:00
alesapin
a40209e84d
Remove strange fsync on coordination logs rotation
2021-04-06 15:25:15 +03:00
alesapin
8fc01195ce
Some improvements
2021-04-01 15:19:39 +03:00
alesapin
4ce81a91e5
Remove unused file
2021-03-29 12:16:58 +03:00
alesapin
be132a32a2
More renames
2021-03-29 11:24:56 +03:00
alesapin
e936bb1dae
Rename files
2021-03-29 10:58:42 +03:00
alesapin
9bdeb436c2
Fix typo
2021-03-26 15:06:36 +03:00
alesapin
2db57f0f16
Followup fix
2021-03-26 14:18:31 +03:00
alesapin
331c5b6636
Fix startup one more time
2021-03-26 13:55:39 +03:00
alesapin
ba5c151037
Fix race condition on snapshots
2021-03-26 13:20:07 +03:00
alesapin
9d8b21a04d
Fix ephemeral node removal
2021-03-24 11:12:37 +03:00
alesapin
0c525b4ec4
Add an ability to run from .deb and .tgz package
2021-03-23 15:07:21 +03:00
alesapin
043b3cc7b5
Fix startup when leadership changed
2021-03-22 13:45:22 +03:00
alesapin
81c408cb7f
Return meta and storage from snapshot
2021-03-19 11:08:43 +03:00
alesapin
2654147113
Fix on fix
2021-03-19 00:14:43 +03:00
alesapin
0137a6baac
Add test founding bug
2021-03-18 23:55:11 +03:00
alesapin
077a2019b6
Found first real bug with jepsen
2021-03-16 15:36:54 +03:00
alesapin
ba9e1e5a8d
Some initial code
...
Add some java magic
Allow to connect with old session id
More angry nemesis and fixes
Angry
Fix style
Split to files
Better wrappers
Better structure
Add set test and split to separate files (I think something broken now)
Better
Missed files
2021-03-12 22:07:57 +03:00
alesapin
94248dd205
Fix one more nasty bug
2021-03-08 11:53:52 +03:00
alesapin
fb264c12d3
Blind fix
2021-03-08 00:40:32 +03:00
alesapin
a8b7469857
Fix session timeout update
2021-03-06 17:14:38 +03:00
alesapin
1bfc27ab6f
Fix shutdown
2021-03-05 16:06:47 +03:00
alesapin
ce047b4fe1
Remove unused method
2021-03-05 14:06:37 +03:00
alesapin
15ea9a9c0c
Async version
2021-03-05 13:40:24 +03:00
alesapin
aa754a3ca8
Test restore from snapshot
2021-03-04 16:40:43 +03:00
alesapin
77dbe3fee8
Get rid of network order
2021-03-04 16:02:30 +03:00
alesapin
27011f086e
More style
2021-03-04 15:31:05 +03:00
alesapin
42c1a65b0f
Style
2021-03-04 15:30:26 +03:00
alesapin
c8423249db
Less strict checks
2021-03-04 15:01:56 +03:00
alesapin
5565c37b4f
tests and fixes for off by one error
2021-03-04 14:22:59 +03:00
alesapin
3a0b9102d8
Merge branch 'fix_nukeeper_default_path' into persistent_nukeeper_snapshot_storage
2021-03-04 11:30:54 +03:00
alesapin
d28463d70b
Use path as default prefix for coordination logs
2021-03-04 11:29:24 +03:00
alesapin
7556a3d723
Enable snapshots
2021-03-04 11:00:26 +03:00
alesapin
4e175bd988
Useful comments
2021-03-03 19:27:08 +03:00
alesapin
e6083c4dc4
Fix style
2021-03-03 19:25:47 +03:00
alesapin
7e28bfeb9e
Fix log store start
2021-03-03 18:37:31 +03:00
alesapin
186b39f0d5
Followup fix
2021-03-03 15:31:21 +03:00
alesapin
0136d7d51a
Get rid of unused field
2021-03-03 15:29:00 +03:00
alesapin
37fc5faa6f
Fix nasty serialization bug
2021-03-03 15:21:21 +03:00
alesapin
1707e7f1c3
Rename file
2021-03-03 14:22:38 +03:00
alesapin
e615299ae6
Fix some bugs and add snapshots validation
2021-03-03 14:10:24 +03:00
alesapin
07e39ef47a
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-03 11:12:01 +03:00
alesapin
ee185bc536
Start from committed plus 1
2021-03-02 18:58:02 +03:00
alesapin
346d2b1d27
Deepbugging
2021-03-02 18:19:05 +03:00
alesapin
8e6252b25f
Use snapshot object in serialization
2021-03-02 17:30:56 +03:00
alesapin
10e16e39ea
Written synchronous snapshots
2021-03-02 16:18:04 +03:00
alesapin
48bf55aef9
Even better tests
2021-03-02 15:37:00 +03:00
alesapin
08ccae32f3
Fix nasty bug
2021-03-02 15:34:18 +03:00
turbo jason
3a6307a990
[ClickHouse][LOG]correct shutdown timeout log
2021-03-02 15:13:54 +08:00
alesapin
40c7455d33
Test for snapshot removal
2021-03-01 19:02:15 +03:00
alesapin
321dd3e76b
Fix bug
2021-03-01 18:32:27 +03:00
alesapin
b7b6fd7cb3
Max snapshots on disk
2021-03-01 17:54:08 +03:00
alesapin
73d3c20554
Test simple serde
2021-03-01 17:40:32 +03:00
alesapin
03960b1eed
Some compileable code
2021-03-01 16:33:34 +03:00
alesapin
91bc4478d7
Merge branch 'master' into persistent_nukeeper_snapshot_storage
2021-03-01 13:18:35 +03:00
alesapin
11f2a271a2
Remove useless unit test
2021-03-01 10:40:00 +03:00
alesapin
83e2f1ca64
More fixes
2021-02-26 17:54:59 +03:00
alesapin
12f74d4e4a
Fix build
2021-02-26 16:56:57 +03:00
alesapin
8130726794
Move storage to new map
2021-02-26 16:53:34 +03:00
alesapin
56d9d99d1c
Fix style and bayan
2021-02-26 09:59:40 +03:00
alesapin
84102a22e7
Trying to make testkeeper better in single server mode
2021-02-25 23:30:55 +03:00
alesapin
15face72c5
Stl containers
2021-02-25 22:52:22 +03:00
alesapin
356e548267
Experimenting
2021-02-25 17:23:12 +03:00
alesapin
cf42824756
Experimenting
2021-02-25 17:22:51 +03:00
alesapin
f8b81eeeb0
Get rid of own zxid
2021-02-25 11:34:05 +03:00
alesapin
a1901383ae
Improve performance and fix condition variable wait
2021-02-24 14:54:14 +03:00
alesapin
b0065334e2
Summing raft test more stable
2021-02-24 00:27:10 +03:00
alesapin
d7c3dfe5fa
Don't allow to start with broken changelogs
2021-02-22 23:51:58 +03:00
alesapin
1aa0c0bff0
More stable test
2021-02-21 23:36:05 +03:00
alesapin
f8a581daba
Remove possibly redundant allocations
2021-02-21 20:42:19 +03:00
alesapin
331de3d653
Trying to add tests more stable
2021-02-21 00:08:19 +03:00
alesapin
48d5d75282
Make unit test more stable
2021-02-20 23:47:18 +03:00
alesapin
9f520f42c1
Fix style
2021-02-20 18:56:55 +03:00
alesapin
0c2cf3cf30
Calculate checksum with siphash
2021-02-20 18:36:56 +03:00
alesapin
e7f792c94d
Fix typos
2021-02-20 14:28:39 +03:00
alesapin
89dd15a91d
Checksum for header and logging, better names
2021-02-20 14:04:38 +03:00
alesapin
ad374ec095
Rename file
2021-02-19 19:05:26 +03:00
alesapin
12d05c2792
Better startup
2021-02-19 17:47:53 +03:00
alesapin
068c9cfbf7
Fix logs level
2021-02-19 17:13:29 +03:00
alesapin
86a74ca6b5
Fix size deserialization
2021-02-19 12:24:50 +03:00
alesapin
b72b13bab0
Better list performance
2021-02-19 10:25:55 +03:00
alesapin
88a6d4e206
Revert "Revert "Better list requests""
...
This reverts commit 839d6f7072
.
2021-02-19 10:05:52 +03:00
alesapin
839d6f7072
Revert "Better list requests"
...
This reverts commit ee98b2a472
.
2021-02-19 00:09:41 +03:00
alesapin
ee98b2a472
Better list requests
2021-02-19 00:03:16 +03:00
alesapin
0336764426
Fix tidy one more time
2021-02-18 18:51:16 +03:00
alesapin
904b4754cc
Fix tidy
2021-02-18 14:47:37 +03:00
alesapin
7f815325ba
More tests for broken changelog read
2021-02-18 14:42:09 +03:00
alesapin
5b597fdf44
Force sync setting and ability to start with broken log
2021-02-18 13:23:48 +03:00
alesapin
ff663dc511
Fsync at server shutdown
2021-02-17 23:36:25 +03:00
alesapin
6e244e7bb1
Trying without fsync
2021-02-17 22:32:38 +03:00
alesapin
9396bae2e2
More reliable test keeper tests
2021-02-17 14:53:47 +03:00
alesapin
acf843a01a
Slightly more optimal
2021-02-17 12:00:12 +03:00
alesapin
af95db2fcf
Test log storage instead of changelog
2021-02-17 11:00:17 +03:00
alesapin
dfaa79b88e
Add missed file
2021-02-17 10:10:46 +03:00
alesapin
d3e87701d4
Persistent storage
2021-02-16 22:02:18 +03:00
alesapin
b76b8013ba
Fix tests
2021-02-16 20:47:12 +03:00
alesapin
b029f3e5cf
Border test
2021-02-16 20:32:35 +03:00
alesapin
16bcd9d247
Add changelog tests
2021-02-16 20:28:54 +03:00
alesapin
daee018ea8
Merge branch 'master' into persistent_nukeeper_log_storage
2021-02-16 11:42:54 +03:00
alesapin
ed9f2b5eb9
Linkable code
2021-02-15 21:01:01 +03:00
alesapin
5401116988
Compileable code
2021-02-15 20:59:40 +03:00
alesapin
3ce3360379
Some initial code
2021-02-15 18:36:25 +03:00
alesapin
c1550814ca
Disable snapshots for tests
2021-02-15 10:30:08 +03:00
alesapin
447fcfa1c9
Fix build
2021-02-11 15:12:01 +03:00
alesapin
99a471e047
Add ability to start as follower
2021-02-11 13:25:10 +03:00
alesapin
0acd018361
Fix typo
2021-02-11 12:58:02 +03:00
alesapin
74630acff5
More debug in test
2021-02-11 12:49:49 +03:00
alesapin
b49b7f859d
Simplify startup with fixed config
2021-02-11 12:17:57 +03:00
alesapin
b4d53886a3
Add sync request/response
2021-02-10 16:01:05 +03:00
alesapin
e07bdad5c0
Fix test build
2021-02-10 14:44:21 +03:00
alesapin
57d8d81d59
Fix style
2021-02-10 13:02:09 +03:00
alesapin
c95140d906
Better startup and non-verbose logging by default
2021-02-10 12:28:53 +03:00
alesapin
51c221f993
Fix outdated session kill
2021-02-09 21:29:06 +03:00
alesapin
c78f3ba204
Missed file
2021-02-09 18:39:15 +03:00
alesapin
b130fbfd78
Add coordination settings
2021-02-09 17:47:18 +03:00
alesapin
b8baf3a443
Fix some warnings
2021-02-08 22:40:44 +03:00
alesapin
f2feeb9b19
Missing fix
2021-02-08 18:20:12 +03:00
alesapin
d57613aa18
Fix 0_o build in arcadia
2021-02-08 16:50:03 +03:00
alesapin
add89c17f2
Less serde in responses, watches on followers
2021-02-08 16:06:55 +03:00
alesapin
786e687b2f
Trying to avoid unlimited wait
2021-02-08 14:01:50 +03:00
alesapin
ab98040003
More logs
2021-02-05 10:15:28 +03:00
alesapin
c5312bf362
Trying to disable suspicious parameter
2021-02-04 22:29:46 +03:00
alesapin
d85e9b496c
Fix gcc-10 build
2021-02-04 16:22:30 +03:00
alesapin
da51ea1794
Simplify shutdown and requests processing
2021-02-04 15:07:41 +03:00
alesapin
3ddca91a5b
Fix build one more time
2021-02-04 12:39:07 +03:00
alesapin
e7a83868dd
Fix build
2021-02-04 11:28:11 +03:00
alesapin
1ff87ac6f9
Add background session lifetime control
2021-02-03 23:32:15 +03:00
alesapin
0c3ef018bb
Fix ya.make
2021-02-03 10:15:57 +03:00
alesapin
c334bdca1f
Fix NuKeeper server parameters
2021-02-03 10:11:19 +03:00
alesapin
d265e3b419
Less timeouts
2021-02-02 11:02:25 +03:00
alesapin
365bf65f5a
Fix install script
2021-02-01 17:14:59 +03:00
alesapin
57c9b6c864
Fix build without nuraft
2021-02-01 16:18:17 +03:00
alesapin
0fb7bc6cbe
clang-tidy is very smart
2021-02-01 15:10:55 +03:00
alesapin
eb5c77f558
Fix some races and better reaction to leader change
2021-02-01 14:27:26 +03:00
alesapin
67412bd529
Don't accept connections if we don't see leader + race fix from upstream
2021-02-01 10:51:10 +03:00
alesapin
bac8cc55d2
Now we answer from follower nodes
2021-01-29 15:39:04 +03:00
alesapin
8d0d2ca8e0
Add some partition tests
2021-01-28 15:07:26 +03:00
alesapin
a33963e211
Better raft server startup
2021-01-27 20:54:25 +03:00
alesapin
7af28e758a
Process read requests without raft
2021-01-27 16:37:58 +03:00
alesapin
817eb100a1
Better shutdown
2021-01-26 17:08:31 +03:00
alesapin
e8a320cfd0
Fix more warnings
2021-01-26 14:10:44 +03:00
alesapin
71dca6dc00
Tidy fixes
2021-01-26 11:17:19 +03:00
alesapin
ddeb008bbb
Replace ulong with size_t
2021-01-26 10:52:34 +03:00
alesapin
10cec45e53
Fix obvious deadlock
2021-01-26 10:47:04 +03:00
alesapin
43a2aae368
Add non working cmake
2021-01-25 17:59:10 +03:00
alesapin
d7e805ad99
Comment
2021-01-25 17:47:03 +03:00
alesapin
1576800289
Remove races
2021-01-25 17:36:06 +03:00
alesapin
97b9dba460
Multinode config
2021-01-25 17:10:18 +03:00
alesapin
dea4b5009b
Some server initialization
2021-01-25 15:29:12 +03:00
alesapin
7ff04d7532
Some fixes
2021-01-25 13:19:02 +03:00
alesapin
8b03329f4d
Some logging
2021-01-22 23:04:47 +03:00
alesapin
c1e36cfe70
Something working
2021-01-22 19:04:57 +03:00
alesapin
c2e6d6cfe8
Starting nukeeper server
2021-01-21 23:01:25 +03:00
alesapin
4aa11b3494
Remove zkutil namespace from TestKeeperStorage
2021-01-21 18:09:48 +03:00
alesapin
61fe49194b
First working snapshots
2021-01-21 17:34:34 +03:00
alesapin
d6b8dd7525
Dumb snapshoting
2021-01-21 16:53:10 +03:00
alesapin
b8cdd8e375
Merge branch 'fix_race_test_keeper' into in_memory_raft
2021-01-21 15:45:41 +03:00
alesapin
f7175819d5
Add storage simpliest serialization
2021-01-21 14:07:55 +03:00
alesapin
d5a3adffbd
Replicate something in test keeper storage with raft
2021-01-20 19:25:30 +03:00
alesapin
a241793a14
Merge branch 'decompose_test_keeper_storage' into in_memory_raft
2021-01-20 15:51:54 +03:00
alesapin
1063b22b4c
Add write buffer from nuraft
2021-01-19 12:40:25 +03:00
alesapin
6896558424
Some code movements
2021-01-18 19:03:26 +03:00
alesapin
1cc5be3b68
Compileable code
2021-01-14 23:43:52 +03:00
alesapin
a2070bf130
Add some missed files
2021-01-14 19:20:33 +03:00
alesapin
294e8f095d
I was able to replicate single number at localhost
2021-01-13 18:00:39 +03:00
alesapin
d7e6c8393f
Some useless code
2021-01-13 13:32:20 +03:00