Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Configurable delay before retrying on missing_doc error #934
Implement a configurable delay before retrying a document fetch in replicator.
missing_doc exceptions usually happen when there is a continuous replication
Previously the delay was hard-coded at 0 (that is retrying was immediate). The
The intent is to improve the situation in the default case as well. Keeping it at 0 would mean users would see more missing_doc exceptions, crashes and retries.
Another aspect to this is that transient jobs (those posted to _replicate endpoint) don't restart after a crash. So here we'd be safe trying to avoid crashing the job it will be effectively dropped from the scheduler.