File tree Expand file tree Collapse file tree 5 files changed +9
-13
lines changed
transactions-convenient-api/unified Expand file tree Collapse file tree 5 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -458,10 +458,10 @@ def _max_time_expired_error(exc: PyMongoError) -> bool:
458458
459459
460460# From the transactions spec, all the retryable writes errors plus
461- # WriteConcernFailed .
461+ # WriteConcernTimeout .
462462_UNKNOWN_COMMIT_ERROR_CODES : frozenset = _RETRYABLE_ERROR_CODES | frozenset (
463463 [
464- 64 , # WriteConcernFailed
464+ 64 , # WriteConcernTimeout
465465 50 , # MaxTimeMSExpired
466466 ]
467467)
Original file line number Diff line number Diff line change @@ -457,10 +457,10 @@ def _max_time_expired_error(exc: PyMongoError) -> bool:
457457
458458
459459# From the transactions spec, all the retryable writes errors plus
460- # WriteConcernFailed .
460+ # WriteConcernTimeout .
461461_UNKNOWN_COMMIT_ERROR_CODES : frozenset = _RETRYABLE_ERROR_CODES | frozenset (
462462 [
463- 64 , # WriteConcernFailed
463+ 64 , # WriteConcernTimeout
464464 50 , # MaxTimeMSExpired
465465 ]
466466)
Original file line number Diff line number Diff line change 739739 ]
740740 },
741741 {
742- "description" : " InsertOne fails after WriteConcernError WriteConcernFailed " ,
742+ "description" : " InsertOne fails after WriteConcernError WriteConcernTimeout " ,
743743 "operations" : [
744744 {
745745 "name" : " failPoint" ,
757757 ],
758758 "writeConcernError" : {
759759 "code" : 64 ,
760- "codeName" : " WriteConcernFailed" ,
761760 "errmsg" : " waiting for replication timed out" ,
762761 "errInfo" : {
763762 "wtimeout" : true
Original file line number Diff line number Diff line change 5656 ],
5757 "tests" : [
5858 {
59- "description" : " commitTransaction is retried after WriteConcernFailed timeout error" ,
59+ "description" : " commitTransaction is retried after WriteConcernTimeout timeout error" ,
6060 "operations" : [
6161 {
6262 "name" : " failPoint" ,
7474 ],
7575 "writeConcernError" : {
7676 "code" : 64 ,
77- "codeName" : " WriteConcernFailed" ,
7877 "errmsg" : " waiting for replication timed out" ,
7978 "errInfo" : {
8079 "wtimeout" : true
236235 ]
237236 },
238237 {
239- "description" : " commitTransaction is retried after WriteConcernFailed non-timeout error" ,
238+ "description" : " commitTransaction is retried after WriteConcernTimeout non-timeout error" ,
240239 "operations" : [
241240 {
242241 "name" : " failPoint" ,
254253 ],
255254 "writeConcernError" : {
256255 "code" : 64 ,
257- "codeName" : " WriteConcernFailed" ,
258256 "errmsg" : " multiple errors reported"
259257 }
260258 }
Original file line number Diff line number Diff line change 11761176 ]
11771177 },
11781178 {
1179- "description" : " add UnknownTransactionCommitResult label to writeConcernError WriteConcernFailed " ,
1179+ "description" : " add UnknownTransactionCommitResult label to writeConcernError WriteConcernTimeout " ,
11801180 "operations" : [
11811181 {
11821182 "object" : " testRunner" ,
13381338 ]
13391339 },
13401340 {
1341- "description" : " add UnknownTransactionCommitResult label to writeConcernError WriteConcernFailed with wtimeout" ,
1341+ "description" : " add UnknownTransactionCommitResult label to writeConcernError WriteConcernTimeout with wtimeout" ,
13421342 "operations" : [
13431343 {
13441344 "object" : " testRunner" ,
13561356 ],
13571357 "writeConcernError" : {
13581358 "code" : 64 ,
1359- "codeName" : " WriteConcernFailed" ,
13601359 "errmsg" : " waiting for replication timed out" ,
13611360 "errInfo" : {
13621361 "wtimeout" : true
You can’t perform that action at this time.
0 commit comments