diff options
author | jannaerin <golden.janna@gmail.com> | 2018-05-23 15:28:55 -0400 |
---|---|---|
committer | jannaerin <golden.janna@gmail.com> | 2018-05-25 10:54:46 -0400 |
commit | 29116784f5da27db0232dd91af056bfd646c109c (patch) | |
tree | a2baa08ae04bf786677b0f215f5ead640710b6f8 | |
parent | 5d225d07531e9af99f532f03c8adb2502c7536a8 (diff) | |
download | mongo-29116784f5da27db0232dd91af056bfd646c109c.tar.gz |
SERVER-33538 Fix UUID inconsistencies in mapReduce on a sharded output collection
(cherry picked from commit ff092947da81890ff92c427f50623d36d084e58c)
-rw-r--r-- | jstests/sharding/mapReduce_outSharded_checkUUID.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/sharding/mapReduce_outSharded_checkUUID.js b/jstests/sharding/mapReduce_outSharded_checkUUID.js index 96c3f26cd33..bd8fe867f07 100644 --- a/jstests/sharding/mapReduce_outSharded_checkUUID.js +++ b/jstests/sharding/mapReduce_outSharded_checkUUID.js @@ -10,8 +10,7 @@ assert.eq(out.counts.output, output, "output count is wrong"); }; - var st = new ShardingTest( - {shards: 2, verbose: 1, mongos: 1, other: {chunkSize: 1, enableBalancer: true}}); + var st = new ShardingTest({shards: 2, verbose: 1, mongos: 1, other: {chunkSize: 1}}); var admin = st.s0.getDB('admin'); @@ -59,7 +58,7 @@ assert.commandWorked(admin.runCommand( {moveChunk: "mrShard.mergeSharded", find: {"_id": 2000}, to: st.shard0.shardName})); assert.writeOK(st.s.getCollection("mrShard.mergeSharded").insert({_id: 1000})); - assert.writeOK(st.s.getCollection("mrShard.mergeSharded".toString()).insert({_id: 2001})); + assert.writeOK(st.s.getCollection("mrShard.mergeSharded").insert({_id: 2001})); origUUID = getUUIDFromConfigCollections(st.s, "mrShard.mergeSharded"); out = db.srcSharded.mapReduce(map, reduce, {out: {merge: "mergeSharded", sharded: true}}); @@ -78,7 +77,7 @@ assert.commandWorked(admin.runCommand( {moveChunk: "mrShard.replaceSharded", find: {"_id": 2000}, to: st.shard0.shardName})); assert.writeOK(st.s.getCollection("mrShard.replaceSharded").insert({_id: 1000})); - assert.writeOK(st.s.getCollection("mrShard.replaceSharded".toString()).insert({_id: 2001})); + assert.writeOK(st.s.getCollection("mrShard.replaceSharded").insert({_id: 2001})); origUUID = getUUIDFromConfigCollections(st.s, "mrShard.replaceSharded"); out = db.srcSharded.mapReduce(map, reduce, {out: {replace: "replaceSharded", sharded: true}}); |