Closed
Bug 1297974
Opened 8 years ago
Closed 8 years ago
Shutdown hang when Firefox is closed while processing many incoming records
Categories
(Firefox :: Sync, defect, P1)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
Firefox 51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: markh, Assigned: markh)
Details
Attachments
(1 file)
Somewhat related to bug 1296560, but when processing incoming records. As we process incoming records we catch all exceptions and continue on to the next record. If the exception is a shutdown exception and there are many incoming records, we just continue to spew messages about the error applying records until Firefox is forced closed, creating a shutdown hang crash. We should just rethrow the exception so the loop is terminated.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → markh
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Priority: -- → P1
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8784713 [details] Bug 1297974 - correctly handle shutdown exceptions while applying incoming records. https://reviewboard.mozilla.org/r/74054/#review72190 We already do this in a bunch of places, so fine by me, I think. No worse than a crash. Consider resetting the file logger, as we do in policies.js, to make sure we don't lose log output.
Attachment #8784713 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2) > Consider resetting the file logger, as we do in policies.js, to make sure we > don't lose log output. That doesn't seem necessary - this patch causes Sync to fail quickly and I just verified that code in policies.js does see the shutdown exception and doing the flush after logging: > 1472190313556 Sync.ErrorHandler ERROR Sync was interrupted due to the application shutting down Thanks!
Pushed by mhammond@skippinet.com.au: https://hg.mozilla.org/integration/autoland/rev/cdcbb0707964 correctly handle shutdown exceptions while applying incoming records. r=rnewman
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cdcbb0707964
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
You need to log in
before you can comment on or make changes to this bug.
Description
•