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

Issue 15812007: Make file_util::CreateDirectory return an error, not just a bool (Closed)

Created:
7 years, 6 months ago by dgrogan
Modified:
7 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Make CreateDirectory return an error code instead of just a bool. Make use of the new error code in IndexedDB, where we'll histogram which errors can be recovered from by retrying and which can't. We're going to try retrying CreateDirectory because LevelDB doesn't pay attention to what env_->CreateDir returns and a frequent error on the next operation (locking the lock file) is that the directory doesn't exist. I want to find out what's causing the directories to not be created in the first place, and which errors can be considered ephemeral. BUG=225051 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205386

Patch Set 1 #

Patch Set 2 : xml file; use the new errors #

Total comments: 4

Patch Set 3 : respond to comments #

Patch Set 4 : rebase onto ToT #

Patch Set 5 : call the right function on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
M base/file_util.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M base/file_util.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
dgrogan
Josh or Alec, could you review the IDB part before I get jar@ to review ...
7 years, 6 months ago (2013-06-06 23:40:00 UTC) #1
alecflett
On 2013/06/06 23:40:00, dgrogan wrote: > Josh or Alec, could you review the IDB part ...
7 years, 6 months ago (2013-06-06 23:43:16 UTC) #2
dgrogan
Jim, could you review this?
7 years, 6 months ago (2013-06-06 23:49:39 UTC) #3
jar (doing other things)
https://codereview.chromium.org/15812007/diff/2001/base/file_util_win.cc File base/file_util_win.cc (right): https://codereview.chromium.org/15812007/diff/2001/base/file_util_win.cc#newcode447 base/file_util_win.cc:447: *error = base::LastErrorToPlatformFileError(error_code); I think you forget to check ...
7 years, 6 months ago (2013-06-07 23:32:49 UTC) #4
dgrogan
https://codereview.chromium.org/15812007/diff/2001/base/file_util_win.cc File base/file_util_win.cc (right): https://codereview.chromium.org/15812007/diff/2001/base/file_util_win.cc#newcode447 base/file_util_win.cc:447: *error = base::LastErrorToPlatformFileError(error_code); On 2013/06/07 23:32:49, jar wrote: > ...
7 years, 6 months ago (2013-06-07 23:35:49 UTC) #5
jar (doing other things)
lgtm
7 years, 6 months ago (2013-06-10 03:38:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/15812007/11001
7 years, 6 months ago (2013-06-10 15:40:37 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-10 16:19:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/15812007/43001
7 years, 6 months ago (2013-06-10 18:07:56 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=160563
7 years, 6 months ago (2013-06-10 20:12:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/15812007/43001
7 years, 6 months ago (2013-06-10 20:15:02 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 03:50:28 UTC) #12
Message was sent while issue was closed.
Change committed as 205386

Powered by Google App Engine
This is Rietveld 408576698