Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80743

Investigate listDatabases returning double-prefixed dbNames

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Serverless
    • Server Serverless 2023-10-02

      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.

            Assignee:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: