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

"show databases" may show non-existent databases on secondary nodes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.0.0
    • 2.6.7
    • Internal Code, Storage
    • None
    • Operational
    • Fully Compatible
    • ALL

    Description

      When using a database that doesn't exist on a secondary node, and performing a find query - the database is created on the secondary only.
      There's no way to delete it from the server due to "not master" error.
      The only way to bypass it, is to create the database on the primary node and to drop it.

      The commands for reproduce:
      Secondary:
      use ops_test
      db.config.find(

      {id:1}

      )

      Mongo version 2.6.7
      Ubuntu 12.04.5 LTS
      Mongo shell from bash

      Attachments

        Activity

          People

            Unassigned Unassigned
            nitzan@adallom.com nitzan dana
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: