[DOCS-11937] WriteConcern argument description is incorrect for the moveChunk command Created: 03/Aug/18  Updated: 29/Oct/23  Resolved: 11/Aug/18

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

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

Issue Links:
Related
is related to DOCS-11936 WriteConcern format for _secondaryThr... Closed
Participants:
Days since reply: 5 years, 26 weeks, 5 days ago
Epic Link: DOCSP-1769

 Description   

Description

Here we say this:

writeConcern document Optional. A document that expresses the write concern that the _secondaryThrottle will use to wait for secondaries during the chunk migration. Any specified writeConcern implies _secondaryThrottle and will take precedent over a contradictory _secondaryThrottle setting.

This implies that you can specify any combination of writeConcern and _secondaryThrottle arguments, and that should work. However, the server will only accept the command with writeConcern if _secondaryThrottle is not set to false:

> db.runCommand({moveChunk:"test.docs", find: {x:60}, to: "shard02", _secondaryThrottle:false, writeConcern:{"w":3}})
{
    "code" : 12,
    "ok" : 0,
    "errmsg" : "Cannot specify write concern when secondaryThrottle is not set"
}

Perhaps the following line needs to be removed:

Any specified writeConcern implies _secondaryThrottle and will take precedent over a contradictory _secondaryThrottle setting.

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.