|
134 | 134 | "TransientTransactionError" |
135 | 135 | ], |
136 | 136 | "errorLabelsOmit": [ |
| 137 | + "RetryableWriteError", |
137 | 138 | "UnknownTransactionCommitResult" |
138 | 139 | ] |
139 | 140 | } |
|
223 | 224 | "TransientTransactionError" |
224 | 225 | ], |
225 | 226 | "errorLabelsOmit": [ |
| 227 | + "RetryableWriteError", |
226 | 228 | "UnknownTransactionCommitResult" |
227 | 229 | ] |
228 | 230 | } |
|
312 | 314 | "TransientTransactionError" |
313 | 315 | ], |
314 | 316 | "errorLabelsOmit": [ |
| 317 | + "RetryableWriteError", |
315 | 318 | "UnknownTransactionCommitResult" |
316 | 319 | ] |
317 | 320 | } |
|
462 | 465 | } |
463 | 466 | }, |
464 | 467 | { |
465 | | - "description": "add TransientTransactionError label to connection errors", |
| 468 | + "description": "add TransientTransactionError label to connection errors, but do not add RetryableWriteError label", |
466 | 469 | "failPoint": { |
467 | 470 | "configureFailPoint": "failCommand", |
468 | 471 | "mode": { |
|
497 | 500 | "TransientTransactionError" |
498 | 501 | ], |
499 | 502 | "errorLabelsOmit": [ |
| 503 | + "RetryableWriteError", |
500 | 504 | "UnknownTransactionCommitResult" |
501 | 505 | ] |
502 | 506 | } |
|
512 | 516 | "TransientTransactionError" |
513 | 517 | ], |
514 | 518 | "errorLabelsOmit": [ |
| 519 | + "RetryableWriteError", |
515 | 520 | "UnknownTransactionCommitResult" |
516 | 521 | ] |
517 | 522 | } |
|
534 | 539 | "TransientTransactionError" |
535 | 540 | ], |
536 | 541 | "errorLabelsOmit": [ |
| 542 | + "RetryableWriteError", |
537 | 543 | "UnknownTransactionCommitResult" |
538 | 544 | ] |
539 | 545 | } |
|
550 | 556 | "TransientTransactionError" |
551 | 557 | ], |
552 | 558 | "errorLabelsOmit": [ |
| 559 | + "RetryableWriteError", |
553 | 560 | "UnknownTransactionCommitResult" |
554 | 561 | ] |
555 | 562 | } |
|
1098 | 1105 | } |
1099 | 1106 | } |
1100 | 1107 | }, |
| 1108 | + { |
| 1109 | + "description": "do not add RetryableWriteError label to writeConcernError ShutdownInProgress that occurs within transaction", |
| 1110 | + "failPoint": { |
| 1111 | + "configureFailPoint": "failCommand", |
| 1112 | + "mode": { |
| 1113 | + "times": 1 |
| 1114 | + }, |
| 1115 | + "data": { |
| 1116 | + "failCommands": [ |
| 1117 | + "insert" |
| 1118 | + ], |
| 1119 | + "writeConcernError": { |
| 1120 | + "code": 91, |
| 1121 | + "errmsg": "Replication is being shut down" |
| 1122 | + } |
| 1123 | + } |
| 1124 | + }, |
| 1125 | + "operations": [ |
| 1126 | + { |
| 1127 | + "name": "startTransaction", |
| 1128 | + "object": "session0", |
| 1129 | + "arguments": { |
| 1130 | + "options": { |
| 1131 | + "writeConcern": { |
| 1132 | + "w": "majority" |
| 1133 | + } |
| 1134 | + } |
| 1135 | + } |
| 1136 | + }, |
| 1137 | + { |
| 1138 | + "name": "insertOne", |
| 1139 | + "object": "collection", |
| 1140 | + "arguments": { |
| 1141 | + "session": "session0", |
| 1142 | + "document": { |
| 1143 | + "_id": 1 |
| 1144 | + } |
| 1145 | + }, |
| 1146 | + "result": { |
| 1147 | + "errorLabelsContain": [], |
| 1148 | + "errorLabelsOmit": [ |
| 1149 | + "RetryableWriteError", |
| 1150 | + "TransientTransactionError", |
| 1151 | + "UnknownTransactionCommitResult" |
| 1152 | + ] |
| 1153 | + } |
| 1154 | + }, |
| 1155 | + { |
| 1156 | + "name": "abortTransaction", |
| 1157 | + "object": "session0" |
| 1158 | + } |
| 1159 | + ], |
| 1160 | + "expectations": [ |
| 1161 | + { |
| 1162 | + "command_started_event": { |
| 1163 | + "command": { |
| 1164 | + "insert": "test", |
| 1165 | + "documents": [ |
| 1166 | + { |
| 1167 | + "_id": 1 |
| 1168 | + } |
| 1169 | + ], |
| 1170 | + "ordered": true, |
| 1171 | + "readConcern": null, |
| 1172 | + "lsid": "session0", |
| 1173 | + "txnNumber": { |
| 1174 | + "$numberLong": "1" |
| 1175 | + }, |
| 1176 | + "startTransaction": true, |
| 1177 | + "autocommit": false |
| 1178 | + }, |
| 1179 | + "command_name": "insert", |
| 1180 | + "database_name": "transaction-tests" |
| 1181 | + } |
| 1182 | + }, |
| 1183 | + { |
| 1184 | + "command_started_event": { |
| 1185 | + "command": { |
| 1186 | + "abortTransaction": 1, |
| 1187 | + "lsid": "session0", |
| 1188 | + "txnNumber": { |
| 1189 | + "$numberLong": "1" |
| 1190 | + }, |
| 1191 | + "startTransaction": null, |
| 1192 | + "autocommit": false |
| 1193 | + }, |
| 1194 | + "command_name": "abortTransaction", |
| 1195 | + "database_name": "admin" |
| 1196 | + } |
| 1197 | + } |
| 1198 | + ], |
| 1199 | + "outcome": { |
| 1200 | + "collection": { |
| 1201 | + "data": [] |
| 1202 | + } |
| 1203 | + } |
| 1204 | + }, |
1101 | 1205 | { |
1102 | 1206 | "description": "add UnknownTransactionCommitResult label to writeConcernError WriteConcernFailed", |
1103 | 1207 | "failPoint": { |
|
0 commit comments