memgraph/src/transactions
Florijan Stamenkovic 1333bfeb39 Mvcc - unit test infrastructure setup
Summary:
Gradicek's Mvcc test have seen the following changes:
- provided a test infrastructure (fixture and macros) to facilitate testing and increase readability
- split tests into multi-transaction update, VersionList::find and general Mvcc testing
- multi-transaction update tests have been refactored (i *think* nothing got deleted, but it was a mess so I don't guarantee)
- changed all multithreaded tests to be single-threaded because multiple threads were not necessary
- changed transaction naming from T5, T8, T10 to T1, T2... for consistency with actual transaction indices

What still needs to be done:
- Gleich and Gradicek need to review the infrastructure (possible improvements)
- multi-transaction update tests need to be addressed by Gradicek (see "TODO gradicek" in code, discuss with Flor)
- the wiki/draw.io documentation needs to be updated. it is not imperative that all the tests be drawn in draw.io, only the general infrastructure explained. perhaps only a few examples drawn. Gradicek discuss with Flor
- Gleich see the "TODO Gleich" lines in the diff and discuss with flor

Suggested workflow:
- review this diff, hopefully land (before resolving all the TODOs)
- discard D169
- Gradicek and Gleich address the TODOs
- Flor reviews the results (in following diffs)

Reviewers: dgleich, matej.gradicek, buda

Reviewed By: matej.gradicek, buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D348
2017-05-05 14:46:18 +02:00
..
commit_log.hpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
engine.hpp Fix errors introduced in D298 2017-04-28 11:11:32 +02:00
lock_store.hpp Mvcc - unit test infrastructure setup 2017-05-05 14:46:18 +02:00
snapshot.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
snapshot.hpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
transaction_store.hpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
transaction.cpp Refactor transaction inside db_accessor. Also introduce advance_command. 2017-03-07 09:42:04 +01:00
transaction.hpp The rest of core engine exceptions are extended from the BasicException (because of the error handling in the communication stack). Maximum value of the MVCC command id is calculated in the compile time. 2017-04-27 13:17:40 -04:00