[SERVER-15616] Attempt to rename system.indexes collection crashes server Created: 13/Oct/14  Updated: 08/Dec/17  Resolved: 14/Oct/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.7.7
Fix Version/s: 2.7.8

Type: Bug Priority: Critical - P2
Reporter: Thomas Rueckstiess Assignee: David Percy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongod.log    
Issue Links:
Related
is related to SERVER-15596 Renaming system.indexes collection sh... Closed
Tested
Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Githook User [ 13/Oct/14 ]

Author:

{u'username': u'dpercy', u'name': u'David Percy', u'email': u'david.percy@mongodb.com'}

Message: SERVER-15616 Disallow renaming system.indexes
Branch: master
https://github.com/mongodb/mongo/commit/ef985802f928f83e1f058647a2f7520b8f6ad9f2

Generated at Thu Feb 08 03:38:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.