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

Attempt to rename system.indexes collection crashes server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.7.8
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL

      Description

      Trying to rename the system.indexes collection violates an invariant and crashes the server.

      Shell output:

      MongoDB shell version: 2.7.7
      connecting to: test
      Server has startup warnings:
      2014-10-13T11:05:05.095-0400 I -        [initandlisten]
      2014-10-13T11:05:05.096-0400 I -        [initandlisten] ** NOTE: This is a development version (2.7.7) of MongoDB.
      2014-10-13T11:05:05.096-0400 I -        [initandlisten] **       Not recommended for production.
      2014-10-13T11:05:05.096-0400 I -        [initandlisten]
      > db.system.indexes.renameCollection("myindexes")
      2014-10-13T11:05:08.915-0400 I NETWORK  DBClientCursor::init call() failed
      2014-10-13T11:05:08.921-0400 I QUERY    Error: error doing query: failed
          at DBQuery._exec (src/mongo/shell/query.js:83:36)
          at DBQuery.hasNext (src/mongo/shell/query.js:114:10)
          at DBCollection.findOne (src/mongo/shell/collection.js:185:19)
          at DB.runCommand (src/mongo/shell/db.js:58:41)
          at DB.adminCommand (src/mongo/shell/db.js:66:41)
          at DBCollection.renameCollection (src/mongo/shell/collection.js:592:21)
          at (shell):1:19 at src/mongo/shell/query.js:83
      2014-10-13T11:05:08.922-0400 I NETWORK  trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed
      2014-10-13T11:05:08.923-0400 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
      2014-10-13T11:05:08.923-0400 I NETWORK  reconnect 127.0.0.1:27017 (127.0.0.1) failed failed couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed

      Log file attached.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: