[SERVER-7325] Validation error "exception during validate" should display exception text Created: 11/Oct/12  Updated: 06/Dec/17  Resolved: 08/May/17

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: 2.0.7, 2.2.0
Fix Version/s: 3.5.7

Type: Bug Priority: Minor - P4
Reporter: Tad Marshall Assignee: Robert Guo (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-05-08, TIG 2017-05-29
Participants:

 Description   

If a collection fails validation by the db.collectionName.validate() command and does so by throwing an assertion exception, the error "exception during validate" is returned in the "errors" array. This text should include the text of the assertion so that the user knows what the exception was without having to look in the log file.



 Comments   
Comment by Robert Guo (Inactive) [ 08/May/17 ]

Not requesting backport since I don't recall ever seeing this particular mmapv1-only error.

Comment by Githook User [ 08/May/17 ]

Author:

{u'username': u'guoyr', u'name': u'Robert Guo', u'email': u'robert.guo@10gen.com'}

Message: SERVER-7325 print message of certain mmapv1 validate() errors
Branch: master
https://github.com/mongodb/mongo/commit/1f4b55aa5cc3849f71e79efe5d5acca490993e81

Comment by Robert Guo (Inactive) [ 30/Mar/17 ]

Putting this in 3.5 Desired. The exception message is indeed not used at the moment and it could give us additional information

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