Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Quint Iteration 5
Description
The code evaluated in the parallel shell does not use the bulk API correctly.
var bulk = db.jstests_distinct3.initializeUnorderedBulkOp();
|
for( i = 0; i < 100; ++i ) {
|
bulk.remove( { a:49 } );
|
for( j = 0; j < 20; ++j ) {
|
bulk.insert( { a:49, c:49, d:j } );
|
}
|
bulk.execute();
|
}
|
- It should be .find({a: 49}).remove() instead of .remove({a: 49}).
- A bulk operation cannot be reused, so bulk should be initialized inside the for loop.
Attachments
Issue Links
- related to
-
SERVER-18868 Make startParallelShell() assert that the exit code is 0 by default
-
- Closed
-