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

Validate command gracefully handles views

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.11
    • Fix Version/s: 3.3.12
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Integration 2016-09-19

      Description

      Currently, the validate command fails on a view namespace with an "ns not found" message. We should update the validate command to check for a view and validate its definitiion:

      • The view has no unexpected fields
      • The view does not refer to itself
      • Each field in the view definition is the correct type
      • The view has a valid aggregation pipeline

      Alternatively, we can choose to not support validate on views. If this is the case, we should fail with ErrorCodes::CommandNotSupportedOnView.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: