Skip to content

Commit 3d5cc3b

Browse files
authored
DOCS-16564 writeConcernErrors (#5776) (#7009)
* DOCS-16564 writeConcernError on mongos * Adds include to other commands * Edits substitution * Minor edits * fixes minor issue * Adds facets * Minor edits * Fixes per Joe * Fixes per Brett * Fixes per Brett * Renames file
1 parent 12d3e7e commit 3d5cc3b

File tree

7 files changed

+70
-10
lines changed

7 files changed

+70
-10
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
.. versionchanged:: 7.1
3+
4+
When |cmd| is received from :program:`mongos`, write concern
5+
errors are always reported, even when one or more write
6+
errors occur.
7+
8+
In previous releases, the occurrence of write errors could
9+
cause the |cmd| to not report write concern errors.
10+
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
.. versionchanged:: 7.1
3+
4+
When |cmd| executes on :program:`mongos`, write concern
5+
errors are always reported, even when one or more write
6+
errors occur.
7+
8+
In previous releases, the occurrence of write errors could
9+
cause the |cmd| to not report write concern errors.
10+
11+

source/reference/command/delete.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ delete
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -469,8 +473,12 @@ The returned document contains a subset of the following fields:
469473

470474
.. data:: delete.writeConcernError
471475

472-
Document that describe error related to write concern and contains
473-
the fields:
476+
Document describing errors that relate to the write concern.
477+
478+
.. |cmd| replace:: :dbcommand:`delete`
479+
.. include:: /includes/fact-writeConcernError-mongos
480+
481+
The ``writeConcernError`` documents contian the following fields:
474482

475483
.. data:: delete.writeConcernError.code
476484

source/reference/command/insert.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ insert
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -314,8 +318,12 @@ The returned document contains a subset of the following fields:
314318

315319
.. data:: insert.writeConcernError
316320

317-
Document that describe error related to write concern and contains
318-
the field:
321+
Document describing errors that relate to the write concern.
322+
323+
.. |cmd| replace:: :dbcommand:`insert`
324+
.. include:: /includes/fact-writeConcernError-mongos
325+
326+
The ``writeConcernError`` documents contain the following fields:
319327

320328
.. data:: insert.writeConcernError.code
321329

source/reference/command/update.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ update
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -1225,8 +1229,12 @@ The returned document contains a subset of the following fields:
12251229

12261230
.. data:: update.writeConcernError
12271231

1228-
Document that describe error related to write concern and contains
1229-
the field:
1232+
Document describing errors that relate to the write concern.
1233+
1234+
.. |cmd| replace:: :dbcommand:`update`
1235+
.. include:: /includes/fact-writeConcernError-mongos
1236+
1237+
The ``writeConcernError`` documents contain the following fields:
12301238

12311239
.. data:: update.writeConcernError.code
12321240

source/reference/method/BulkWriteResult.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ BulkWriteResult()
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: programming_language
11+
:values: shell
12+
913
.. contents:: On this page
1014
:local:
1115
:backlinks: none
@@ -129,8 +133,12 @@ property with the following fields:
129133

130134
.. data:: writeConcernError
131135

132-
Document that describes the error related to write concern and
133-
contains the fields:
136+
Document describing errors that relate to the write concern.
137+
138+
.. |cmd| replace:: :method:`BulkWriteResult`
139+
.. include:: /includes/fact-bulk-writeConcernError-mongos
140+
141+
The ``writeConcernError`` documents contains the following fields:
134142

135143
.. data:: writeConcernError.code
136144

source/reference/method/WriteResult.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ WriteResult()
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: programming_language
9+
:values: shell
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -90,8 +94,10 @@ The :method:`WriteResult` has the following properties:
9094

9195
.. data:: WriteResult.writeConcernError
9296

93-
A document that contains information regarding any write concern errors encountered
94-
during the write operation.
97+
Document describing errors that relate to the write concern.
98+
99+
.. |cmd| replace:: :method:`WriteResult`
100+
.. include:: /includes/fact-bulk-writeConcernError-mongos
95101

96102
.. data:: WriteResult.writeConcernError.code
97103

0 commit comments

Comments
 (0)