Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.6.0, 2.5.3
-
Security Level: Public
Description
Steps to reproduce:
1. Create docs in CBL.
2. Replicate docs to SG with push_pull and continuous False
3. Wait until replication is done and stop replication
4. delete docs on SGW while update docs on CBL in parallel (multithreading)
5. Start the replication with same configuration as step 2
6. verify docs deleted on SGW also get deleted on CBL after replication (assertion passed at this step)
7. create docs on CBL with same ids as previously deleted docs
8. Start the replication with same configuration as step 2
Expected :
docs created at step 7 get replicated to SGW
Actual:
SGW rejects the replication with error 409 error code
Failed test case with parameters:
test_default_conflict_scenario_delete_wins[sg-True-1]
test_default_conflict_scenario_delete_wins[sg-False-5]
test_default_conflict_scenario_delete_wins[sg-False-1]
Tested with no-conflicts enabled and delta-sync enabled, xattrs doesn't matter
**This bug starts to show after CBL-110 gets fixed **
This issue affects all platforms, and is seen with the latest builds of 2.6.0 and 2.5.3, SGW 2.5.1-11 has been used for testing