Using Mongo 3.0.8 when replicating large data set (this did'nt happen in smaller one) with max_threads = 4 and a patch for mongo which parallelize the cloning process, in our setup we used 17 threads cloning different dbs, each thread is holding a db lock (instead of a global lock)
examining with gdb the cache flags shows STUCK bit is lit, here's the
attached is a stack trace, as you can see all cloning threads are hung on the eviction condition "0x39abd40" (threads 51 through 67) which comes from __wt_cache_full_check() call
Thread #8 also stuck on the same call, due to _deleteExcessDocuments call.
The eviction server (Thread #2) is sleeping, and this happens constantly
the eviction workers seem to have no work as there are 3 live eviction workers (threads 68 through 70) all of which are waiting on the same condition
This situation reproduced itself over and over at some point during the initial clone, any idea as to why this happens would be great.
The small patch for the parallelization is available here: