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

queryableBackupMode and --replSet should be incompatible

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Integration 2016-09-19, Integration 2016-10-10

      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

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: