| Summary: | [ macOS iOS wk 2 Debug ] storage/indexeddb/modern/new-database-after-user-delete.html is a flaky failure | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Hector Lopez <hector_i_lopez> | ||||||
| Component: | New Bugs | Assignee: | Cameron McCormack (:heycam) <heycam> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | alecflett, beidson, ews-watchlist, heycam, jsbell, pvollan, sihui_liu, webkit-bot-watchers-bugzilla, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 221124 | ||||||||
| Attachments: |
|
||||||||
|
Description
Hector Lopez
2020-08-07 08:46:46 PDT
Test expectations while investigated: https://trac.webkit.org/changeset/265374/webkit *** Bug 204489 has been marked as a duplicate of this bug. *** *** Bug 204489 has been marked as a duplicate of this bug. *** Created attachment 454805 [details]
Patch
Comment on attachment 454805 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=454805&action=review r=me > Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp:1460 > + ASSERT(!m_versionChangeDatabaseConnection || openDatabaseConnections.contains(m_versionChangeDatabaseConnection.get())); > + m_versionChangeDatabaseConnection = nullptr; hmm, the mac-AS-debug-wk2 seems related. oh I see, there is still a case where we don't add m_versionChangeDatabaseConnection to m_openDatabaseConnections synchronously: in UniqueIDBDatabase::performCurrentOpenOperationAfterSpaceCheck and when it falls to maybeNotifyConnectionsOfVersionChange() -- we would add it to the set after events are dispatched to existing open connections. Let's change this to check if openDatabaseConnections has m_versionChangeDatabaseConnection.get(), and close it if it's not in the set and has not been closed. (In reply to Sihui Liu from comment #6) > Comment on attachment 454805 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=454805&action=review > > r=me (Sorry was about to to say r=me after the change) > > > Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp:1460 > > + ASSERT(!m_versionChangeDatabaseConnection || openDatabaseConnections.contains(m_versionChangeDatabaseConnection.get())); > > + m_versionChangeDatabaseConnection = nullptr; > > hmm, the mac-AS-debug-wk2 seems related. > > oh I see, there is still a case where we don't add > m_versionChangeDatabaseConnection to m_openDatabaseConnections synchronously: > in UniqueIDBDatabase::performCurrentOpenOperationAfterSpaceCheck and when it > falls to maybeNotifyConnectionsOfVersionChange() -- we would add it to the > set after events are dispatched to existing open connections. > > Let's change this to check if openDatabaseConnections has > m_versionChangeDatabaseConnection.get(), and close it if it's not in the set > and has not been closed. Created attachment 454902 [details]
Patch
Comment on attachment 454902 [details]
Patch
r=me, let's wait for bots to be green before landing
Committed r291435 (248559@main): <https://commits.webkit.org/248559@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454902 [details]. |