Tyler Neely
e2968c2e21
Use std::chrono instead of raw uint64_t
2022-07-27 14:55:39 +00:00
Tyler Neely
4ee4612a9c
Remove removed raft.cpp from CMakeLists.txt for the simulator tests
2022-07-27 14:06:16 +00:00
Tyler Neely
dc38296575
avoid unnecessary std::optional around std::function which can be nullable
2022-07-27 14:05:57 +00:00
Tyler Neely
2a199c9484
Merge branch 'master' of github.com:memgraph/memgraph into T0879-MG-transport-prototype
2022-07-22 12:14:18 +00:00
Tyler Neely
a85e9fcdd4
Remove raft-related code from transport prototype branch
2022-07-22 12:11:00 +00:00
Kostas
72b4337864
Added ScanVertices request/response example
2022-07-21 18:37:06 +03:00
János Benjamin Antal
ed71332773
Add dummy storage engine to test
2022-07-21 16:23:27 +02:00
Tyler Neely
fd3d70d847
Move raft-related code to replicated state machine (rsm) namespace
2022-07-21 12:41:02 +00:00
Tyler Neely
f8e5032011
Restructure files into namespaces and subdirectories
2022-07-21 12:10:23 +00:00
Tyler Neely
5b59d890c0
Remove awkward Reply sugar for now
2022-07-21 11:53:51 +00:00
Tyler Neely
0351db2461
Move future.hpp to src/io
2022-07-21 11:45:05 +00:00
Tyler Neely
c379475e12
Merge branch 'project-pineapples' of github.com:memgraph/memgraph into T0879-MG-transport-prototype
2022-07-21 11:01:04 +00:00
Tyler Neely
9c5d19bc19
Start to adapt the transport-related code to use namespaces
2022-07-21 11:00:11 +00:00
Tyler Neely
4d85a7e605
Check-in simulator_transport.hpp
2022-07-21 10:49:33 +00:00
Tyler Neely
f6c2202772
Use anonymous namespace to avoid friend declarations in future.hpp
2022-07-21 10:49:19 +00:00
Tyler Neely
498ae97ae9
Clean up log messages
2022-07-21 10:26:08 +00:00
Tyler Neely
fbd015d3c6
Continue codebase clean-up in preparation for merge
2022-07-21 10:24:13 +00:00
Tyler Neely
1ef11a36f4
Apply feedback from cpplint
2022-07-21 09:33:06 +00:00
Tyler Neely
9ae1671e4f
Fix bug with MgFuture where its safety check was not correctly initialized
2022-07-20 18:17:06 +00:00
Tyler Neely
b4afe45de5
Handle Request timeouts properly in the simulator
2022-07-20 17:18:07 +00:00
Tyler Neely
581925e660
Fix a few bugs, expose stats
2022-07-20 17:07:18 +00:00
Tyler Neely
afef6dc11b
A large batch of bug fixes and clean-ups
2022-07-20 13:18:00 +00:00
Tyler Neely
689336e765
Fix several bugs, clean-ups and tuning
2022-07-19 14:57:01 +00:00
Jure Bajic
2ceaf59767
Create query engine v2 ( #444 )
...
Create version v2 of the query engine.
Adjust CMake and lisp files
Connect query engine v2 with storage engine v3
2022-07-19 12:28:19 +02:00
gvolfing
eb0b3141d5
Fix aggregation functions on null
and group-by inputs ( #448 )
...
The `sum()` and `count()` functions were giving results different from the openCypher specification on null `input.` The aggregation functions also had a problem when they were used in a group-by context and were giving results that were not compliant with the openCypher specification.
2022-07-19 12:16:32 +02:00
Marko Budiselic
5dd0ddc352
Killing bugs
2022-07-18 11:36:56 +02:00
János Benjamin Antal
c0bee760bf
git
2022-07-18 08:21:04 +02:00
Marko Budiselic
1480d975a7
Fix the basic_request example, something sill broken
2022-07-17 17:22:39 +02:00
Tyler Neely
9dc37a87f7
Enable more aggressive message scrambling to get a race condition to jump out about 0.2% of the time
2022-07-15 16:46:54 +00:00
Tyler Neely
46a2879ece
Fix a number of bugs in raft, and it can now go for around 1400 simulations before hitting a race condition
2022-07-15 16:44:42 +00:00
Tyler Neely
b2142e8d38
Remove unnecessary log message
2022-07-15 16:20:05 +00:00
Tyler Neely
0dc69c180d
Start cranking up the testing intensity and fix a variety of correctness and code quality issues
2022-07-15 16:19:00 +00:00
Marko Budiselić
ff2f8031a9
Extend the PR template with the git message guide ( #451 )
2022-07-15 14:08:10 +02:00
Tyler Neely
ad1d8637e5
Fix race condition in simulator. Make leader election function more reliably in raft code
2022-07-15 09:07:39 +00:00
Tyler Neely
4876b7cd8c
Start removing load-bearing sleep statements to get race conditions to jump out in the simulator
2022-07-15 05:43:40 +00:00
Tyler Neely
a6133dab49
Start to tune various timeouts in the raft implementation
2022-07-15 05:38:04 +00:00
Tyler Neely
3466c15f76
Make raft work in the happy path
2022-07-14 19:57:52 +00:00
Tyler Neely
63beeb8771
Send log state along with AppendRequest messages from Leader
2022-07-14 19:06:56 +00:00
Tyler Neely
d14f7705b1
Get most of the raft data path up and running
2022-07-14 18:45:24 +00:00
Tyler Neely
5e98971bb2
Continue filling out AppendEntries state transition logic
2022-07-14 13:06:54 +00:00
Tyler Neely
dc78adde40
Move empty in-flight early exit of simulator tick to before time advancement
2022-07-14 13:06:22 +00:00
Tyler Neely
80970a97f0
Get basic leader election to work and clean some things up
2022-07-14 12:18:09 +00:00
Tyler Neely
57533f2746
A large number of scattered cleanups. Don't use transport Request in state machine code
2022-07-14 10:50:49 +00:00
Tyler Neely
1a12a80af0
Continue to implement raft state machine transitions
2022-07-14 07:09:50 +00:00
Tyler Neely
30c97e658d
Implement some more of the raft state machine transitions
2022-07-13 22:31:51 +00:00
Tyler Neely
dd9862d32c
Add support for scrambling messages to the simulator
2022-07-13 19:59:23 +00:00
Tyler Neely
dc6548c996
Add support to the simulator to drop messages randomly
2022-07-13 19:51:04 +00:00
Marko Budiselić
094d4f282d
Improve error-prone OS setup ( #428 )
2022-07-13 17:48:01 +02:00
Tyler Neely
881e914b92
Add random number generator support to the IO interface
2022-07-13 13:37:38 +00:00
Tyler Neely
48ee40ce87
Start to fill out more raft logic now that role-specialized Handle and Cron are in place
2022-07-13 06:50:16 +00:00