memgraph/tests
Teon Banek e0474a8e92 Replace boost with capnp in RPC
Summary:
Converts the RPC stack to use Cap'n Proto for serialization instead of
boost. There are still some traces of boost in other places in the code,
but most of it is removed. A future diff should cleanup boost for good.

The RPC API is now changed to be more flexible with regards to how
serialize data. This makes the simplest cases a bit more verbose, but
allows complex serialization code to be correctly written instead of
relying on hacks. (For reference, look for the old serialization of
`PullRpc` which had a nasty pointer hacks to inject accessors in
`TypedValue`.)

Since RPC messages were uselessly modeled via inheritance of Message
base class, that class is now removed. Furthermore, that approach
doesn't really work with Cap'n Proto. Instead, each message type is
required to have some type information. This can be automated, so
`define-rpc` has been added to LCP, which hopefully simplifies defining
new RPC request and response messages.

Specify Cap'n Proto schema ID in cmake

This preserves Cap'n Proto generated typeIds across multiple generations
of capnp schemas through LCP. It is imperative that typeId stays the
same to ensure that different compilations of Memgraph may communicate
via RPC in a distributed cluster.

Use CLOS for meta information on C++ types in LCP

Since some structure slots and functions have started to repeat
themselves, it makes sense to model C++ meta information via Common Lisp
Object System.

Depends on D1391

Reviewers: buda, dgleich, mferencevic, mtomic, mculinovic, msantl

Reviewed By: msantl

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1407
2018-06-04 10:45:12 +02:00
..
benchmark Benchmark Cap'n Proto and boost serialization 2018-05-02 12:38:18 +02:00
concurrent Extract io/network into mg-io library 2018-05-30 14:58:41 +02:00
distributed Replace boost with capnp in RPC 2018-06-04 10:45:12 +02:00
drivers Add C# driver test examples 2017-11-10 15:46:56 +01:00
macro_benchmark Replace boost with capnp in RPC 2018-06-04 10:45:12 +02:00
manual Replace boost with capnp in RPC 2018-06-04 10:45:12 +02:00
property_based Refactor GraphDb 2018-01-12 16:47:24 +01:00
public_benchmark Refactor Apollo build projects 2018-03-27 13:47:18 +02:00
qa Add initial version of properties on disk 2018-05-10 17:58:38 +02:00
stress Add durability stress test 2018-04-22 08:32:44 +02:00
unit Replace boost with capnp in RPC 2018-06-04 10:45:12 +02:00
apollo_runs.py Optimize Apollo build process 2018-05-16 14:52:27 +02:00
client-stress.sh Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
CMakeLists.txt Inline test data in the benchmark tests itself 2018-01-15 16:12:30 +01:00