Closed Bug 1918036 Opened 1 year ago Closed 1 year ago

IDB: Add a test for rapid addition and deletion of blobs

Categories

(Core :: Storage: IndexedDB, task, P3)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(1 file)

Add a stress test which rapidly adds and deletes blobs in a row in separate transactions. Internally, blobs are only removed when all memory and database references drop to zero. At that point an asynchronous delete operation is scheduled which removes the backing file from disk. So the overall behavior and timing depends on cycle collection and garbage collection. The main goal of the new test is to make it more likely that internal structures are accessed by multiple threads at the same time, potentially discovering races or other issues. Note that the test needs to always create a new blob and a new transaction, otherwise new backing files wouldn't be created due to internal optimizations for de-duplication.

Summary: IDB: Add a disabled test for rapid addition and deletion of blobs → IDB: Add a test for rapid addition and deletion of blobs
No longer blocks: CVE-2024-10468
Depends on: CVE-2024-10468
Attachment #9424074 - Attachment description: Bug 1918036 - IDB: Add a disabled test for rapid addition and deletion of blobs; r=#dom-storage → Bug 1918036 - IDB: Add a test for rapid addition and deletion of blobs; r=#dom-storage
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/83b7fc93a125 IDB: Add a test for rapid addition and deletion of blobs; r=dom-storage-reviewers,asuth
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: