Bug 208144

Summary: Assertion failed: currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)
Product: WebKit Reporter: Sihui Liu <sihui_liu>
Component: New BugsAssignee: Sihui Liu <sihui_liu>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, alecflett, beidson, cdumez, commit-queue, ews-watchlist, jsbell, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Sihui Liu 2020-02-24 10:43:47 PST
Replace the release assertion to release logging to gather information about the bug. Crashing network process for failing to open a database seems too aggressive.
Comment 1 Sihui Liu 2020-02-24 10:44:20 PST
<rdar://problem/59687897>
Comment 2 Sihui Liu 2020-02-24 10:51:14 PST
Created attachment 391557 [details]
Patch
Comment 3 Ryosuke Niwa 2020-02-24 19:11:54 PST
Comment on attachment 391557 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391557&action=review

> Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {

Don't we also want to log objectStoreInfoTableName and objectStoreInfoTableNameAlternate?
Comment 4 Sihui Liu 2020-02-25 08:53:36 PST
(In reply to Ryosuke Niwa from comment #3)
> Comment on attachment 391557 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=391557&action=review
> 
> > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> > -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> > +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {
> 
> Don't we also want to log objectStoreInfoTableName and
> objectStoreInfoTableNameAlternate?

objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants.
Comment 5 WebKit Commit Bot 2020-02-25 09:37:58 PST
Comment on attachment 391557 [details]
Patch

Clearing flags on attachment: 391557

Committed r257361: <https://trac.webkit.org/changeset/257361>
Comment 6 WebKit Commit Bot 2020-02-25 09:38:00 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Ryosuke Niwa 2020-02-25 15:28:33 PST
(In reply to Sihui Liu from comment #4)
> (In reply to Ryosuke Niwa from comment #3)
> > Comment on attachment 391557 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=391557&action=review
> > 
> > > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:692
> > > -    RELEASE_ASSERT(currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableName) || currentSchema == createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate));
> > > +    if (currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableName) && currentSchema != createV1ObjectStoreInfoSchema(objectStoreInfoTableNameAlternate)) {
> > 
> > Don't we also want to log objectStoreInfoTableName and
> > objectStoreInfoTableNameAlternate?
> 
> objectStoreInfoTableName and objectStoreInfoTableNameAlternate are constants.

Ah, ok.