WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 215271
[ macOS iOS wk 2 Debug ] storage/indexeddb/modern/new-database-after-user-delete.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=215271
Summary
[ macOS iOS wk 2 Debug ] storage/indexeddb/modern/new-database-after-user-del...
Hector Lopez
Reported
2020-08-07 08:46:46 PDT
storage/indexeddb/modern/new-database-after-user-delete.html This test is a flaky failure according to history. First occurrence of failure on iOS is at
r259341
. First occurrence of failure for macOS is at
r251207
. History:
https://results.webkit.org/?suite=layout-tests&test=storage%2Findexeddb%2Fmodern%2Fnew-database-after-user-delete.html&platform=ios&platform=mac&limit=50000&style=debug
Diff: --- /Volumes/Data/slave/ipados-simulator-13-debug-tests-wk2/build/layout-test-results/storage/indexeddb/modern/new-database-after-user-delete-expected.txt +++ /Volumes/Data/slave/ipados-simulator-13-debug-tests-wk2/build/layout-test-results/storage/indexeddb/modern/new-database-after-user-delete-actual.txt @@ -13,6 +13,7 @@ Version change transaction completed. Version is now 1. About to request clearAllDatabases Requested clearAllDatabases Database connection error'ed out. Opening a new connection. +Database connection error'ed out. Opening a new connection. Reopened upgrade needed: Old version - 0 New version - 1 [PASS] The database has no object stores, meaning it is new PASS successfullyParsed is true
Attachments
Patch
(6.49 KB, patch)
2022-03-15 23:47 PDT
,
Cameron McCormack (:heycam)
no flags
Details
Formatted Diff
Diff
Patch
(6.22 KB, patch)
2022-03-16 15:26 PDT
,
Cameron McCormack (:heycam)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-08-07 08:55:48 PDT
<
rdar://problem/66683545
>
Hector Lopez
Comment 2
2020-08-07 08:56:27 PDT
Test expectations while investigated:
https://trac.webkit.org/changeset/265374/webkit
Cameron McCormack (:heycam)
Comment 3
2022-03-15 23:27:25 PDT
***
Bug 204489
has been marked as a duplicate of this bug. ***
Cameron McCormack (:heycam)
Comment 4
2022-03-15 23:45:27 PDT
***
Bug 204489
has been marked as a duplicate of this bug. ***
Cameron McCormack (:heycam)
Comment 5
2022-03-15 23:47:02 PDT
Created
attachment 454805
[details]
Patch
Sihui Liu
Comment 6
2022-03-16 07:56:12 PDT
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.
Sihui Liu
Comment 7
2022-03-16 07:57:04 PDT
(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.
Cameron McCormack (:heycam)
Comment 8
2022-03-16 15:26:49 PDT
Created
attachment 454902
[details]
Patch
Sihui Liu
Comment 9
2022-03-16 15:30:41 PDT
Comment on
attachment 454902
[details]
Patch r=me, let's wait for bots to be green before landing
EWS
Comment 10
2022-03-17 13:20:39 PDT
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]
.
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