[SERVER-70238] Remove check for featureFlagRequireTenantID in listDatabases command Created: 05/Oct/22  Updated: 29/Oct/23  Resolved: 05/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Janna Golden Assignee: Adi Agrawal
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-10-17
Participants:
Linked BF Score: 158

 Description   

There are a few tests that start a replica set with 2 nodes and enable featureFlagRequireTenantId when this featureFlag is on, and SERVER-67431 changed listDatabases so it will not return any databases if a tenantId was not passed. So, initial sync will fail to copy any dbs. Thus, the secondary never creates the admin.system.version collection, and when it goes to apply the insert oplog entry, it doesn't find the collection. SERVER-70098 will change initial sync to use listDatabasesForAllTenants when the feature flag is enabled - in that ticket we should put back the behavior we had added in SERVER-67431.



 Comments   
Comment by Githook User [ 05/Oct/22 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'aa729@cornell.edu', 'username': 'Adityav369'}

Message: SERVER-70238: Revert return empty vector for listDatabases when featureFlagRequireTenantId is enabled.
Branch: master
https://github.com/mongodb/mongo/commit/c3d00621e2298357f7b82a7f321562d88e04d810

Generated at Thu Feb 08 06:15:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.