Coming from #87844.
Summary
Let's investigate the following Onyx storage error: UnknownError: Connection to Indexed Database server lost., which accounts for 637,821 (19.0%) of the 3,364,645 analysed errors during a time span of 1 month. Full details about the investigation and methodology are in #87844.
| Platforms |
Top Methods |
| Desktop Safari (558K), iOS Safari (72K), iOS Chrome (8K) |
setWithRetry (578K), multiSetWithRetry (34K) |
| Retries Exhausted |
Evictions |
No Eviction |
Quota Checks |
>= 95% Full |
Mean % Full |
Quota Check Failed |
| 106,394 |
0 |
0 |
0 |
— |
— |
0 |
- Safari/WebKit-exclusive — the IDB connection drops unexpectedly
- No eviction or quota involvement — not recognized as a capacity error, so Onyx retries immediately without eviction
- 106K exhausted all retries (16.7% of this error) — immediate retries don't help because the connection itself is gone
Action Items
- Investigate with Sentry, VictoriaLogs and Fullstory to understand user scenarios — is this caused by tab backgrounding, memory pressure, or Safari's aggressive IDB cleanup?
Consider adding retry backoff for this error. Immediate retries are ineffective when the connection is gone — a delay could allow the browser to re-establish it. (being handled here)
- Consider detecting when the IDB connection is lost and reopening it before retrying
- Consider adding a
visibilitychange listener to proactively reconnect when the tab returns to foreground
Coming from #87844.
Summary
Let's investigate the following Onyx storage error:
UnknownError: Connection to Indexed Database server lost., which accounts for 637,821 (19.0%) of the 3,364,645 analysed errors during a time span of 1 month. Full details about the investigation and methodology are in #87844.setWithRetry(578K),multiSetWithRetry(34K)Action Items
Consider adding retry backoff for this error. Immediate retries are ineffective when the connection is gone — a delay could allow the browser to re-establish it.(being handled here)visibilitychangelistener to proactively reconnect when the tab returns to foreground