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)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • 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.

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: