memgraph/tests
Matija Santl f85095c203 Fix Raft shutdown
Summary:
During the following scenario:
 - start a HA cluster with 3 machines
 - find the leader and start sending queries
 - SIGTERM the leader but leave other 2 machines untouched

The leader would be stuck in the shutdown phase.

This was happening because during the shutdown phase of the Bolt server, a
`graph_db_accessor` would try to commit a transaction after we've already shut
down Raft server.  Raft, although not running, is still thinking it's in the
Leader mode. Tx Engine calls the `SafeToCommit` method to Commit transactions,
and ends up in an infinite loop.

Since Raft was shut down it won't handle any of the incoming RPCs and won't
change it's mode.

The fix here is to shut down the Bolt server before Raft, so we don't have any
pending commits once Raft is shut down.

Reviewers: ipaljak

Reviewed By: ipaljak

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1853
2019-02-12 15:12:39 +01:00
..
benchmark Build mg-comm-rpc library 2019-02-07 14:40:15 +01:00
concurrent Remove unused variables 2019-01-15 15:30:34 +01:00
distributed Fix distributed tests exit code 2018-11-07 22:46:55 +01:00
drivers Integrate driver tests with Apollo 2018-08-22 18:31:37 +02:00
feature_benchmark Fix Raft shutdown 2019-02-12 15:12:39 +01:00
integration Add Raft log compaction transfer test 2019-02-07 15:25:35 +01:00
macro_benchmark Build mg-comm-rpc library 2019-02-07 14:40:15 +01:00
manual Move creating indexed lookup to a rewrite pass 2019-02-06 14:46:19 +01:00
property_based Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
public_benchmark Update LDBC query implementation 2018-07-10 10:08:21 +02:00
qa Refactor QA 2018-12-04 12:33:48 +01:00
stress Polish Bolt client and mg_client 2018-10-19 13:55:51 +02:00
unit Remove stats from main binaries 2019-02-11 14:33:41 +01:00
apollo_runs.py Add LCP tests 2018-10-15 11:52:20 +02:00
client-stress.sh Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
CMakeLists.txt Add kafka benchmark 2018-08-29 16:35:31 +02:00