New issue
Advanced search Search tips

Issue 786429 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Flakiness in android_webview.test.AwContentsTest#testClearCacheMemoryAndDisk

Project Member Reported by morlovich@chromium.org, Nov 17 2017

Issue description

From disk_cache PoV, the test basically does the following:

DoomAllEntries()
if OpenEntry() != OK
  CreateEntry()
EXPECT_EQ(OK, OpenEntry())

What's important is that it doesn't wait for DoomAllEntries to complete.

For SimpleCache, DoomAllEntries serializes with respect to other disk cache operations only once index loading has succeeded --- which is a background task which DoomAll has to wait for, but other ops can ignore --- so if the index loading is slow, the following is a possible effective execution ordering:

if OpenEntry() != OK
  CreateEntry()
DoomAllEntries()
EXPECT_EQ(OK, OpenEntry())

Which of course fails the expectation.

Not really sure what do with this ATM; we could force serialization with index if a doom-all is pending but may be kind of expensive, and probably doesn't matter in real life? 

 
Project Member

Comment 1 by sheriffbot@chromium.org, Nov 19

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment