Changeset 244645 in webkit


Ignore:
Timestamp:
Apr 25, 2019 8:50:18 AM (5 years ago)
Author:
youenn@apple.com
Message:

[Mac iOS WK2] Layout Test http/wpt/cache-storage/cache-quota-after-restart.any.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=197040
<rdar://problem/49997641>

Reviewed by Antti Koivisto.

Delay write operations in case synchronize is ongoing.
This is restricted to AvoidRandomness mode which is always used by CacheAPI
and is also used by network cache for layout tests.

Tested by cache-quota-after-restart.any.html no longer exhibiting write disk errors.

  • NetworkProcess/cache/NetworkCacheStorage.cpp:

(WebKit::NetworkCache::Storage::synchronize):
(WebKit::NetworkCache::Storage::store):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244644 r244645  
     12019-04-25  Youenn Fablet  <youenn@apple.com>
     2
     3        [Mac iOS WK2] Layout Test http/wpt/cache-storage/cache-quota-after-restart.any.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=197040
     5        <rdar://problem/49997641>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Delay write operations in case synchronize is ongoing.
     10        This is restricted to AvoidRandomness mode which is always used by CacheAPI
     11        and is also used by network cache for layout tests.
     12
     13        Tested by cache-quota-after-restart.any.html no longer exhibiting write disk errors.
     14
     15        * NetworkProcess/cache/NetworkCacheStorage.cpp:
     16        (WebKit::NetworkCache::Storage::synchronize):
     17        (WebKit::NetworkCache::Storage::store):
     18
    1192019-04-25  Commit Queue  <commit-queue@webkit.org>
    220
  • trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp

    r243143 r244645  
    350350            m_approximateRecordsSize = recordsSize;
    351351            m_synchronizationInProgress = false;
     352            if (m_mode == Mode::AvoidRandomness)
     353                dispatchPendingWriteOperations();
    352354        });
    353355
     
    898900
    899901    bool isInitialWrite = m_pendingWriteOperations.size() == 1;
    900     if (!isInitialWrite)
     902    if (!isInitialWrite || (m_synchronizationInProgress && m_mode == Mode::AvoidRandomness))
    901903        return;
    902904
Note: See TracChangeset for help on using the changeset viewer.