diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-03-30 13:53:35 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon.fernandez@mongodb.com> | 2015-04-10 14:57:38 -0400 |
commit | 03d7d9d46179425212ce1840c58c4325d450b950 (patch) | |
tree | d1cc19ab8fb2587218807452d83ff258e3dd94ca | |
parent | d00d2bc873ebeca1536f578d8a5255e4f776aad3 (diff) | |
download | mongo-03d7d9d46179425212ce1840c58c4325d450b950.tar.gz |
SERVER-17487 Throttle bg insert thread in test
(cherry picked from commit 06f4ea80a51ccea8da275e095cc5061707263957)
-rw-r--r-- | jstests/noPassthrough/initial_sync_cloner_dups.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_cloner_dups.js b/jstests/noPassthrough/initial_sync_cloner_dups.js index f7d4c43c9c9..f6a4a487cbc 100644 --- a/jstests/noPassthrough/initial_sync_cloner_dups.js +++ b/jstests/noPassthrough/initial_sync_cloner_dups.js @@ -61,6 +61,9 @@ var insertAndRemove = function(host) { //print(id); coll.remove({_id: id}); coll.insert({_id: id}); + + // Try to throttle this thread to prevent overloading slow machines. + sleep(1); } jsTestLog("finished bg writes on " + host); |