[SERVER-65101] Replace transaction and retryable write command allow lists with methods on Command Created: 30/Mar/22  Updated: 29/Oct/23  Resolved: 08/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Jack Mulrow Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: neweng, sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2022-06-13
Participants:
Story Points: 4

 Description   

To determine if a command is allowed in a transaction or retryable write, the command's name is looked up in one of a few allow lists. We could replace these with methods on the Command itself, like we have for many other properties, like if a command is admin database only. That way commands with multiple names or aliases wouldn't need multiple entries in the allow lists.



 Comments   
Comment by Githook User [ 08/Jun/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-65101 Replace transaction and retryable write command allow lists with methods on Command
Branch: master
https://github.com/mongodb/mongo/commit/3a49875934cfd7e70d789b4ad7093286d189acc9

Comment by Max Hirschhorn [ 11/Apr/22 ]

Acceptance criteria:

  • We believe it's possible to use globalCommandRegistry() to look up the Command object given its name and access the metadata about retryable write, transaction, and session checkout permissions.
  • Put Billy from Service Arch on the code review.
Generated at Thu Feb 08 06:01:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.