RESOLVED FIXED 36847
Add new worker-specific tests for the async DB
https://bugs.webkit.org/show_bug.cgi?id=36847
Summary Add new worker-specific tests for the async DB
Eric U.
Reported 2010-03-30 13:10:50 PDT
In addition to the existing async DB tests, which are being ported to Web Workers, there are some new tests that should be added. In particular, we should test simultaneous accesses from the page and the worker, and from multiple workers, and we should test shutting down a worker during database access. These tests will be racy themselves, but should at least verify that we don't crash or corrupt anything.
Attachments
patch #1: access the same DB in workers and the page (4.67 KB, patch)
2010-09-30 23:07 PDT, Dumitru Daniliuc
levin: review-
dumi: commit-queue-
patch #2: terminate workers in the middle of DB operations (6.50 KB, patch)
2010-09-30 23:16 PDT, Dumitru Daniliuc
levin: review+
dumi: commit-queue-
patch #1: access the same DB in workers and the page (4.70 KB, patch)
2010-09-30 23:41 PDT, Dumitru Daniliuc
levin: review+
dumi: commit-queue-
Dumitru Daniliuc
Comment 1 2010-07-29 15:35:32 PDT
I'll take this bug. I've already added 2 tests that shut down workers while they access the database. So I'll work on adding some tests that access the same DB in the page and on multiple workers at the same time.
Dumitru Daniliuc
Comment 2 2010-09-30 23:07:16 PDT
Created attachment 69424 [details] patch #1: access the same DB in workers and the page
Dumitru Daniliuc
Comment 3 2010-09-30 23:16:41 PDT
Created attachment 69425 [details] patch #2: terminate workers in the middle of DB operations These tests were initially added in http://trac.webkit.org/changeset/64313. Then that patch got reverted in http://trac.webkit.org/changeset/64334, because of a bug. Then the bug was fixed, and the patch was re-landed in http://trac.webkit.org/changeset/64384, but apparently I forgot to re-submit the tests.
David Levin
Comment 4 2010-09-30 23:32:08 PDT
Comment on attachment 69424 [details] patch #1: access the same DB in workers and the page View in context: https://bugs.webkit.org/attachment.cgi?id=69424&action=review > LayoutTests/fast/workers/storage/use-same-database-in-page-and-workers.html:49 > + log("Unexpected worker message: " + event.data); It seems like it would be better if it didn't have to time out on failure.
Dumitru Daniliuc
Comment 5 2010-09-30 23:41:46 PDT
Created attachment 69427 [details] patch #1: access the same DB in workers and the page fixed.
Dumitru Daniliuc
Comment 6 2010-10-12 18:48:32 PDT
patch #1 landed: r69626. patch #2 landed: r69631.
Note You need to log in before you can comment on or make changes to this bug.