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)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

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

              Dates

              Created:
              Updated:
              Resolved: