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

validate command does not explain failure in all cases

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.0.7, 2.2.0
    • 2.2.2, 2.3.0
    • Storage
    • None
    • Fully Compatible
    • ALL

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: