[SERVER-23941] queryableBackupMode and --replSet should be incompatible Created: 26/Apr/16  Updated: 19/Nov/16  Resolved: 16/Sep/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-23939 replSetInitiate hangs when running in... Closed
Backwards Compatibility: Fully Compatible
Sprint: Integration 2016-09-19, Integration 2016-10-10
Participants:

 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



 Comments   
Comment by Githook User [ 16/Sep/16 ]

Author:

{u'name': u'Sam Rossi', u'email': u'sam.rossi@mongodb.com'}

Message: SERVER-23941 fix check for incompatible arguments when using queryableBackupMode
Branch: master
https://github.com/mongodb/mongo/commit/b70e81ae8af3775c584159ee4800d8382f7f7feb

Generated at Thu Feb 08 04:04:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.