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

mongos can't write to config server replica set (CSRS) (invalid write concern)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Hide

      Set up mongod 3.2.6 replica set per https://docs.mongodb.com/manual/tutorial/deploy-shard-cluster/. Start mongos 2.6.12 pointed at that replica set.

      Show
      Set up mongod 3.2.6 replica set per https://docs.mongodb.com/manual/tutorial/deploy-shard-cluster/ . Start mongos 2.6.12 pointed at that replica set.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When I start the mongos instance, I get a string of errors along the lines of `getLastError command failed: w: 'majority' is the only valid write concern
      when writing to config server replica sets, got:

      { w: 1, wtimeout: 0 }

      `. This prevents mongos from being able to access and modify the config server, and thus the entire sharded cluster doesn't work.

      I really hope I've just done something stupid instead.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gpitfield Geoff Pitfield
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: