Trying to drop a collection named with periods and underscores, which fails. Tried to rename is using renameCollection, to then drop it. The runCommand/renameCollection causes mongod to crash:
[kmiller@walnut badger]$ start-datastore
forked process: 14574
all output going to: /home/kmiller/datastore/mongod.log
child process started successfully, parent exiting
[kmiller@walnut badger]$ mongo localhost:27006/kmiller --verbose
MongoDB shell version: 2.2.0-rc0
Mon Jul 23 14:39:54 versionCmpTest passed
Mon Jul 23 14:39:54 versionArrayTest passed
connecting to: localhost:27006/kmiller
Mon Jul 23 14:39:54 creating new connection to:localhost:27006
Mon Jul 23 14:39:54 BackgroundJob starting: ConnectBG
Mon Jul 23 14:39:54 connected connection!
MongoDB(SECONDARY) 57.4.26.83:27006/kmiller> db.distribution.20120524_1342.drop()
Mon Jul 23 14:40:10 SyntaxError: missing ; before statement (shell):1
MongoDB(PRIMARY) 57.4.26.83:27006/kmiller> use admin
switched to db admin
MongoDB(PRIMARY) 57.4.26.83:27006/admin> db.runCommand(
)
Mon Jul 23 14:40:18 SocketException: remote: 127.0.0.1:27006 error: 9001 socket exception [0] server [127.0.0.1:27006]
Mon Jul 23 14:40:18 DBClientCursor::init call() failed
Mon Jul 23 14:40:18 query failed : admin.$cmd
to: localhost:27006
Mon Jul 23 14:40:18 Error: error doing query: failed src/mongo/shell/collection.js:155
Mon Jul 23 14:40:18 trying reconnect to localhost:27006
Mon Jul 23 14:40:18 BackgroundJob starting: ConnectBG
Mon Jul 23 14:40:18 reconnect localhost:27006 failed couldn't connect to server localhost:27006
> exit
bye
[kmiller@walnut badger]$ ps -ef|grep kmiller|grep mongod
kmiller 14660 13972 0 14:40 pts/6 00:00:00 grep mongod
Noticed this happened in 2.1.2 as well, but thought it might be fixed in 2.2.0-rc0. It isn't urgent to delete the collection and I know this is just a release candidate, but noticed the problem and thought I would mention it.
Rgds/Kim