[DOCS-6613] custom multi-datacenter write concerns contains invalid javascript Created: 17/Nov/15  Updated: 11/Jan/17  Resolved: 17/Nov/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Amit Jain Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 8 years, 12 weeks, 6 days ago

 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.



 Comments   
Comment by Githook User [ 19/Nov/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-6613: Fix invalid embedded document keys

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v2.6
https://github.com/mongodb/docs/commit/ee4bca39cb6bdca1cf35496c3fab128a7f5620fc

Comment by Githook User [ 19/Nov/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-6613: Fix invalid embedded document keys

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.0
https://github.com/mongodb/docs/commit/6d9f17af1ba53084f22a39fea78c06fe50823db1

Comment by Githook User [ 19/Nov/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-6613: Fix invalid embedded document keys

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/bc5306ee6cb5541db84dc19c35915c98bc63e92f

Comment by Andrew Aldridge [ 17/Nov/15 ]

Updated. Thanks amit.jain!

Generated at Thu Feb 08 07:52:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.