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

CollectionOptions::validate() fails if a UUID is present.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.8
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-05-29

      CollectionOptions started supporting an optional collection UUID in SERVER-27987. The collection UUID is generated by the server and is not permitted as part of the collection options when provided by a user (as opposed to reading the existing collection metadata using listCollections). This behavior is controlled by the CollectionOptions::ParseKind enumeration when calling CollectionOptions::parse().

      CollectionOptions also supports validation by calling CollectionOptions::validate(). Currently, validate() will fail if the metadata contains a collection UUID.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: