#5806 - Error notifications may sometimes be unusually large and passing MySQL max_allowed_packet
| Identifier | #5806 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Error notifications may sometimes be unusually large and passing MySQL max_allowed_packet |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | Chris Graham |
| Version | 11 beta1 |
| Addon | core_notifications |
| Description | In v11, we (currently) expect Composr to run on a 4M max_allowed_packet. But sometimes web notifications for errors can exceed 13+ MB, passing the max_allowed_packet size and triggering a secondary MYSQL error. We may need to be smarter about trimming the stack traces. I suspect Tempcode was involved. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
Also a fallback was added; if an error notification exceeds 256 kb, it will instead be dumped to disk with the path in the notification. If that fails, the notification will contain the error but truncated to 256 kb.