DescriptionEnsure IDB transactions started before success arrives see correct medata
Due to asynchronous IPC from the back-end and the difference between
event enqueue and event dispatch, in multiprocess mode is was possible
for a "versionchange" transaction's "complete" event to be dispatched
before the open request's "success" event arrived. The new transaction
would have stale metadata for indexes created during the
"versionchange". This resulted in flaky tests under content_shell.
Fix this by having object stores update the database's copy of the
metadata during the "versionchange" transaction.
This doesn't occur under DumpRenderTree; with content_shell it will
flake occasionaly under load, e.g. running this single test in batches
run-webkit-tests --iterations=30.
BUG=225852
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148671
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|