[SERVER-3262] intelligent objcheck (BSON validation) on writes Created: 14/Jun/11  Updated: 15/Feb/13  Resolved: 19/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

mongod has an --objcheck option which validates BSON on writes. however there is overhead in doing this so it is not currently the default.

in this ticket it is proposed that when this setting is off, checking still occurs on a sampled basis. if sampled, the performance impact is negligible yet one will still get some notification if there is any invalid BSON.

a good approach might be to automatically check the first few operations on each connection, and then every 1000th operation.

if invalid, write something to the log file (ideally things like MMS would notice too; not sure how to do that)

in sharded environments, the check should happen in mongos. when done in mongod please do the check outside the lock.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 19/Dec/12 ]

SERVER-7769

Generated at Thu Feb 08 03:02:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.