[SERVER-80743] Investigate listDatabases returning double-prefixed dbNames Created: 05/Sep/23  Updated: 27/Oct/23  Resolved: 28/Sep/23

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

Type: Task Priority: Major - P3
Reporter: Hugh Tong (Inactive) Assignee: Hugh Tong (Inactive)
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73113 Allow only specific global dbs to be ... Closed
Assigned Teams:
Serverless
Sprint: Server Serverless 2023-10-02
Participants:

 Description   

ReplSetTest.prototype.checkReplicatedDataHashes will retrieve a set of dbNames from 
Mongo.prototype.getDBNames which will create a listDatabases request to return a list of tenantId prefixed database names, with exceptions for admin, local, and config.  These three special databases should not be prefixed, nor should we see double-prefixed tenantIds at all.
 
This can affect any tests that call ReplSetTest.getHashesUsingSession where it will enumerate each database name provided it by getDBNames.  An example call stack is shown below:
 

ReplSetTest.prototype.getHashesUsingSession <-- {dbHash:1}
    ReplSetTest.prototype.getHashes
        checkDBHashesForReplSet
            ReplSetTest.prototype.checkReplicaSet
                ReplSetTest.prototype.checkReplicatedDataHashes
                    jstests/hooks/run_check_repl_dbhash.js

 

Traces were added to checkReplicatedDataHashes in testing for SERVER-73113 to show the list of database names being returned by listDatabases.  It's not yet clear if the databases actually exist, or if the response being returned by listDatabases is serialized incorrectly.



 Comments   
Comment by Hugh Tong (Inactive) [ 28/Sep/23 ]

Fixed in a different PR, solved via a rebase.

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