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

listDatabases command reports existence of databases that have never been written to.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • None
    • None
    • Usability
    • None
    • ALL

    Description

      If a client accesses a non-existent database by reading it, a side-effect of that action is to cause listDatabases to believe in its existence. Further, listDatabases reports its sizeOnDisk as 1 byte, but sets the "empty" flag to true. This is confusing. Non-existent databases should not appear in listDatabases, even if someone attempted to read from it. Should they appear, they certainly shouldn't be reported as having a size on disk, when they have no associated files.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              schwerin@mongodb.com Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: