RESOLVED FIXED 102458
IndexedDB: convert delete-closed-database-object to upgradeneeded
https://bugs.webkit.org/show_bug.cgi?id=102458
Summary IndexedDB: convert delete-closed-database-object to upgradeneeded
David Grogan
Reported 2012-11-15 19:31:30 PST
IndexedDB: convert delete-closed-database-object to upgradeneeded
Attachments
Patch (4.69 KB, patch)
2012-11-15 19:32 PST, David Grogan
no flags
Patch (4.97 KB, patch)
2012-11-16 15:20 PST, Joshua Bell
no flags
Patch (5.29 KB, patch)
2012-11-19 14:59 PST, David Grogan
no flags
David Grogan
Comment 1 2012-11-15 19:32:46 PST
David Grogan
Comment 2 2012-11-15 19:33:56 PST
Josh, you looked at this one the other day. My instinct is to land it as disabled in TestExpectations.
David Grogan
Comment 3 2012-11-15 19:34:21 PST
Any other thoughts or suggestions?
WebKit Review Bot
Comment 4 2012-11-15 21:06:00 PST
Comment on attachment 174592 [details] Patch Attachment 174592 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14843865 New failing tests: storage/indexeddb/delete-closed-database-object.html
Joshua Bell
Comment 5 2012-11-16 15:20:50 PST
Joshua Bell
Comment 6 2012-11-16 15:23:49 PST
I did some poking around and found the proximal cause (but not the root cause) - open(name, version) apparently leaks(?) the connection, whereas open(name) does not. So open(name)/setVersion(version) works fine. I uploaded a variant patch (as proof of concept) that does; db = open(name); // implicitly calls open(name, 1) behind the scenes db.close(); db = open(name); // open w/o version gc(); db = open(name, version); // no blocked event fired The patch I uploaded should be tweaked with a ChangeLog description and more evalAndLog() usage. We should also file a bug to track down the connection leak.
David Grogan
Comment 7 2012-11-19 14:59:04 PST
David Grogan
Comment 8 2012-11-19 14:59:56 PST
Josh, I added some evalAndLog calls to your patch. Could you take a look?
Joshua Bell
Comment 9 2012-11-19 16:49:01 PST
Comment on attachment 175048 [details] Patch lgtm - not sure why it's flaky in content_shell
David Grogan
Comment 10 2012-11-19 16:50:33 PST
Tony, could you review this?
WebKit Review Bot
Comment 11 2012-11-19 17:59:26 PST
Comment on attachment 175048 [details] Patch Clearing flags on attachment: 175048 Committed r135222: <http://trac.webkit.org/changeset/135222>
WebKit Review Bot
Comment 12 2012-11-19 17:59:29 PST
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.