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

serverStatus: db already exists with different case

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.8
    • Component/s: Storage
    • None
    • ALL
    • Hide

      Unknown.

      Show
      Unknown.

      db.serverStatus() returns databases that only differs in case.

      # mongo --port 27018 --eval "printjson(db.serverStatus())"| grep -i 773AACB7-CA2A-4473-BE3E-04A3F9F4705B
                      "metadata_773aacb7-ca2a-4473-be3e-04a3f9f4705b" : {
                      "metadata_773AACB7-CA2A-4473-BE3E-04A3F9F4705B" : {
                      "metadata_773aacb7-Ca2a-4473-be3e-04a3f9f4705b" : {
                      "metadata_773aacb7-ca2a-4473-be3e-04a3f9f4705b" : {
      

      We can fix this problem by restarting mongod, but then after a while new duplicate database names will appear in db.serverStatus again. It is not always the same database that has duplicate names. We are not sure how to reproduce this.

      It should be noted that listDatabases always returns only one when there is a case difference, and on the file system there is only one database (Linux).

       mongo --port 27018 --eval "printjson(db.runCommand( { listDatabases: 1 } ))" admin|grep -i 773AACB7-CA2A-4473-BE3E-04A3F9F4705B
                              "name" : "metadata_773aacb7-ca2a-4473-be3e-04a3f9f4705b",
      

      This is on a standalone server, not sharded, not in a replica set. Commands are issued directly to the mongod instance.
      We are running 2.4.8 at the moment.

      Let me know if there is anything else I can do.

      Regards,
      Oskar Liljeblad

            Assignee:
            Unassigned Unassigned
            Reporter:
            oskar Oskar Liljeblad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: