diff options
author | David Storch <david.storch@10gen.com> | 2015-09-04 15:27:34 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-09-08 09:37:44 -0400 |
commit | 2864bea05b3b1fcb464a27442797a78bf6a99ccb (patch) | |
tree | a4998d06b04e432bfe2b6728349ae0762d32430f | |
parent | 650871daad6b8f1de5d1d9cf6468b7c6f552c340 (diff) | |
download | mongo-2864bea05b3b1fcb464a27442797a78bf6a99ccb.tar.gz |
SERVER-19405 disable assertions checking mongos serverStatus cursor stats
-rw-r--r-- | jstests/sharding/auto2.js | 6 | ||||
-rw-r--r-- | jstests/sharding/cursor_cleanup.js | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js index b0ce66292d5..f803f4000f7 100644 --- a/jstests/sharding/auto2.js +++ b/jstests/sharding/auto2.js @@ -115,14 +115,16 @@ for ( i =0; i<100; i++ ) t.save( { _id : i } ); for ( i=0; i<100; i++ ){ t.find().batchSize( 2 ).next(); - assert.lt(0 , db.serverStatus().metrics.cursor.open.total, "cursor1"); + // TODO: Re-eneble when SERVER-19405 is imlpemented. + //assert.lt(0 , db.serverStatus().metrics.cursor.open.total, "cursor1"); gc(); } for ( i=0; i<100; i++ ){ gc(); } -assert.eq(0, db.serverStatus().metrics.cursor.open.total, "cursor2"); +// TODO: Re-enable when SERVER-19405 is implemented. +//assert.eq(0, db.serverStatus().metrics.cursor.open.total, "cursor2"); // Stop the balancer, otherwise it may grab some connections from the pool for itself s.stopBalancer() diff --git a/jstests/sharding/cursor_cleanup.js b/jstests/sharding/cursor_cleanup.js index 9e345a94223..cf2810b38f2 100644 --- a/jstests/sharding/cursor_cleanup.js +++ b/jstests/sharding/cursor_cleanup.js @@ -46,7 +46,8 @@ jsTest.log("Check whether the cursor is registered in the cursor info."); var cursorInfo = admin.serverStatus().metrics.cursor; printjson(cursorInfo); -assert.eq(cursorInfo.open.multiTarget, 1); +// TODO: Re-enable when SERVER-19405 is implemented. +//assert.eq(cursorInfo.open.multiTarget, 1); jsTest.log("End the cursors."); @@ -56,7 +57,8 @@ unshardedCursor.itcount(); var cursorInfo = admin.serverStatus().metrics.cursor;; printjson(cursorInfo); -assert.eq(cursorInfo.open.multiTarget, 0); +// TODO: Re-enable when SERVER-19405 is implemented. +//assert.eq(cursorInfo.open.multiTarget, 0); jsTest.log("DONE!"); |