Test : jstests/sharding/features1.js ... Resetting db path '/data/db/features10' Wed Aug 1 12:08:29 shell: started program mongod-2.0.6 --port 30000 --dbpath /data/db/features10 --nopreallocj m30000| Wed Aug 1 12:08:29 [initandlisten] MongoDB starting : pid=6357 port=30000 dbpath=/data/db/features10 64-bit host=ubuntu m30000| Wed Aug 1 12:08:29 [initandlisten] db version v2.0.6, pdfile version 4.5 m30000| Wed Aug 1 12:08:29 [initandlisten] git version: e1c0cbc25863f6356aa4e31375add7bb49fb05bc m30000| Wed Aug 1 12:08:29 [initandlisten] build info: Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41 m30000| Wed Aug 1 12:08:29 [initandlisten] options: { dbpath: "/data/db/features10", nopreallocj: true, port: 30000 } m30000| Wed Aug 1 12:08:29 [initandlisten] journal dir=/data/db/features10/journal m30000| Wed Aug 1 12:08:29 [initandlisten] recover : no journal files present, no recovery needed m30000| Wed Aug 1 12:08:29 [websvr] admin web console waiting for connections on port 31000 m30000| Wed Aug 1 12:08:29 [initandlisten] waiting for connections on port 30000 m30000| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:58659 #1 Resetting db path '/data/db/features11' Wed Aug 1 12:08:29 shell: started program mongod-2.0.6 --port 30001 --dbpath /data/db/features11 --nopreallocj m30001| Wed Aug 1 12:08:29 [initandlisten] MongoDB starting : pid=6370 port=30001 dbpath=/data/db/features11 64-bit host=ubuntu m30001| Wed Aug 1 12:08:29 [initandlisten] db version v2.0.6, pdfile version 4.5 m30001| Wed Aug 1 12:08:29 [initandlisten] git version: e1c0cbc25863f6356aa4e31375add7bb49fb05bc m30001| Wed Aug 1 12:08:29 [initandlisten] build info: Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41 m30001| Wed Aug 1 12:08:29 [initandlisten] options: { dbpath: "/data/db/features11", nopreallocj: true, port: 30001 } m30001| Wed Aug 1 12:08:29 [initandlisten] journal dir=/data/db/features11/journal m30001| Wed Aug 1 12:08:29 [initandlisten] recover : no journal files present, no recovery needed m30001| Wed Aug 1 12:08:29 [initandlisten] waiting for connections on port 30001 m30001| Wed Aug 1 12:08:29 [websvr] admin web console waiting for connections on port 31001 m30001| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:48024 #1 "localhost:30000" m30000| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:58662 #2 ShardingTest features1 : { "config" : "localhost:30000", "shards" : [ connection to localhost:30000, connection to localhost:30001 ] } Wed Aug 1 12:08:29 shell: started program /home/greg/Workspaces/Mongo Workspace/mongo/mongos --port 30999 --configdb localhost:30000 -v --chunkSize 50 m30999| Wed Aug 1 12:08:29 warning: running with 1 config server should be done only for testing purposes and is not recommended for production m30999| Wed Aug 1 12:08:29 [mongosMain] MongoS version 2.2.0-rc1-pre- starting: pid=6385 port=30999 64-bit host=ubuntu (--help for usage) m30999| Wed Aug 1 12:08:29 [mongosMain] git version: ebef819976d99cbcc30a993f8a6c3f615167f79f m30999| Wed Aug 1 12:08:29 [mongosMain] build info: Linux ubuntu 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 BOOST_LIB_VERSION=1_49 m30999| Wed Aug 1 12:08:29 [mongosMain] options: { chunkSize: 50, configdb: "localhost:30000", port: 30999, verbose: true } m30999| Wed Aug 1 12:08:29 [mongosMain] config string : localhost:30000 m30999| Wed Aug 1 12:08:29 [mongosMain] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:29 BackgroundJob starting: ConnectBG m30000| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:58664 #3 m30999| Wed Aug 1 12:08:29 [mongosMain] connected connection! m30999| Wed Aug 1 12:08:29 BackgroundJob starting: CheckConfigServers m30999| Wed Aug 1 12:08:29 [CheckConfigServers] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:29 BackgroundJob starting: ConnectBG m30999| Wed Aug 1 12:08:29 [CheckConfigServers] connected connection! m30000| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:58665 #4 m30999| Wed Aug 1 12:08:29 [mongosMain] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:29 BackgroundJob starting: ConnectBG m30000| Wed Aug 1 12:08:29 [initandlisten] connection accepted from 127.0.0.1:58666 #5 m30999| Wed Aug 1 12:08:29 [mongosMain] connected connection! m30000| Wed Aug 1 12:08:29 [FileAllocator] allocating new datafile /data/db/features10/config.ns, filling with zeroes... m30000| Wed Aug 1 12:08:29 [FileAllocator] creating directory /data/db/features10/_tmp m30000| Wed Aug 1 12:08:29 [FileAllocator] done allocating datafile /data/db/features10/config.ns, size: 16MB, took 0.101 secs m30000| Wed Aug 1 12:08:29 [FileAllocator] allocating new datafile /data/db/features10/config.0, filling with zeroes... m30000| Wed Aug 1 12:08:30 [FileAllocator] done allocating datafile /data/db/features10/config.0, size: 64MB, took 0.68 secs m30000| Wed Aug 1 12:08:30 [FileAllocator] allocating new datafile /data/db/features10/config.1, filling with zeroes... m30000| Wed Aug 1 12:08:30 [conn5] build index config.version { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn5] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn5] insert config.version 797ms m30999| Wed Aug 1 12:08:30 [mongosMain] fd limit hard:65536 soft:65536 max conn: 52428 m30999| Wed Aug 1 12:08:30 [websvr] fd limit hard:65536 soft:65536 max conn: 52428 m30999| Wed Aug 1 12:08:30 BackgroundJob starting: cursorTimeout m30999| Wed Aug 1 12:08:30 BackgroundJob starting: PeriodicTask::Runner m30999| Wed Aug 1 12:08:30 BackgroundJob starting: Balancer m30999| Wed Aug 1 12:08:30 [websvr] admin web console waiting for connections on port 31999 m30999| Wed Aug 1 12:08:30 [Balancer] about to contact config servers and shards m30000| Wed Aug 1 12:08:30 [conn3] build index config.settings { _id: 1 } m30999| Wed Aug 1 12:08:30 [mongosMain] waiting for connections on port 30999 m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] build index config.chunks { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] info: creating collection config.chunks on add index m30000| Wed Aug 1 12:08:30 [conn3] build index config.chunks { ns: 1, min: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] build index config.chunks { ns: 1, shard: 1, min: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] build index config.chunks { ns: 1, lastmod: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] build index config.shards { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:30 [conn3] info: creating collection config.shards on add index m30000| Wed Aug 1 12:08:30 [conn3] build index config.shards { host: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:30 [Balancer] config servers and shards contacted successfully m30999| Wed Aug 1 12:08:30 [Balancer] balancer id: ubuntu:30999 started at Aug 1 12:08:30 m30999| Wed Aug 1 12:08:30 [Balancer] created new distributed lock for balancer on localhost:30000 ( lock timeout : 900000, ping interval : 30000, process : 0 ) m30999| Wed Aug 1 12:08:30 [Balancer] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:30 BackgroundJob starting: ConnectBG m30000| Wed Aug 1 12:08:30 [initandlisten] connection accepted from 127.0.0.1:58671 #6 m30000| Wed Aug 1 12:08:30 [conn5] build index config.mongos { _id: 1 } m30999| Wed Aug 1 12:08:30 [Balancer] connected connection! m30000| Wed Aug 1 12:08:30 [conn5] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:30 [Balancer] Refreshing MaxChunkSize: 50 m30999| Wed Aug 1 12:08:30 [LockPinger] creating distributed lock ping thread for localhost:30000 and process ubuntu:30999:1343837310:1804289383 (sleeping for 30000ms) m30000| Wed Aug 1 12:08:30 [conn3] build index config.lockpings { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:30 [Balancer] inserting initial doc in config.locks for lock balancer m30999| Wed Aug 1 12:08:30 [Balancer] about to acquire distributed lock 'balancer/ubuntu:30999:1343837310:1804289383: m30999| { "state" : 1, m30999| "who" : "ubuntu:30999:1343837310:1804289383:Balancer:846930886", m30999| "process" : "ubuntu:30999:1343837310:1804289383", m30999| "when" : { "$date" : "Wed Aug 1 12:08:30 2012" }, m30999| "why" : "doing balance round", m30999| "ts" : { "$oid" : "5019547edd6dace06abe2e94" } } m30999| { "_id" : "balancer", m30999| "state" : 0 } m30000| Wed Aug 1 12:08:30 [conn6] build index config.locks { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn6] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:30 [Balancer] distributed lock 'balancer/ubuntu:30999:1343837310:1804289383' acquired, ts : 5019547edd6dace06abe2e94 m30999| Wed Aug 1 12:08:30 [Balancer] *** start balancing round m30999| Wed Aug 1 12:08:30 [LockPinger] cluster localhost:30000 pinged successfully at Wed Aug 1 12:08:30 2012 by distributed lock pinger 'localhost:30000/ubuntu:30999:1343837310:1804289383', sleeping for 30000ms m30000| Wed Aug 1 12:08:30 [conn3] build index config.lockpings { ping: 1 } m30999| Wed Aug 1 12:08:30 [Balancer] no collections to balance m30999| Wed Aug 1 12:08:30 [Balancer] no need to move any chunk m30999| Wed Aug 1 12:08:30 [Balancer] *** end of balancing round m30000| Wed Aug 1 12:08:30 [conn3] build index done 1 records 0 secs m30999| Wed Aug 1 12:08:30 [Balancer] distributed lock 'balancer/ubuntu:30999:1343837310:1804289383' unlocked. m30999| Wed Aug 1 12:08:30 [mongosMain] connection accepted from 127.0.0.1:40903 #1 (1 connection now open) ShardingTest undefined going to add shard : localhost:30000 m30999| Wed Aug 1 12:08:30 [conn1] couldn't find database [admin] in config db m30000| Wed Aug 1 12:08:30 [conn3] build index config.databases { _id: 1 } m30000| Wed Aug 1 12:08:30 [conn3] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:30 [conn1] put [admin] on: config:localhost:30000 m30000| Wed Aug 1 12:08:32 [FileAllocator] done allocating datafile /data/db/features10/config.1, size: 128MB, took 1.878 secs m30000| Wed Aug 1 12:08:32 [conn5] command admin.$cmd command: { listDatabases: 1 } ntoreturn:1 reslen:177 1678ms m30999| Wed Aug 1 12:08:32 [conn1] going to add shard: { _id: "shard0000", host: "localhost:30000" } { "shardAdded" : "shard0000", "ok" : 1 } ShardingTest undefined going to add shard : localhost:30001 m30999| Wed Aug 1 12:08:32 [conn1] creating new connection to:localhost:30001 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: ConnectBG m30001| Wed Aug 1 12:08:32 [initandlisten] connection accepted from 127.0.0.1:48036 #2 m30999| Wed Aug 1 12:08:32 [conn1] connected connection! m30999| Wed Aug 1 12:08:32 [conn1] going to add shard: { _id: "shard0001", host: "localhost:30001" } { "shardAdded" : "shard0001", "ok" : 1 } m30999| Wed Aug 1 12:08:32 [conn1] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: ConnectBG m30999| Wed Aug 1 12:08:32 [conn1] connected connection! m30999| Wed Aug 1 12:08:32 [conn1] creating WriteBackListener for: localhost:30000 serverID: 5019547edd6dace06abe2e93 m30000| Wed Aug 1 12:08:32 [initandlisten] connection accepted from 127.0.0.1:58674 #7 m30999| Wed Aug 1 12:08:32 [conn1] initializing shard connection to localhost:30000 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: WriteBackListener-localhost:30000 m30999| Wed Aug 1 12:08:32 [conn1] creating new connection to:localhost:30001 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: ConnectBG m30999| Wed Aug 1 12:08:32 [conn1] connected connection! m30999| Wed Aug 1 12:08:32 [conn1] creating WriteBackListener for: localhost:30001 serverID: 5019547edd6dace06abe2e93 m30999| Wed Aug 1 12:08:32 [conn1] initializing shard connection to localhost:30001 m30001| Wed Aug 1 12:08:32 [initandlisten] connection accepted from 127.0.0.1:48038 #3 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: WriteBackListener-localhost:30001 Waiting for active hosts... Waiting for the balancer lock... Waiting again for active hosts after balancer is off... m30999| Wed Aug 1 12:08:32 [conn1] couldn't find database [test] in config db m30999| Wed Aug 1 12:08:32 [conn1] creating new connection to:localhost:30001 m30999| Wed Aug 1 12:08:32 BackgroundJob starting: ConnectBG m30999| Wed Aug 1 12:08:32 [conn1] connected connection! m30001| Wed Aug 1 12:08:32 [initandlisten] connection accepted from 127.0.0.1:48039 #4 m30999| Wed Aug 1 12:08:32 [conn1] best shard for new allocation is shard: shard0001:localhost:30001 mapped: 0 writeLock: 0 m30999| Wed Aug 1 12:08:32 [conn1] put [test] on: shard0001:localhost:30001 m30999| Wed Aug 1 12:08:32 [conn1] enabling sharding on: test m30999| Wed Aug 1 12:08:32 [conn1] CMD: shardcollection: { shardcollection: "test.foo", key: { num: 1.0 } } m30999| Wed Aug 1 12:08:32 [conn1] enable sharding on: test.foo with shard key: { num: 1.0 } m30001| Wed Aug 1 12:08:32 [FileAllocator] allocating new datafile /data/db/features11/test.ns, filling with zeroes... m30001| Wed Aug 1 12:08:32 [FileAllocator] creating directory /data/db/features11/_tmp m30001| Wed Aug 1 12:08:32 [FileAllocator] done allocating datafile /data/db/features11/test.ns, size: 16MB, took 0.218 secs m30001| Wed Aug 1 12:08:32 [FileAllocator] allocating new datafile /data/db/features11/test.0, filling with zeroes... m30001| Wed Aug 1 12:08:33 [FileAllocator] done allocating datafile /data/db/features11/test.0, size: 64MB, took 0.946 secs m30001| Wed Aug 1 12:08:33 [FileAllocator] allocating new datafile /data/db/features11/test.1, filling with zeroes... m30001| Wed Aug 1 12:08:33 [conn4] build index test.foo { _id: 1 } m30001| Wed Aug 1 12:08:33 [conn4] build index done 0 records 0 secs m30001| Wed Aug 1 12:08:33 [conn4] info: creating collection test.foo on add index m30001| Wed Aug 1 12:08:33 [conn4] build index test.foo { num: 1.0 } m30001| Wed Aug 1 12:08:33 [conn4] build index done 0 records 0 secs m30001| Wed Aug 1 12:08:33 [conn4] insert test.system.indexes 1184ms m30999| Wed Aug 1 12:08:33 [conn1] going to create 1 chunk(s) for: test.foo using new epoch 50195481dd6dace06abe2e95 m30999| Wed Aug 1 12:08:33 [conn1] ChunkManager: time to load chunks for test.foo: 0ms sequenceNumber: 2 version: 1|0||50195481dd6dace06abe2e95 based on: (empty) m30000| Wed Aug 1 12:08:33 [conn3] build index config.collections { _id: 1 } m30000| Wed Aug 1 12:08:33 [conn3] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:33 [conn1] resetting shard version of test.foo on localhost:30000, version is zero m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion shard0000 localhost:30000 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 0|0, versionEpoch: ObjectId('000000000000000000000000'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0000", shardHost: "localhost:30000" } 0x131c6f0 m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion success: { oldVersion: Timestamp 0|0, ok: 1.0 } m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion shard0001 localhost:30001 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 1000|0, versionEpoch: ObjectId('50195481dd6dace06abe2e95'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0001", shardHost: "localhost:30001" } 0x131d030 m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion failed! m30999| { oldVersion: Timestamp 0|0, ns: "test.foo", need_authoritative: true, errmsg: "first time for collection 'test.foo'", ok: 0.0 } m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion shard0001 localhost:30001 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 1000|0, versionEpoch: ObjectId('50195481dd6dace06abe2e95'), serverID: ObjectId('5019547edd6dace06abe2e93'), authoritative: true, shard: "shard0001", shardHost: "localhost:30001" } 0x131d030 m30000| Wed Aug 1 12:08:33 [initandlisten] connection accepted from 127.0.0.1:58677 #8 m30999| Wed Aug 1 12:08:33 [conn1] setShardVersion success: { oldVersion: Timestamp 0|0, ok: 1.0 } m30999| Wed Aug 1 12:08:33 [conn1] sharded index write for test.system.indexes m30001| Wed Aug 1 12:08:33 [conn3] build index test.foo { y: 1.0 } m30001| Wed Aug 1 12:08:33 [conn3] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:33 [conn1] splitting: test.foo shard: ns:test.foo at: shard0001:localhost:30001 lastmod: 1|0||000000000000000000000000 min: { num: MinKey } max: { num: MaxKey } m30000| Wed Aug 1 12:08:33 [initandlisten] connection accepted from 127.0.0.1:58678 #9 m30001| Wed Aug 1 12:08:33 [conn4] received splitChunk request: { splitChunk: "test.foo", keyPattern: { num: 1.0 }, min: { num: MinKey }, max: { num: MaxKey }, from: "shard0001", splitKeys: [ { num: 10.0 } ], shardId: "test.foo-num_MinKey", configdb: "localhost:30000" } m30001| Wed Aug 1 12:08:33 [conn4] created new distributed lock for test.foo on localhost:30000 ( lock timeout : 900000, ping interval : 30000, process : 0 ) m30001| Wed Aug 1 12:08:33 [LockPinger] creating distributed lock ping thread for localhost:30000 and process ubuntu:30001:1343837313:1384781523 (sleeping for 30000ms) m30001| Wed Aug 1 12:08:33 [conn4] distributed lock 'test.foo/ubuntu:30001:1343837313:1384781523' acquired, ts : 50195481ec6ed96f6cf28bad m30001| Wed Aug 1 12:08:33 [conn4] splitChunk accepted at version 1|0 m30001| Wed Aug 1 12:08:33 [conn4] about to log metadata event: { _id: "ubuntu-2012-08-01T16:08:33-0", server: "ubuntu", clientAddr: "127.0.0.1:48039", time: new Date(1343837313484), what: "split", ns: "test.foo", details: { before: { min: { num: MinKey }, max: { num: MaxKey }, lastmod: Timestamp 1000|0 }, left: { min: { num: MinKey }, max: { num: 10.0 }, lastmod: Timestamp 1000|1 }, right: { min: { num: 10.0 }, max: { num: MaxKey }, lastmod: Timestamp 1000|2 } } } m30001| Wed Aug 1 12:08:33 [conn4] distributed lock 'test.foo/ubuntu:30001:1343837313:1384781523' unlocked. m30999| Wed Aug 1 12:08:33 [conn1] ChunkManager: time to load chunks for test.foo: 0ms sequenceNumber: 3 version: 1|2||000000000000000000000000 based on: 1|0||50195481dd6dace06abe2e95 m30999| Wed Aug 1 12:08:33 [conn1] CMD: movechunk: { movechunk: "test.foo", find: { num: 20.0 }, to: "localhost:30000" } m30999| Wed Aug 1 12:08:33 [conn1] moving chunk ns: test.foo moving ( ns:test.foo at: shard0001:localhost:30001 lastmod: 1|2||000000000000000000000000 min: { num: 10.0 } max: { num: MaxKey }) shard0001:localhost:30001 -> shard0000:localhost:30000 m30001| Wed Aug 1 12:08:33 [conn4] received moveChunk request: { moveChunk: "test.foo", from: "localhost:30001", to: "localhost:30000", fromShard: "shard0001", toShard: "shard0000", min: { num: 10.0 }, max: { num: MaxKey }, maxChunkSizeBytes: 52428800, shardId: "test.foo-num_10.0", configdb: "localhost:30000", secondaryThrottle: false } m30001| Wed Aug 1 12:08:33 [conn4] created new distributed lock for test.foo on localhost:30000 ( lock timeout : 900000, ping interval : 30000, process : 0 ) m30001| Wed Aug 1 12:08:33 [conn4] distributed lock 'test.foo/ubuntu:30001:1343837313:1384781523' acquired, ts : 50195481ec6ed96f6cf28bae m30001| Wed Aug 1 12:08:33 [conn4] about to log metadata event: { _id: "ubuntu-2012-08-01T16:08:33-1", server: "ubuntu", clientAddr: "127.0.0.1:48039", time: new Date(1343837313486), what: "moveChunk.start", ns: "test.foo", details: { min: { num: 10.0 }, max: { num: MaxKey }, from: "shard0001", to: "shard0000" } } m30001| Wed Aug 1 12:08:33 [conn4] moveChunk request accepted at version 1|2 m30001| Wed Aug 1 12:08:33 [conn4] moveChunk number of documents: 0 m30001| Wed Aug 1 12:08:33 [initandlisten] connection accepted from 127.0.0.1:48042 #5 m30000| Wed Aug 1 12:08:33 [FileAllocator] allocating new datafile /data/db/features10/test.ns, filling with zeroes... m30001| Wed Aug 1 12:08:34 [conn4] moveChunk data transfer progress: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "ready", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } my mem used: 0 m30000| Wed Aug 1 12:08:35 [FileAllocator] done allocating datafile /data/db/features10/test.ns, size: 16MB, took 1.782 secs m30000| Wed Aug 1 12:08:35 [FileAllocator] allocating new datafile /data/db/features10/test.0, filling with zeroes... m30001| Wed Aug 1 12:08:35 [conn4] moveChunk data transfer progress: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "ready", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } my mem used: 0 m30001| Wed Aug 1 12:08:35 [FileAllocator] done allocating datafile /data/db/features11/test.1, size: 128MB, took 2.416 secs m30999| Wed Aug 1 12:08:36 [Balancer] creating new connection to:localhost:30000 m30999| Wed Aug 1 12:08:36 BackgroundJob starting: ConnectBG m30999| Wed Aug 1 12:08:36 [Balancer] connected connection! m30000| Wed Aug 1 12:08:36 [initandlisten] connection accepted from 127.0.0.1:58680 #10 m30001| Wed Aug 1 12:08:36 [conn4] moveChunk data transfer progress: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "ready", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } my mem used: 0 m30000| Wed Aug 1 12:08:36 [FileAllocator] done allocating datafile /data/db/features10/test.0, size: 64MB, took 1.508 secs m30000| Wed Aug 1 12:08:36 [FileAllocator] allocating new datafile /data/db/features10/test.1, filling with zeroes... m30000| Wed Aug 1 12:08:36 [migrateThread] build index test.foo { _id: 1 } m30000| Wed Aug 1 12:08:36 [migrateThread] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:36 [migrateThread] info: creating collection test.foo on add index m30000| Wed Aug 1 12:08:36 [migrateThread] build index test.foo { num: 1.0 } m30000| Wed Aug 1 12:08:36 [migrateThread] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:36 [migrateThread] build index test.foo { y: 1.0 } m30000| Wed Aug 1 12:08:36 [migrateThread] build index done 0 records 0 secs m30000| Wed Aug 1 12:08:36 [migrateThread] migrate commit succeeded flushing to secondaries for 'test.foo' { num: 10.0 } -> { num: MaxKey } m30999| Wed Aug 1 12:08:36 [Balancer] Refreshing MaxChunkSize: 50 m30999| Wed Aug 1 12:08:36 [Balancer] skipping balancing round because balancing is disabled m30001| Wed Aug 1 12:08:37 [conn4] moveChunk data transfer progress: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "catchup", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } my mem used: 0 m30000| Wed Aug 1 12:08:37 [migrateThread] migrate commit flushed to journal for 'test.foo' { num: 10.0 } -> { num: MaxKey } m30001| Wed Aug 1 12:08:38 [conn4] moveChunk data transfer progress: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "steady", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } my mem used: 0 m30001| Wed Aug 1 12:08:38 [conn4] moveChunk setting version to: 2|0 m30000| Wed Aug 1 12:08:38 [migrateThread] migrate commit succeeded flushing to secondaries for 'test.foo' { num: 10.0 } -> { num: MaxKey } m30000| Wed Aug 1 12:08:38 [migrateThread] migrate commit flushed to journal for 'test.foo' { num: 10.0 } -> { num: MaxKey } m30000| Wed Aug 1 12:08:38 [migrateThread] about to log metadata event: { _id: "ubuntu-2012-08-01T16:08:38-0", server: "ubuntu", clientAddr: "", time: new Date(1343837318491), what: "moveChunk.to", ns: "test.foo", details: { min: { num: 10.0 }, max: { num: MaxKey }, step1: 3296, step2: 0, step3: 0, step4: 0, step5: 1707 } } m30000| Wed Aug 1 12:08:38 [initandlisten] connection accepted from 127.0.0.1:58681 #11 m30001| Wed Aug 1 12:08:38 [conn4] moveChunk migrate commit accepted by TO-shard: { active: true, ns: "test.foo", from: "localhost:30001", min: { num: 10.0 }, max: { num: MaxKey }, state: "done", counts: { cloned: 0, clonedBytes: 0, catchup: 0, steady: 0 }, ok: 1.0 } m30001| Wed Aug 1 12:08:38 [conn4] moveChunk updating self version to: 2|1 through { num: MinKey } -> { num: 10.0 } for collection 'test.foo' m30001| Wed Aug 1 12:08:38 [conn4] about to log metadata event: { _id: "ubuntu-2012-08-01T16:08:38-2", server: "ubuntu", clientAddr: "127.0.0.1:48039", time: new Date(1343837318492), what: "moveChunk.commit", ns: "test.foo", details: { min: { num: 10.0 }, max: { num: MaxKey }, from: "shard0001", to: "shard0000" } } m30001| Wed Aug 1 12:08:38 [conn4] doing delete inline m30001| Wed Aug 1 12:08:38 [conn4] moveChunk deleted: 0 m30001| Wed Aug 1 12:08:38 [conn4] distributed lock 'test.foo/ubuntu:30001:1343837313:1384781523' unlocked. m30001| Wed Aug 1 12:08:38 [conn4] about to log metadata event: { _id: "ubuntu-2012-08-01T16:08:38-3", server: "ubuntu", clientAddr: "127.0.0.1:48039", time: new Date(1343837318492), what: "moveChunk.from", ns: "test.foo", details: { min: { num: 10.0 }, max: { num: MaxKey }, step1: 0, step2: 0, step3: 0, step4: 5001, step5: 4, step6: 0 } } m30001| Wed Aug 1 12:08:38 [conn4] command admin.$cmd command: { moveChunk: "test.foo", from: "localhost:30001", to: "localhost:30000", fromShard: "shard0001", toShard: "shard0000", min: { num: 10.0 }, max: { num: MaxKey }, maxChunkSizeBytes: 52428800, shardId: "test.foo-num_10.0", configdb: "localhost:30000", secondaryThrottle: false } ntoreturn:1 reslen:37 5006ms m30999| Wed Aug 1 12:08:38 [conn1] moveChunk result: { ok: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] ChunkManager: time to load chunks for test.foo: 0ms sequenceNumber: 4 version: 2|1||000000000000000000000000 based on: 1|2||000000000000000000000000 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0001 localhost:30001 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 2000|1, versionEpoch: ObjectId('000000000000000000000000'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0001", shardHost: "localhost:30001" } 0x131d030 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion success: { oldVersion: Timestamp 1000|0, ok: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] about to initiate autosplit: ns:test.foo at: shard0001:localhost:30001 lastmod: 2|1||000000000000000000000000 min: { num: MinKey } max: { num: 10.0 } dataWritten: 8312782 splitThreshold: 471859 m30999| Wed Aug 1 12:08:38 [conn1] chunk not full enough to trigger auto-split no split entry m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0000 localhost:30000 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 2000|0, versionEpoch: ObjectId('000000000000000000000000'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0000", shardHost: "localhost:30000" } 0x131c6f0 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion failed! m30999| { oldVersion: Timestamp 0|0, ns: "test.foo", need_authoritative: true, errmsg: "first time for collection 'test.foo'", ok: 0.0 } m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0000 localhost:30000 test.foo { setShardVersion: "test.foo", configdb: "localhost:30000", version: Timestamp 2000|0, versionEpoch: ObjectId('000000000000000000000000'), serverID: ObjectId('5019547edd6dace06abe2e93'), authoritative: true, shard: "shard0000", shardHost: "localhost:30000" } 0x131c6f0 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion success: { oldVersion: Timestamp 0|0, ok: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] about to initiate autosplit: ns:test.foo at: shard0000:localhost:30000 lastmod: 2|0||000000000000000000000000 min: { num: 10.0 } max: { num: MaxKey } dataWritten: 8083677 splitThreshold: 471859 m30999| Wed Aug 1 12:08:38 [conn1] chunk not full enough to trigger auto-split no split entry m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30000| Wed Aug 1 12:08:38 [conn7] build index test.foo { x: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo { x: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 1 records 0 secs m30000| Wed Aug 1 12:08:38 [conn7] build index done 1 records 0 secs m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30999| Wed Aug 1 12:08:38 [conn1] User Assertion: 10205:can't use unique indexes with sharding ns:test.foo key: { z: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] AssertionException while processing op type : 2002 to : test.system.indexes :: caused by :: 10205 can't use unique indexes with sharding ns:test.foo key: { z: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30000| Wed Aug 1 12:08:38 [conn7] build index test.foo { num: 1.0, bar: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo { num: 1.0, bar: 1.0 } m30000| Wed Aug 1 12:08:38 [conn7] build index done 1 records 0 secs m30001| Wed Aug 1 12:08:38 [conn3] build index done 1 records 0 secs m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo2 { _id: 1 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs m30001| Wed Aug 1 12:08:38 [conn3] info: creating collection test.foo2 on add index m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo2 { a: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.foo2", "name" : "_id_" }, { "v" : 1, "key" : { "a" : 1 }, "ns" : "test.foo2", "name" : "a_1" } ] m30999| Wed Aug 1 12:08:38 [conn1] CMD: shardcollection: { shardcollection: "test.foo2", key: { num: 1.0 } } m30001| Wed Aug 1 12:08:38 [conn4] build index test.foo2 { num: 1.0 } m30001| Wed Aug 1 12:08:38 [conn4] build index done 0 records 0 secs m30999| Wed Aug 1 12:08:38 [conn1] enable sharding on: test.foo2 with shard key: { num: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] going to create 1 chunk(s) for: test.foo2 using new epoch 50195486dd6dace06abe2e96 m30999| Wed Aug 1 12:08:38 [conn1] ChunkManager: time to load chunks for test.foo2: 0ms sequenceNumber: 5 version: 1|0||50195486dd6dace06abe2e96 based on: (empty) m30999| Wed Aug 1 12:08:38 [conn1] resetting shard version of test.foo2 on localhost:30000, version is zero m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0000 localhost:30000 test.foo2 { setShardVersion: "test.foo2", configdb: "localhost:30000", version: Timestamp 0|0, versionEpoch: ObjectId('000000000000000000000000'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0000", shardHost: "localhost:30000" } 0x131c6f0 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion success: { oldVersion: Timestamp 0|0, ok: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0001 localhost:30001 test.foo2 { setShardVersion: "test.foo2", configdb: "localhost:30000", version: Timestamp 1000|0, versionEpoch: ObjectId('50195486dd6dace06abe2e96'), serverID: ObjectId('5019547edd6dace06abe2e93'), shard: "shard0001", shardHost: "localhost:30001" } 0x131d030 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion failed! m30999| { oldVersion: Timestamp 0|0, ns: "test.foo2", need_authoritative: true, errmsg: "first time for collection 'test.foo2'", ok: 0.0 } m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion shard0001 localhost:30001 test.foo2 { setShardVersion: "test.foo2", configdb: "localhost:30000", version: Timestamp 1000|0, versionEpoch: ObjectId('50195486dd6dace06abe2e96'), serverID: ObjectId('5019547edd6dace06abe2e93'), authoritative: true, shard: "shard0001", shardHost: "localhost:30001" } 0x131d030 m30999| Wed Aug 1 12:08:38 [conn1] setShardVersion success: { oldVersion: Timestamp 0|0, ok: 1.0 } m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo3 { _id: 1 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs m30001| Wed Aug 1 12:08:38 [conn3] info: creating collection test.foo3 on add index m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo3 { a: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.foo3", "name" : "_id_" }, { "v" : 1, "key" : { "a" : 1 }, "unique" : true, "ns" : "test.foo3", "name" : "a_1" } ] m30999| Wed Aug 1 12:08:38 [conn1] sharded index write for test.system.indexes m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo7 { _id: 1 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs m30001| Wed Aug 1 12:08:38 [conn3] info: creating collection test.foo7 on add index m30001| Wed Aug 1 12:08:38 [conn3] build index test.foo7 { num: 1.0, a: 1.0 } m30001| Wed Aug 1 12:08:38 [conn3] build index done 0 records 0 secs [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.foo7", "name" : "_id_" }, { "v" : 1, "key" : { "num" : 1, "a" : 1 }, "unique" : true, "ns" : "test.foo7", "name" : "num_1_a_1" } ] m30001| Wed Aug 1 12:08:38 [initandlisten] connection accepted from 127.0.0.1:48045 #6 m30000| Wed Aug 1 12:08:38 [initandlisten] connection accepted from 127.0.0.1:58683 #12 m30000| Wed Aug 1 12:08:38 [conn4] run command admin.$cmd { getlasterror: 1 } m30000| Wed Aug 1 12:08:38 [conn4] command admin.$cmd command: { getlasterror: 1 } ntoreturn:1 reslen:67 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.namespaces query: { name: "test.foo7" } ntoreturn:1 nreturned:1 reslen:45 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.indexes query: { ns: "test.foo7", unique: true } nreturned:1 reslen:113 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.indexes query: { ns: "test.foo7" } nreturned:2 reslen:177 0ms m30001| Wed Aug 1 12:08:38 [conn4] run command admin.$cmd { checkShardingIndex: "test.foo7", keyPattern: { num: 1.0 } } m30001| Wed Aug 1 12:08:38 [conn4] command admin.$cmd command: { checkShardingIndex: "test.foo7", keyPattern: { num: 1.0 } } ntoreturn:1 reslen:88 0ms { "ok" : 0, "errmsg" : "couldn't find index over splitting key" } m30000| Wed Aug 1 12:08:38 [conn4] run command admin.$cmd { getlasterror: 1 } m30000| Wed Aug 1 12:08:38 [conn4] command admin.$cmd command: { getlasterror: 1 } ntoreturn:1 reslen:67 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.namespaces query: { name: "test.foo7" } ntoreturn:1 nreturned:1 reslen:45 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.indexes query: { ns: "test.foo7", unique: true } nreturned:1 reslen:113 0ms m30001| Wed Aug 1 12:08:38 [conn4] query test.system.indexes query: { ns: "test.foo7" } nreturned:2 reslen:177 0ms m30001| Wed Aug 1 12:08:38 [conn4] run command admin.$cmd { checkShardingIndex: "test.foo7", keyPattern: { num: 1.0 } } m30001| Wed Aug 1 12:08:38 [conn4] command admin.$cmd command: { checkShardingIndex: "test.foo7", keyPattern: { num: 1.0 } } ntoreturn:1 reslen:88 0ms assert failed : shard with ok unique index Error("Printing Stack Trace")@:0 ()@src/mongo/shell/utils.js:37 ("assert failed : shard with ok unique index")@src/mongo/shell/utils.js:58 (0,"shard with ok unique index")@src/mongo/shell/utils.js:66 @jstests/sharding/features1.js:77