New issue
Advanced search Search tips

Issue 923138 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on:
issue 894982

Blocking:
issue 885347



Sign in to add a comment

recover simple disk_cache backends with partial fake index files when the cache is otherwise empty

Project Member Reported by wanderview@chromium.org, Jan 17 (5 days ago)

Issue description

In  bug 894982  we fixed an issue where the initial fake index file for a simple disk_cache could be left partially written.  We did not, however, clean up the corrupted state on disk.  Lets do that in this bug.

Since the problem occurred on the very first fake index file creation the directory should be otherwise empty.  Let check for this empty state and recover the directory if that is the case.
 

Comment 1 by wanderview@chromium.org, Jan 17 (5 days ago)

Status: Assigned (was: Untriaged)

Comment 2 by wanderview@chromium.org, Jan 17 (5 days ago)

This works for me in local testing:

https://chromium-review.googlesource.com/c/chromium/src/+/1419262

I need to add some unit tests still.

Comment 3 by wanderview@chromium.org, Jan 18 (4 days ago)

Labels: -Pri-3 Target-73 Pri-2

Sign in to add a comment