summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_validate_writes.js
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2019-09-24 15:38:39 +0000
committerevergreen <evergreen@mongodb.com>2019-09-24 15:38:39 +0000
commit2f5feed026e1c22bce29cf2efe746d55879d4a14 (patch)
tree2915b778f207efc398462ca840c7b4557c042569 /jstests/sharding/mongos_validate_writes.js
parentccbc2473f57504f9ce08096efd000fb37a9e90fc (diff)
downloadmongo-2f5feed026e1c22bce29cf2efe746d55879d4a14.tar.gz
SERVER-42390 Allow documents in a sharded collection to not contain all shard key fields
Diffstat (limited to 'jstests/sharding/mongos_validate_writes.js')
-rw-r--r--jstests/sharding/mongos_validate_writes.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/jstests/sharding/mongos_validate_writes.js b/jstests/sharding/mongos_validate_writes.js
index f920992799c..8f08b56608e 100644
--- a/jstests/sharding/mongos_validate_writes.js
+++ b/jstests/sharding/mongos_validate_writes.js
@@ -13,7 +13,6 @@ var staleMongosA = st.s1;
var staleMongosB = st.s2;
var admin = mongos.getDB("admin");
-var config = mongos.getDB("config");
var coll = mongos.getCollection("foo.bar");
var staleCollA = staleMongosA.getCollection(coll + "");
var staleCollB = staleMongosB.getCollection(coll + "");
@@ -39,9 +38,6 @@ st.shardColl(coll, {b: 1}, {b: 0}, {b: 1}, coll.getDB(), true);
// Make sure that we can successfully insert, even though we have stale state
assert.commandWorked(staleCollA.insert({b: "b"}));
-// Make sure we unsuccessfully insert with old info
-assert.writeError(staleCollB.insert({a: "a"}));
-
// Change the collection sharding state
coll.drop();
coll.ensureIndex({c: 1});