memgraph/tests/manual
florijan 95f1b6fe56 Fix remote plan invalidation
Summary:
Ensures that query plans are invalidated on the remote only when it's
guaranteed they will never be used on the master. This is done by
invalidating remote caches in the `CachedPlan` destructor.

There are two unplesant side-effects. First, an RPC call is made in an
object destructor. This is somewhat ugly, but not that different then
making an RPC call that must succeed in any other function. Note that
this does NOT slow down any query execution because the relevant
destructor is called by the skiplist garbage collector. The second ugly
side-effect is that in the unit test now we need to sleep to ensure the
skiplist GC destructs a cached plan before checking that it's
invalidated on the remote worker.

We might want to redesign this at some point.

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1302
2018-03-16 11:18:16 +01:00
..
antlr_parser.cpp youcompleteme config has been added to the repo 2017-02-20 14:17:41 +01:00
antlr_sigsegv.cpp Prevent double termination signals causing crashes 2017-11-09 10:41:16 +01:00
antlr_tree_pretty_print.cpp Implement expression code generator 2017-03-08 14:10:16 +01:00
binomial.cpp Labels implementation. 2017-04-03 11:50:22 +02:00
bolt_client.cpp Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
card_fraud_generate_snapshot.cpp Fix transaction id offset 2018-03-07 16:49:55 +01:00
card_fraud_local.cpp Fix remote plan invalidation 2018-03-16 11:18:16 +01:00
CMakeLists.txt Remove unused stuff from CMakeLists 2017-10-16 13:45:18 +02:00
distributed_common.hpp Invalidate distributed plan caches 2018-03-13 14:59:51 +01:00
distributed_repl.cpp Fix and rename REPL 2018-03-08 10:58:43 +01:00
endinan.cpp examples folder has been removed; src/test folder has been removed; the existing tests were moved to tests folder; StacktraceException has been introduced; query_plan_templated has been moved to query folder; hazard pointers have been deleted because they are not used any more 2017-02-18 18:03:48 +01:00
generate_snapshot.cpp Support snapshot creation and recovery in distributed 2018-01-29 19:16:13 +01:00
query_hash.cpp Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
query_planner.cpp Fix and rename REPL 2018-03-08 10:58:43 +01:00
raft_rpc.cpp Refactor RPC 2018-02-23 12:07:22 +01:00
repl.cpp Fix and rename REPL 2018-03-08 10:58:43 +01:00
single_query.cpp Invalidate distributed plan caches 2018-03-13 14:59:51 +01:00
sl_position_and_count.cpp GraphDbAccessor - label+property index cardinalities for exact value and value ranges 2017-07-06 10:22:19 +02:00
stripped_timing.cpp Add AST cache 2017-06-14 18:59:31 +02:00
test_antlr_sigsegv Added antlr sigsegv test. 2017-08-03 13:06:18 +02:00
xorshift.cpp Remove traces of custom assert 2017-10-13 09:34:13 +02:00