Download & Extend

Guard against writing large watchdog records

Project:Mongodb
Version:7.x-1.x-dev
Component:Watchdog
Category:task
Priority:normal
Assigned:douggreen
Status:closed (won't fix)

Issue Summary

We ran into a case this weekend, where watchdog grew to 116G+. While the exact cause still isn't known, it seems possible that an errant watchdog() call could of passed large arrays in the variables, and that these arrays were written to mongo.

I know the drupal way is to fix bad code, but given (a) watchdog is a logging/error detection tool, IMO it should do no harm, and (b) since the variables are simply passed to t() they should always be strings; I propose this patch to guard against bad code.

AttachmentSizeStatusTest resultOperations
mongolog-guard.patch746 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:needs review» closed (won't fix)

you want #660460: Watchdog: Support Capped Collections