Closed Bug 2000865 Opened 1 year ago Closed 9 months ago

Resolve the failures in wpt tests related to database renaming after the update to SQLite 3.51

Categories

(Core :: Storage: IndexedDB, task)

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mak, Assigned: hsingh)

References

Details

After updating to SQLite 3.51 we got apparently permanent failures in certain indexeddb tests from the Web Platform Tests harness.
More details are available in Bug 1999921.
We should figure out if these failures are indicating a real issue in the idb code.

This is effectively blocking our SQLite updates, until resolved.

See Also: → 2002586
Summary: Resolve the failures in wpt tests related to databse renaming after the update to SQLite 3.51 → Resolve the failures in wpt tests related to database renaming after the update to SQLite 3.51

Hello, do you have any resources available to look into this issue?
It's preventing us from updating the Sqlite library, as we don't really want to cause unexpected issues to idb.

Flags: needinfo?(slloyd)
Assignee: nobody → hsingh
Flags: needinfo?(slloyd)

I see that lots of indexedDB WPTs for android expect timeout; I am not sure why's the case. Maybe it's because android would generally be slower and as a result it shows some non-deterministic behavior. I don't realistically find anything in the new sqlite changes that would interfere with tests just for android and I have also observed that these tests are timing out intermittently. Maybe we can include some conditions in the ini files for these tests.

we could also try updating to the latest version (I see that there's a bump in minor version) and see if it makes any difference. I dont' expect much difference.

I have updated the patches in Bug 1998267 if you want to test with the latest release.
Made a Try push: (new one) https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=177750
Andrew suggested in Bug 1999921:

(Andrew Sutherland [:asuth] (he/him) from Bug 1999921 comment #15)

What we really want next is to see what's happening with MOZ_LOG set to 5 for IndexedDB/5 and mozStorage/5. Let's coordinate in Workers & Storage on matrix if anyone kicks off such jobs and/or runs locally.

hmm, it looks like my try had artifact build, even if I'm sure I didn't have it locally. Remaking them.

The new Try still looks fine, Ryan ran his own Try and it looked fine... So I guess the problem seems resolved?
I'll try to check if 3.51.1 is still causing the failure, to check whether it's effectively the SQLite change, or some change we made.

Duplicate of this bug: 2002586
See Also: 2002586 →

SQLite 3.51.2 was landed.
I checked a few autoland wpt runs, and the intermittent failures view, and I cannot see an increase of failures on Android.
So we can assume some of the bugs fixed in 3.51.2 were the cause here. Either the deadlock or the EXISTS-to-JOIN optimization bugs, the latter seems to be more likely, as I doubt we are accessing the db contents without passing through the SQLite library.

So I'm going to resolve this, but feel free to change it, if you think there's more to do.

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → WORKSFORME

I just noticed there seem to be an increase in
idb-open-few-par delete_duration
idb-open-few-seq delete_duration
This has not been triaged yet, likely will be soon: https://treeherder.mozilla.org/perfherder/alerts?id=48597&hideDwnToInv=0

You need to log in before you can comment on or make changes to this bug.