forked from SkipLabs/skip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_replication.sh
More file actions
executable file
·22 lines (17 loc) · 861 Bytes
/
Copy pathtest_replication.sh
File metadata and controls
executable file
·22 lines (17 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
# tests replicating a table with no constraints (e.g. no primary key).
# this is the most general form of the replication. the semantics are
# a multiset CRDT where concurrent inserts win over deletes. we use a
# vector clock to ensure that we can detect concurrency and honour
# 'you cannot modify what you haven't seen'.
./test_replication_no_constraints.sh
# tests replicating a table with a primary key. the semantics are
# last-writer-wins as defined by the vector clock partial ordering -
# NOT the order that the server sees updates. we form a total order by
# tiebreaking concurrent updates using the row data.
./test_replication_primary_key.sh
# tests that we do not reflect updates due to replication causing cycles
./test_cyclic_replication.sh
# tests that the system works if no acls are defined
./test_no_acl_replication.sh