Tyler Neely
13787a0b17
Do not count clients waiting on promises as blocking when calculating quiescent counts in the simulator
2022-08-30 08:19:04 +00:00
Tyler Neely
46afb25415
use static cast for micros
2022-08-30 07:53:45 +00:00
Tyler Neely
62bb9a399a
Revert incorrect code suggestion
2022-08-30 07:51:36 +00:00
Tyler Neely
ec95cd31ed
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-30 09:12:54 +02:00
Tyler Neely
c0bbfc4f0e
Address clang-tidy feedback
2022-08-29 15:42:19 +00:00
Tyler Neely
d50a6ab232
Properly use Follower's next_index for sending batches instead of the known committed_log_size
2022-08-29 14:13:40 +00:00
Tyler Neely
28fae9e6d0
Assert that terms in the log are monotonic
2022-08-29 14:01:30 +00:00
Tyler Neely
b7e54cbe44
Assert that terms in the log are monotonic
2022-08-29 14:00:29 +00:00
Tyler Neely
a410864855
Improve constness in several method bodies
2022-08-29 13:43:27 +00:00
Tyler Neely
325aae34d2
Optimize Cron calling order
2022-08-29 13:32:16 +00:00
Tyler Neely
8657909ef3
Simplify Handle(Leader, AppendResponse...)
2022-08-29 13:30:01 +00:00
Tyler Neely
726c42a3fc
Use std::make_move_iterator for adding entries from AppendRequest into a Follower's Raft log
2022-08-29 13:24:34 +00:00
Tyler Neely
e67eefb1a3
Use a concept to lock-down certain Handle methods for Raft
2022-08-29 12:00:53 +00:00
Tyler Neely
cb33a0a0c6
Merge branch 'project-pineapples' of github.com:memgraph/memgraph into T0941-MG-implement-basic-raft-version
2022-08-29 11:35:24 +00:00
Tyler Neely
a40403e3ce
Add local transport ( #512 )
...
* Create LocalTransport Io provider for sending messages to components on the same machine
* Move src/io/simulation/message_conversion.hpp to src/io/message_conversion.hpp for use in other Io providers
2022-08-29 13:49:51 +02:00
Tyler Neely
f6e41bd0f5
Make Raft index tracking less bug-prone by focusing on "log size" which gracefully initializes to 0 instead of 1-indexed log index tracking which does not cleanly initialize as intuitively
2022-08-29 09:18:25 +00:00
Tyler Neely
10f8af4681
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-24 18:23:17 +02:00
Tyler Neely
87e9897c94
Use extracted constants for various timeout durations
2022-08-24 16:10:36 +00:00
Tyler Neely
34c3d94163
Fix and clarify comment
2022-08-24 16:01:19 +00:00
Tyler Neely
12c55d5d0b
Remove several cases of unnecessary 'auto &&'
2022-08-24 15:58:46 +00:00
Tyler Neely
0d1616a5e0
Use Duration instead of std::chrono::microseconds which it aliases to
2022-08-24 15:55:10 +00:00
Tyler Neely
0be36a5805
Remove unnecessary aliases
2022-08-24 15:53:22 +00:00
Tyler Neely
8cea2937b8
Apply some feedback from clang-tidy
2022-08-24 15:00:52 +00:00
Tyler Neely
6169eb221b
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:13:41 +02:00
Tyler Neely
342611691a
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:13:30 +02:00
Tyler Neely
c256dce601
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:13:03 +02:00
Tyler Neely
2e9cf8f37d
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:12:13 +02:00
Tyler Neely
47186cab18
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:11:56 +02:00
Tyler Neely
dcc5ec920a
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:11:41 +02:00
Tyler Neely
c7d96ed5c5
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:11:11 +02:00
Tyler Neely
7ad9b62968
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:10:37 +02:00
Tyler Neely
bb44aaa188
Update src/io/rsm/raft.hpp
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2022-08-16 17:09:51 +02:00
Tyler Neely
9961659103
Use spdlog instead of cout
2022-08-16 14:52:03 +00:00
Tyler Neely
6f906c0488
Use spdlog instead of cout
2022-08-16 14:44:17 +00:00
Tyler Neely
d161163fb4
Merge branch 'project-pineapples' of github.com:memgraph/memgraph into T0941-MG-implement-basic-raft-version
2022-08-15 13:49:50 +00:00
Tyler Neely
1423da5f51
Improve comments around majority index selection
2022-08-15 11:57:19 +00:00
Tyler Neely
5e4733ac98
Add extra safety checks to commit_index management
2022-08-12 13:20:11 +00:00
Tyler Neely
14c9e68456
Transport prototype ( #466 )
2022-08-12 08:24:32 +02:00
Tyler Neely
cbdfd54e5f
Properly apply state updates in Follower Handle for AppendRequest
2022-08-11 12:30:26 +00:00
Tyler Neely
69a2d73172
Fix bug-prone leader application of write requests to the replicated state
2022-08-11 12:17:33 +00:00
Tyler Neely
5b69f435b6
Small comment cleanup
2022-08-11 08:39:11 +00:00
Tyler Neely
f098d6b331
Merge branch 'T0879-MG-transport-prototype' of github.com:memgraph/memgraph into T0941-MG-implement-basic-raft-version
2022-08-10 10:48:17 +00:00
Tyler Neely
f6edce8f0b
Apply Kostas's feedback to transport interface
2022-08-10 09:34:02 +00:00
Tyler Neely
1225230c3a
Apply feedback from cpplint
2022-08-09 15:52:24 +00:00
Tyler Neely
5f225a623e
align cpp w/ hpp naming
2022-08-09 15:21:52 +00:00
Tyler Neely
d15105455a
Clean up comments and TODOs
2022-08-09 14:07:42 +00:00
Tyler Neely
36c133ce4e
Merge branch 'T0879-MG-transport-prototype' of github.com:memgraph/memgraph into T0941-MG-implement-basic-raft-version
2022-08-08 16:29:48 +00:00
Tyler Neely
91d48f05f3
Merge branch 'project-pineapples' into T0879-MG-transport-prototype
2022-08-08 13:34:30 +02:00
Tyler Neely
7bac0d1c61
Use default equality operator for Address
2022-08-08 11:32:42 +00:00
Tyler Neely
a4b1d5efb4
Update src/io/future.hpp
...
Co-authored-by: Jure Bajic <jure.bajic@memgraph.com>
2022-08-08 13:27:06 +02:00