Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7045

validate command does not explain failure in all cases

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.2, 2.3.0
    • Affects Version/s: 2.0.7, 2.2.0
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL

      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.

            Assignee:
            tad Tad Marshall
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: