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

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-08-24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: