DescriptionWhen an upload completes, it kicks off a task to calculate deltas. So, there is no reason to do the same work when viewing the code review issue.
Since calculating deltas is done in a task, it has a deadline of 10 minutes and automatically retries, so there is no need to implement our own retry logic or to display an error message to the user.
Calculating deltas while the base files were still being uploaded (because the user views the issue while still uploading) caused a race condition that over-wrote the patch in a non-transactional way. Delta calculation in a task does not have that risk because the task is only enqueue after the upload is complete.
BUG=https://code.google.com/p/rietveld/issues/detail?id=357
Patch Set 1 #
MessagesTotal messages: 16
|