replication issue: missing revisions are not copied
descriptions
looking at the code it seems that only revisions appearing in the change feed are copied:
https://gitlab.com/barrel-db/barrel/blob/master/src/replicate/barrel_replicate_alg.erl#L49
but not any other missing revisions on the target.
resolutions tasks
-
write test to reproduce or invalid the issue -
fix issue
description of the test
the following test could be written:
- create 2 database
source
andtarget
- initiate a replication task between both
- write a doc on
source
- make sure it is replicated to
target
- edit the document on
source
- make sure the revision replicated to
target
- stop the replication task
- write 2 revisions on
source
(usingput_rev
) - initiate a new replication task between both
- check that the 2 revisions are copied to target.
Edited by username-removed-47203