diff options
author | Greg Studer <greg@10gen.com> | 2013-05-15 15:50:57 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-05-15 17:13:21 -0400 |
commit | 9df07aa58f54646c0792734d72f0702b41b16ceb (patch) | |
tree | c880c197a5972907a9774c82e409974b98071145 | |
parent | ce9e5626a8c7c10c4292a20cbaa9ab61888b1064 (diff) | |
download | mongo-9df07aa58f54646c0792734d72f0702b41b16ceb.tar.gz |
SERVER-9622 buildbot testshard1.js turn on exception tracing in mongod
temporary, will be removed in final fix for SERVER-9622
-rw-r--r-- | jstests/aggregation/testshard1.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/aggregation/testshard1.js b/jstests/aggregation/testshard1.js index caabc5a31df..8356015fd71 100644 --- a/jstests/aggregation/testshard1.js +++ b/jstests/aggregation/testshard1.js @@ -64,6 +64,17 @@ for(i = 1; i <= nItems; ++i) { // wait for all writebacks to be applied assert.eq(db.getLastError(), null); +// Turn on exception tracing in mongod to figure out exactly where the SCEs are coming from +// TEMPORARY - REMOVE ONCE SERVER-9622 IS RESOLVED +var config = db.getMongo().getDB("config"); +var shards = config.shards.find().toArray(); + +jsTest.log( "Tracing all exceptions in mongod..." ); +for ( var i = 0; i < shards.length; i++ ) { + var shardConn = new Mongo( shards[i].host ); + printjson(shardConn.getDB( "admin" ).runCommand({ setParameter : 1, traceExceptions : true })); +} + // a project and group in shards, result combined in mongos var a1 = db.ts1.aggregate( { $project: { |