Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Issue 319603003: [Downloads] Retry renames after transient failures. (Closed)

Created:
6 years, 6 months ago by asanka
Modified:
6 years, 2 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, jam, jar+watch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org
Visibility:
Public.

Description

[Downloads] Retry renames after transient failures. If the cause of a rename failure is suspected of being transient (sharing violations, suspected race conditions in the file system), then retry the rename with an exponential backoff. BUG=368455 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278483 Reverted (Win XP issues): https://chromium.googlesource.com/chromium/src.git/+/d31e3689a5f5a0ae6eba1f15ea299bf84fd6d381 Committed: https://crrev.com/f4b6a28eb309b1c8ca19458de663188c57839119 Cr-Commit-Position: refs/heads/master@{#296949}

Patch Set 1 #

Patch Set 2 : Tests #

Total comments: 4

Patch Set 3 : Address comments #

Total comments: 18

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : formatting #

Total comments: 4

Patch Set 6 : Address comments #

Patch Set 7 : Merge with ToT #

Patch Set 8 : Merge with ToT #

Patch Set 9 : Prepare to reland after XP test fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -140 lines) Patch
M content/browser/download/base_file.h View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M content/browser/download/base_file.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -9 lines 0 comments Download
M content/browser/download/base_file_posix.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/base_file_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +56 lines, -2 lines 0 comments Download
M content/browser/download/base_file_win.cc View 1 2 3 4 5 6 7 8 5 chunks +35 lines, -6 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +86 lines, -43 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 3 4 5 6 7 8 16 chunks +265 lines, -74 lines 0 comments Download
M content/browser/download/download_interrupt_reasons_impl.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/download/download_interrupt_reasons_impl.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M content/public/browser/download_interrupt_reason_values.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 25 (3 generated)
asanka
6 years, 6 months ago (2014-06-06 05:13:31 UTC) #1
asanka
Hold off on reviewing this until I update this again. I need to address a ...
6 years, 6 months ago (2014-06-09 17:18:10 UTC) #2
asanka
On 2014/06/09 17:18:10, asanka wrote: > Hold off on reviewing this until I update this ...
6 years, 6 months ago (2014-06-10 15:22:52 UTC) #3
Randy Smith (Not in Mondays)
Forgive me, because I could have given this feedback earlier if I had engaged, but ...
6 years, 6 months ago (2014-06-10 19:09:37 UTC) #4
Randy Smith (Not in Mondays)
Quick skim review orthogonal to the issues raised in my last comment. I haven't looked ...
6 years, 6 months ago (2014-06-10 19:22:02 UTC) #5
asanka
On 2014/06/10 19:09:37, rdsmith wrote: > Forgive me, because I could have given this feedback ...
6 years, 6 months ago (2014-06-10 22:36:15 UTC) #6
asanka
https://codereview.chromium.org/319603003/diff/20001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (left): https://codereview.chromium.org/319603003/diff/20001/content/browser/download/base_file.cc#oldcode333 content/browser/download/base_file.cc:333: net_error, DOWNLOAD_INTERRUPT_FROM_DISK)); On 2014/06/10 19:22:02, rdsmith wrote: > I ...
6 years, 6 months ago (2014-06-10 22:36:21 UTC) #7
Randy Smith (Not in Mondays)
On 2014/06/10 22:36:15, asanka wrote: > On 2014/06/10 19:09:37, rdsmith wrote: > > Forgive me, ...
6 years, 6 months ago (2014-06-11 15:48:03 UTC) #8
Randy Smith (Not in Mondays)
Full non-test review. https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc#newcode173 content/browser/download/base_file.cc:173: : rename_result; This feels a bit ...
6 years, 6 months ago (2014-06-11 18:07:29 UTC) #9
asanka
https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc#newcode173 content/browser/download/base_file.cc:173: : rename_result; On 2014/06/11 18:07:29, rdsmith wrote: > This ...
6 years, 6 months ago (2014-06-12 20:02:38 UTC) #10
Randy Smith (Not in Mondays)
LGTM w/ comments below (which are either optional or minor). https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): https://codereview.chromium.org/319603003/diff/40001/content/browser/download/base_file.cc#newcode173 ...
6 years, 6 months ago (2014-06-12 22:10:31 UTC) #11
asanka
Thanks! https://codereview.chromium.org/319603003/diff/60001/content/browser/download/base_file_unittest.cc File content/browser/download/base_file_unittest.cc (right): https://codereview.chromium.org/319603003/diff/60001/content/browser/download/base_file_unittest.cc#newcode530 content/browser/download/base_file_unittest.cc:530: On 2014/06/12 22:10:30, rdsmith wrote: > Should you ...
6 years, 6 months ago (2014-06-17 21:40:57 UTC) #12
asanka
Adding owners: avi: content/public isherman: tools/metrics/histograms
6 years, 6 months ago (2014-06-18 21:32:36 UTC) #13
Avi (use Gerrit)
content/public lgtm
6 years, 6 months ago (2014-06-18 21:35:40 UTC) #14
Ilya Sherman
Histograms LGTM. Thanks.
6 years, 6 months ago (2014-06-18 22:02:10 UTC) #15
asanka
Thanks everyone!
6 years, 6 months ago (2014-06-19 16:14:07 UTC) #16
asanka
The CQ bit was checked by asanka@chromium.org
6 years, 6 months ago (2014-06-19 16:14:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/319603003/140001
6 years, 6 months ago (2014-06-19 16:19:03 UTC) #18
commit-bot: I haz the power
Change committed as 278483
6 years, 6 months ago (2014-06-19 21:08:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/319603003/160001
6 years, 2 months ago (2014-09-26 14:32:56 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001) as cdc3973437b2a5025aa52e3bfd73e3a3266c7d1c
6 years, 2 months ago (2014-09-26 15:43:42 UTC) #24
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 15:44:22 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f4b6a28eb309b1c8ca19458de663188c57839119
Cr-Commit-Position: refs/heads/master@{#296949}

Powered by Google App Engine
This is Rietveld 408576698