diff options
Diffstat (limited to 'jstests/sharding/mapReduce_outSharded_checkUUID.js')
-rw-r--r-- | jstests/sharding/mapReduce_outSharded_checkUUID.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/mapReduce_outSharded_checkUUID.js b/jstests/sharding/mapReduce_outSharded_checkUUID.js index 0de45c127c7..4a0044c563c 100644 --- a/jstests/sharding/mapReduce_outSharded_checkUUID.js +++ b/jstests/sharding/mapReduce_outSharded_checkUUID.js @@ -35,6 +35,7 @@ bulk.insert({j: j, i: i}); } } + assert.writeOK(bulk.execute()); function map() { @@ -47,14 +48,14 @@ // sharded src sharded dst var suffix = "InShardedOutSharded"; - // Check that merge to an existing empty sharded collection works and creates a new UUID after + // Check that merge to an existing empty sharded collection works and preserves the UUID after // M/R st.adminCommand({shardcollection: "mrShard.outSharded", key: {"_id": 1}}); var origUUID = getUUIDFromConfigCollections(st.s, "mrShard.outSharded"); var out = db.srcSharded.mapReduce(map, reduce, {out: {merge: "outSharded", sharded: true}}); verifyOutput(out, 512); var newUUID = getUUIDFromConfigCollections(st.s, "mrShard.outSharded"); - assert.neq(origUUID, newUUID); + assert.eq(origUUID, newUUID); // Shard1 is the primary shard and only one chunk should have been written, so the chunk with // the new UUID should have been written to it. @@ -166,5 +167,4 @@ assert.eq(newUUID, getUUIDFromListCollections(st.shard1.getDB("mrShard"), "replaceUnsharded")); st.stop(); - })(); |