[DOCS-11936] WriteConcern format for _secondaryThrottle is incorrect Created: 03/Aug/18  Updated: 30/Oct/23  Resolved: 11/Aug/18

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by DOCS-7218 Comment on: "manual/tutorial/configur... Closed
Related
related to DOCS-11937 WriteConcern argument description is ... Closed
Participants:
Days since reply: 5 years, 26 weeks, 5 days ago
Epic Link: DOCSP-1769

 Description   

----------------------------

Original Description

Here in the documentation we have the following example:

use config
db.settings.update(
   { "_id" : "balancer" },
   { $set : { "_secondaryThrottle" : true ,
              "writeConcern": { "w": "majority" } } },
   { upsert : true }
)

This is in fact incorrect - write concern, if set that way, will not take effect. The correct way to set it is:

use config
db.settings.update(
   { "_id" : "balancer" },
   { $set : { "_secondaryThrottle" : { "w": "majority" } } },
   { upsert : true }
)

So the resulting document would look like:

MongoDB Enterprise mongos> db.getSiblingDB("config").settings.findOne()
{
	"_id" : "balancer",
	"stopped" : false,
	"mode" : "full",
	"_secondaryThrottle" : {
		"w" : "majority"
	}
}

----------------------------

Description

Scope of changes (files that need work and how much)

Impact to other docs outside of this product

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 10/Aug/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11936,DOCS-11937: true value also acceptable
Branch: v3.4
https://github.com/mongodb/docs/commit/985cf179a783dd0f6d1db681262c3f7ba9269cc1

Comment by Githook User [ 10/Aug/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11936,DOCS-11937: true value also acceptable
Branch: v3.6
https://github.com/mongodb/docs/commit/16aac4a29b34274a7da903bff8aff8690237a79d

Comment by Githook User [ 10/Aug/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11936,DOCS-11937: true value also acceptable
Branch: master
https://github.com/mongodb/docs/commit/f2f929d9fd87c8c7bfd3d409400675f7590810e2

Comment by Githook User [ 09/Aug/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11936,DOCS-11937: fix secondaryThrottle and writeConcern
Branch: v3.4
https://github.com/mongodb/docs/commit/c01e1fbf74e6759dfce6996bfd2addd9f525698d

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11936,DOCS-11937: fix secondaryThrottle and writeConcern
Branch: v3.6
https://github.com/mongodb/docs/commit/7fcee1437b31f048e5637616a1279d5687eb298a

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11936,DOCS-11937: fix secondaryThrottle and writeConcern
Branch: master
https://github.com/mongodb/docs/commit/93c75536bc286e3161f1136dddd075701d936b9a

Generated at Thu Feb 08 08:04:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.