[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: |
|
||||
| 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: Move the Extent::validates() routine from pdfile.h to pdfile.cpp, make |
| 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: Move the Extent::validates() routine from pdfile.h to pdfile.cpp, make |