[SERVER-36260] Mongos should reject commands that aren't allowed in multi statement transactions by contain txnNumber Created: 24/Jul/18  Updated: 29/Oct/23  Resolved: 07/Nov/18

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

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

Issue Links:
Related
related to SERVER-36057 Mongos should validate transaction op... Closed
related to SERVER-36277 Allow mongos to forward txnNumbers th... Closed
is related to SERVER-35829 Make router TransactionParticipant a... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-11-19
Participants:

 Description   

Mongos isn't guaranteed to forward txnNumbers received from clients for commands that aren't supported in multi statement transactions, so it can't rely on shards to reject them. Instead mongos should check itself that received commands with txnNumbers are allowed in a transaction, ideally using the same validation code as mongod.



 Comments   
Comment by Githook User [ 07/Nov/18 ]

Author:

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

Message: SERVER-36260 Remove blacklist from sharded_core_txns_sharded_collections
Branch: master
https://github.com/mongodb/mongo/commit/5cd5440cf5c731a494fadadbb1f44f4a65bbbf55

Comment by Githook User [ 07/Nov/18 ]

Author:

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

Message: SERVER-36260 Update function names
Branch: master
https://github.com/mongodb/mongo/commit/28418b385fdb72f69447a53f4a320853e6c20592

Comment by Githook User [ 07/Nov/18 ]

Author:

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

Message: SERVER-36260 Share sessionOptions validations between MongoS and MongoD
Branch: master
https://github.com/mongodb/mongo/commit/86e89d210ad038a283541131eb5d072f92ea19f2

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