[SERVER-38690] Mongos should throw write targeting errors during a transaction Created: 18/Dec/18  Updated: 29/Oct/23  Resolved: 03/Jan/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: ShardedTxn:RouterSupport, todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-38570 txn_override.js should also abort whe... Closed
related to SERVER-43468 Complete TODO listed in SERVER-38690 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2019-01-14
Participants:

 Description   

Any error encountered in a batch during a transaction is thrown by mongos and mongod (because a transaction cannot succeed if any write fails) leading to a command error instead of individual write errors in the response to the client. However, currently mongos does not throw targeting errors encountered in a transaction batch, leading to a response with a write error instead. For consistency, mongos should throw these errors.



 Comments   
Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-43468 Complete TODO listed in SERVER-38690

(cherry picked from commit 721a6be0ed262112c5af5dd06cf2caa101b2340d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/91dec0c54efa7d9eb2e9202bf5a03e46e58fd637

Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-43468 Complete TODO listed in SERVER-38690

(cherry picked from commit 721a6be0ed262112c5af5dd06cf2caa101b2340d)
Branch: v4.4
https://github.com/mongodb/mongo/commit/773f58400a1212d71e174876d0f8b7f1bb021fac

Comment by Githook User [ 09/Apr/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-43468 Complete TODO listed in SERVER-38690
Branch: master
https://github.com/mongodb/mongo/commit/721a6be0ed262112c5af5dd06cf2caa101b2340d

Comment by Githook User [ 03/Jan/19 ]

Author:

{'username': 'jsmulrow', 'email': 'jack.mulrow@mongodb.com', 'name': 'Jack Mulrow'}

Message: SERVER-38690 Mongos should throw write targeting errors during a transaction
Branch: master
https://github.com/mongodb/mongo/commit/e83d3967bab59f0a99b61c3d96685c2b47598423

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