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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.0
    • Affects Version/s: 2.6.7
    • Component/s: Internal Code, Storage
    • None
    • Environment:
      Operational
    • Fully Compatible
    • ALL

      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

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

              Created:
              Updated:
              Resolved: