Closed tleyden closed 4 years ago
Run LiteCore integration tests against SG configured with injected failures, verify that it still works
The initial run is showing an issue (and possibly more):
Run sg-replicate to verify it retries all 503 errors
I can see by inspecting the code that there are places where it will abort the replication if it receives a 503 error. In this case, fetching the remote checkpoint.
} else if resp.StatusCode >= 400 {
// we got an error, lets abort
r.LogTo("Replicate", "4xx error(not 404) getting checkpoint")
event := NewReplicationEvent(FETCH_CHECKPOINT_FAILED)
r.sendEventWithTimeout(event)
} else if ... {
This should be done at the bucket level, which will cover both BLIP and REST APIs
Originally from https://github.com/couchbase/sync_gateway/issues/3509#issuecomment-388919848: