diff options
author | Waley Chen <waleycz@gmail.com> | 2016-03-07 11:19:25 -0500 |
---|---|---|
committer | Waley Chen <waleycz@gmail.com> | 2016-03-07 11:19:25 -0500 |
commit | a946a9159660506e0295feaaa6ad5adc0e60f559 (patch) | |
tree | 47b4cb4cb3df93987f7a0af2c9730d4c3c680b3e /jstests/core | |
parent | 24ea13cd77a295e4c33bce9af2deee8cb78e9cfc (diff) | |
download | mongo-a946a9159660506e0295feaaa6ad5adc0e60f559.tar.gz |
Revert "SERVER-22767 mongos segfault when invoking .explain() on certain operations"
This reverts commit 76522903744fba9a660c2d2b9db61507578916b3.
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/server22767.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/jstests/core/server22767.js b/jstests/core/server22767.js deleted file mode 100644 index 9b915ce0940..00000000000 --- a/jstests/core/server22767.js +++ /dev/null @@ -1,21 +0,0 @@ -// test that the mongos doesn't segfault when it receives malformed BSON -var st = new ShardingTest({shards:1}); -var testDB = st.getDB('test'); -testDB.test.insert({a:1}); - -try { - testDB.test.find({key: {$regex: 'abcd\0xyz'}}).explain(); -} catch (e) { - /* - * if the mongos segfaults, the error is the msg: - * "Error: error doing query: failed: network error while attempting to run command 'explain' on host '127.0.0.1:20014'" - * - * if the mongos doesn't segfault, the error is the object: - * "Error: explain failed: { - * "code" : 22, - * "ok" : 0, - * "errmsg" : "bson length doesn't match what we found in object with unknown _id" - * }" - */ - assert.eq(22, e.code); -}
\ No newline at end of file |