Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 138473004: IndexedDB: Prevent terminated worker from hanging connections (Closed)

Created:
6 years, 11 months ago by jsbell
Modified:
6 years, 11 months ago
Reviewers:
alecflett, dgrogan, cmumford
CC:
blink-reviews, dgrogan, alecflett, jsbell, cmumford
Visibility:
Public.

Description

IndexedDB: Prevent terminated worker from hanging connections IndexedDB database connection shutdown is normally blocked on waiting for transactions to finish. And transaction finishing requires an abort/onAbort message round-trip to the back-end. When a Worker context is stopped, the communication channel goes away before the response comes back, so the transaction never finishes and the database connection never closes. Fix by explicitly closing the connection when the execution context is stopped. R=alecflett@chromium.org,dgrogan@chromium.org,cmumford@chromium.org BUG=242115 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165179

Patch Set 1 #

Patch Set 2 : Add test expectation #

Total comments: 2

Patch Set 3 : Reword comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -11 lines) Patch
M Source/modules/indexeddb/IDBDatabase.cpp View 1 2 2 chunks +12 lines, -5 lines 0 comments Download
M Source/modules/indexeddb/IDBTransaction.cpp View 3 chunks +19 lines, -6 lines 0 comments Download
M Source/modules/indexeddb/IDBTransactionTest.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jsbell
dgrogan@, alecflett@ - please take a look?
6 years, 11 months ago (2014-01-15 18:58:19 UTC) #1
dgrogan
Alec, can you get this one since you and Josh talked about it the other ...
6 years, 11 months ago (2014-01-15 22:53:52 UTC) #2
alecflett
lgtm with minor comments about comments. Possibly still worth mentioning worker stop case, but you've ...
6 years, 11 months ago (2014-01-15 23:40:23 UTC) #3
jsbell
https://codereview.chromium.org/138473004/diff/30001/Source/modules/indexeddb/IDBDatabase.cpp File Source/modules/indexeddb/IDBDatabase.cpp (right): https://codereview.chromium.org/138473004/diff/30001/Source/modules/indexeddb/IDBDatabase.cpp#newcode412 Source/modules/indexeddb/IDBDatabase.cpp:412: // down. So in the case of context stop, ...
6 years, 11 months ago (2014-01-15 23:56:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/138473004/120001
6 years, 11 months ago (2014-01-16 00:01:34 UTC) #5
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 02:17:06 UTC) #6
Message was sent while issue was closed.
Change committed as 165179

Powered by Google App Engine
This is Rietveld 408576698