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

queryableBackupMode and --replSet should be incompatible

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.14
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Integration 2016-09-19, Integration 2016-10-10

      Description

      It looks there is already code trying to do this:
      https://github.com/mongodb/mongo/blob/r3.3.5/src/mongo/db/mongod_options.cpp#L651

      for (const auto& disallowedOption : {"replSet",
                                           "configSvr",
                                           "upgrade",
                                           "repair",
                                           "profile",
                                           "master",
                                           "slave",
                                           "source",
                                           "only",
                                           "slavedelay",
                                           "journal",
                                           "storage.journal.enabled",
                                           "dur",
                                           "autoresync",
                                           "fastsync"}) {
          if (params.count(disallowedOption)) {
              return Status(ErrorCodes::BadValue,
                            str::stream() << "Cannot specify both --queryableBackupMode and --"
                                          << disallowedOption);
          }
      }
      

      But it should be "replication.replSet" and not "replSet" we should also check the other parameters if they also need to be corrected

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sam.rossi Samuel Rossi (Inactive)
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: