WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161285
Race between creating/deleting a database in test
https://bugs.webkit.org/show_bug.cgi?id=161285
Summary
Race between creating/deleting a database in test
Joseph Pecoraro
Reported
2016-08-26 19:45:40 PDT
Summary: Occasional race between deleting a database and requesting database names seen in layout tests: inspector/indexeddb/deleteDatabaseNamesWithSpace.html There shouldn't be any race between deleteDatabase and requestDatabaseNames.
Attachments
[PATCH] Proposed Fix
(21.67 KB, patch)
2016-08-26 21:34 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-08-26 20:05:55 PDT
Okay, I think I found the real problem. The original test (which was not flakey) had a slight ordering difference because it was awkwardly using console.log as a signal. The new test doesn't wait for the same single so the order of operations can be slightly different! The problem appears to be createDatabase might not have created the database before we call deleteDatabase. I'll write a better patch here. It might have to touch all of these inspector indexeddb tests, but at least this one for sure.
Joseph Pecoraro
Comment 2
2016-08-26 21:34:29 PDT
Created
attachment 287196
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2016-08-26 21:36:56 PDT
Ran all inspector/indexeddb --iterations=2000 and: All 10000 tests ran as expected. So yay!
Darin Adler
Comment 4
2016-08-27 16:50:50 PDT
Comment on
attachment 287196
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=287196&action=review
> LayoutTests/ChangeLog:16 > + Send a single when the database creation is completed.
signal/single
WebKit Commit Bot
Comment 5
2016-08-27 17:12:16 PDT
Comment on
attachment 287196
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 287196 Committed
r205086
: <
http://trac.webkit.org/changeset/205086
>
WebKit Commit Bot
Comment 6
2016-08-27 17:12:20 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug