Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6613

custom multi-datacenter write concerns contains invalid javascript

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None
    • None

    Description

      The documentation for custom multi-datacenter write concerns uses invalid JavaScript.

      I tested it in the mongo shells for 2.6.0, 2.6.11, and 3.0.7 and found the same error

      replset:PRIMARY> var conf = rs.conf();
      replset:PRIMARY> conf.members[0].tags = { "dc.va": "rack1"};
      replset:PRIMARY> rs.reconfig(conf)
      {
      	"errmsg" : "exception: The dotted field 'dc.va' in 'members.0.tags.dc.va' is not valid for storage.",
      	"code" : 57,
      	"ok" : 0
      }

      The user should use underscores instead of dots. At your convenience, please make the same change to avoid confusion in the future.

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            amit.jain@mongodb.com Amit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 12 weeks, 6 days ago