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

Disable document validation for "<database>.system.resharding.*" namespaces

    • Fully Compatible
    • Sharding 2020-08-24

      Add case to this part of CollectionImpl::checkValidation() to return Status::OK(). The donor shard primary is responsible for performing document validation. Consider adding a NamespaceString::isExemptedFromDocumentValidation() method to package up this special handler.

      The goal is for the recipient shard primary to behave like a replica set secondary when performing operations on the "<database>.system.resharding.*" namespace. Secondaries use DisableDocumentValidation to skip doing document validation during oplog application. SERVER-48081 should be kept in mind for where expect to place the early return of Status::OK().

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: