memgraph/tests/concurrent
Matej Ferencevic 53c405c699 Throw exceptions on RPC failure and Distributed error handling
Summary:
This diff changes the RPC layer to directly return `TResponse` to the user when
issuing a `Call<...>` RPC call. The call throws an exception on failure
(instead of the previous return `nullopt`).

All servers (network, RPC and distributed) are set to have explicit `Shutdown`
methods so that a controlled shutdown can always be performed. The object
destructors now have `CHECK`s to enforce that the `AwaitShutdown` methods were
called.

The distributed memgraph is changed that none of the binaries (master/workers)
crash when there is a communication failure. Instead, the whole cluster starts
a graceful shutdown when a persistent communication error is detected.
Transient errors are allowed during execution. The transaction that errored out
will be aborted on the whole cluster. The cluster state is managed using a new
Heartbeat RPC call.

Reviewers: buda, teon.banek, msantl

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1604
2018-09-27 16:27:40 +02:00
..
CMakeLists.txt Remove couple of linking redundancies in CMakeLists 2018-07-30 13:55:30 +02:00
common.hpp Clean SkipList up 2018-04-11 10:08:20 +02:00
dynamic_bitset_clear_n.cpp Move unused datastructures to poc 2017-07-10 12:03:11 +02:00
dynamic_bitset_set_n.cpp Move unused datastructures to poc 2017-07-10 12:03:11 +02:00
dynamic_bitset_set.cpp Move unused datastructures to poc 2017-07-10 12:03:11 +02:00
dynamic_bitset.cpp Move unused datastructures to poc 2017-07-10 12:03:11 +02:00
futex.cpp Extract io/network into mg-io library 2018-05-30 14:58:41 +02:00
network_common.hpp Refactor network stack to use * instead of & 2018-09-03 20:20:42 +02:00
network_read_hang.cpp Throw exceptions on RPC failure and Distributed error handling 2018-09-27 16:27:40 +02:00
network_server.cpp Throw exceptions on RPC failure and Distributed error handling 2018-09-27 16:27:40 +02:00
network_session_leak.cpp Throw exceptions on RPC failure and Distributed error handling 2018-09-27 16:27:40 +02:00
push_queue.cpp Fix remaining falling tests in release mode 2017-08-09 16:39:21 +02:00
sl_hang.cpp Remove some unused variables and lambda captures 2017-09-27 09:04:15 +02:00
sl_insert_competetive.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_insert.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_map.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_memory_leak.cpp Replace debug_assert, permanent_assert with DCHECK/CHECK 2017-10-11 14:43:32 +02:00
sl_memory.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_remove_competetive.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_remove_disjoint.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_remove_joint.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_set.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
sl_simulation.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
spinlock.cpp Extract io/network into mg-io library 2018-05-30 14:58:41 +02:00