|Title||Replicator needlessly re-does work|
|Assigned user||Nick Barnes|
|Description||The replicator interprets many errors when replicating to Perforce as general server errors. This causes it to abandon the current poll and start over next time. However, if the error isn't a general server error then this starting over is needlessly wasteful, and can cause unnecessary conflicts.|
This came up again in job00485.
|Analysis||See the customer report  for an example of an error when replicating to Perforce and a description of how bad the problem can be when it fails. See also my analysis . It's hard to find a good solution to this. Here are some possibilities, and what's wrong with them:|
1. Continue when you get an error in replicating to Perforce. (Goes very wrong if it error is a real server but misinterpreted. Also, it leaves the issue in an inconsistent state, violating requirement 1.)
2. Remember locally to the replicator that the issue needs to be replicated again. Don't forget to notice and take appropriate action when it also appears in the course of normal replication! (If the problem doesn't go away, the administrator gets an e-mail every poll. Also, when the replicator stops, we forget that the issue needs to be replicated and leave it inconsistent.)
3. Remember in the defect tracker database that the issue needs to be replicated again. (If the problem doesn't go away, the administrator gets an e-mail every poll.)
3b. [NB 2002-03-27] Flag problem jobs and issues. In every poll, try to replicate all the problem jobs and issues. Send e-mail if you succeed, but not if you fail. Don't fail the poll for a failed replication of a problem job or issue.
4. As 2 or 3, but keep a separate list of issues with problems replicating them to Perforce, and apply exponential back-off to these issues only. (Complex. E-mail volume might still not be acceptable.)
5. This wouldn't be so bad if the replicator didn't generate so much email when a lot of jobs conflict. See job000444.
See Michael Biczynski's analysis .
|Created by||Gareth Rees|
|Created on||2001-12-19 16:51:38|
|Last modified by||Nick Barnes|
|Last modified on||2018-07-05 17:27:53|
|History||2001-12-19 GDR Created.|
2018-07-05 NB Suspended because the P4DTI is obsolete.