Closed Bug 1735124 Opened 3 years ago Closed 2 years ago

Make QM_TRY stacks thread-aware

Categories

(Core :: Storage: Quota Manager, task)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: jstutte, Assigned: hsingh)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

The sequence number is currently per-process , and we don't record the thread id. We should record a pair of thread id and thread-local sequence number.

This translates into:

  • having thread-specific sequence counters
  • write out the thread_id

To avoid effort in adjusting the python scripts, we might consider to mangle the thread id with the thread sequence number to have just one seq id, like ((thread_id << 32) | (thread_seq & 0xffffffff)).

Blocks: 1741408
Assignee: nobody → hsingh
Status: NEW → ASSIGNED
Blocks: 1735170
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99502a67f326
sequence field in QM_TRY stack propagation now contains seq_no and thread_id information, r=jstutte,dom-storage-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch

With my last commit, I started the sequence number counter started at 0 which caused some issues with the python scripts. I need to change the sequence counter number to start at 1 and it used to be like that prior to my change.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by jstutte@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f52c39eaa11b
Start the sequence number in QM_TRY logging at 1. r=jstutte
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

The python scripts located in dom/quota/scripts also need to be adapted.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by jkrause@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c78ac4ebf32b
Include `thread_id` in row order and extract `seq` from merged value. r=dom-storage-reviewers,jstutte
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: