Skipy
unread,Mar 21, 2011, 10:47:52 AM3/21/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hello,
We're using mongo 1.6.5 and configured the following simple sharding
environment: 1 mongos that connects to 1 config server, with 2
shardservers with no replication.
We have 2 separate databases that are sharded on this environment:
uvdb and uvdb_2. uvdb is empty, but sharded.
When we run:
use uvdb;
db.dropDatabase()
we get the following error in console:
Mon Mar 21 14:11:19 query failed : uvdb.$cmd { dropDatabase: 1.0 }
to: 127.0.0.1
Mon Mar 21 14:11:19 Error: error doing query: failed (anon):1526
and the mongos process crashes. When we restart it, the uvdb database
does not exist (as expected, because it was dropped), but also
database uvdb_2 is empty - no data and no indexes! Also, config.chunks
is empty.
mongos log, just after dropDatabase() (and before crash):
Mon Mar 21 14:37:06 [conn292] DROP DATABASE: uvdb
Mon Mar 21 14:37:06 [conn292] DBConfig::dropDatabase: uvdb
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-9", server: "****IP****", time: new
Date(1300718226198), what: "dropDatabase.start", ns: "uvdb", details:
{} }
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-10", server: "****IP****", time: new
Date(1300718226198), what: "dropCollection.start", ns:
"uvdb.reactions_e0", details: {} }
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-11", server: "****IP****", time: new
Date(1300718226202), what: "dropCollection", ns: "uvdb.reactions_e0",
details: {} }
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-12", server: "****IP****", time: new
Date(1300718226202), what: "dropCollection.start", ns:
"uvdb_2.reactions_e2", details: {} }
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-13", server: "****IP****", time: new
Date(1300718226204), what: "dropCollection", ns:
"uvdb_2.reactions_e2", details: {} }
Mon Mar 21 14:37:06 [conn292] DBConfig::dropDatabase: uvdb dropped
sharded collections: 2
Mon Mar 21 14:37:06 [conn292] DBConfig::dropDatabase: uvdb dropped
sharded collections: 0
Mon Mar 21 14:37:06 [conn292] config change: { _id:
"****IP****T14:37:06-14", server: "****IP****", time: new
Date(1300718226281), what: "dropDatabase", ns: "uvdb", details: {} }
Mon Mar 21 14:37:06 [conn11595] end connection ****IP****:48975
Both shard server logs contain this:
Mon Mar 21 14:37:06 [conn229] CMD: drop uvdb.reactions_e0
Mon Mar 21 14:37:06 [conn229] CMD: drop uvdb_2.reactions_e2
Mon Mar 21 14:37:06 [conn229] wiping data for: uvdb_2.reactions_e2
Mon Mar 21 14:37:06 [conn229] dropDatabase uvdb
uname -a: Linux ****IP**** 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:34:28 EST 2008 x86_64 GNU/Linux
Do you have any ideas? It looks like sending the command to drop uvdb
also issues dropping uvdb_2. The sharded collections are
uvdb.reactions_e0, and uvdb_2.reactions_e2. We have another dabatase
that is not sharded and that is intact after the mongos crash:
uvdb_1.reactions_e1.
Mihnea Giurgea
Software Engineer @ uberVU