[SERVER-7045] validate command does not explain failure in all cases Created: 16/Sep/12  Updated: 11/Jul/16  Resolved: 09/Oct/12

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.0.7, 2.2.0
Fix Version/s: 2.2.2, 2.3.0

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The validateNS() routine in src/mongo/db/dbcommands_admin.cpp that does the work of the 'validate' command has an array called 'errors' that it will return once the command has finished. This array is supposed to contain a list of the validations that failed when the command returns 'valid' : false.

If the first extent in the collection fails the Extent::validates() test or if the first extent has a non-null 'xprev' pointer, 'valid' will be set to false but no explanation will be added to the 'errors' array.



 Comments   
Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-09-23T23:56:01Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7045 check all extents in validate command, report results

Move the Extent::validates() routine from pdfile.h to pdfile.cpp, make
it return messages for errors it finds, call it for every extent instead
of just for the first extent. Check extent DiskLoc against 'myLoc'.
Branch: v2.2
https://github.com/mongodb/mongo/commit/c2378fd2d764f76dfaf535a554f6d264ba1c1d92

Comment by auto [ 09/Oct/12 ]

Author:

{u'date': u'2012-09-23T16:56:01-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7045 check all extents in validate command, report results

Move the Extent::validates() routine from pdfile.h to pdfile.cpp, make
it return messages for errors it finds, call it for every extent instead
of just for the first extent. Check extent DiskLoc against 'myLoc'.
Branch: master
https://github.com/mongodb/mongo/commit/04d7dd8ecc3513493682f724e0572c3187bd4f1b

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